Lines Matching refs:OPT3001_CONFIGURATION
36 #define OPT3001_CONFIGURATION 0x01 macro
251 ret = i2c_smbus_read_word_swapped(opt->client, OPT3001_CONFIGURATION); in opt3001_get_lux()
254 OPT3001_CONFIGURATION); in opt3001_get_lux()
261 ret = i2c_smbus_write_word_swapped(opt->client, OPT3001_CONFIGURATION, in opt3001_get_lux()
265 OPT3001_CONFIGURATION); in opt3001_get_lux()
318 ret = i2c_smbus_read_word_swapped(opt->client, OPT3001_CONFIGURATION); in opt3001_set_int_time()
321 OPT3001_CONFIGURATION); in opt3001_set_int_time()
340 return i2c_smbus_write_word_swapped(opt->client, OPT3001_CONFIGURATION, in opt3001_set_int_time()
514 ret = i2c_smbus_read_word_swapped(opt->client, OPT3001_CONFIGURATION); in opt3001_write_event_config()
517 OPT3001_CONFIGURATION); in opt3001_write_event_config()
524 ret = i2c_smbus_write_word_swapped(opt->client, OPT3001_CONFIGURATION, in opt3001_write_event_config()
528 OPT3001_CONFIGURATION); in opt3001_write_event_config()
585 ret = i2c_smbus_read_word_swapped(opt->client, OPT3001_CONFIGURATION); in opt3001_configure()
588 OPT3001_CONFIGURATION); in opt3001_configure()
613 ret = i2c_smbus_write_word_swapped(opt->client, OPT3001_CONFIGURATION, in opt3001_configure()
617 OPT3001_CONFIGURATION); in opt3001_configure()
653 ret = i2c_smbus_read_word_swapped(opt->client, OPT3001_CONFIGURATION); in opt3001_irq()
656 OPT3001_CONFIGURATION); in opt3001_irq()
756 ret = i2c_smbus_read_word_swapped(opt->client, OPT3001_CONFIGURATION); in opt3001_remove()
759 OPT3001_CONFIGURATION); in opt3001_remove()
766 ret = i2c_smbus_write_word_swapped(opt->client, OPT3001_CONFIGURATION, in opt3001_remove()
770 OPT3001_CONFIGURATION); in opt3001_remove()