Lines Matching refs:OPT3001_CONFIGURATION

29 #define OPT3001_CONFIGURATION	0x01  macro
260 ret = i2c_smbus_read_word_swapped(opt->client, OPT3001_CONFIGURATION); in opt3001_get_lux()
263 OPT3001_CONFIGURATION); in opt3001_get_lux()
270 ret = i2c_smbus_write_word_swapped(opt->client, OPT3001_CONFIGURATION, in opt3001_get_lux()
274 OPT3001_CONFIGURATION); in opt3001_get_lux()
293 OPT3001_CONFIGURATION); in opt3001_get_lux()
296 OPT3001_CONFIGURATION); in opt3001_get_lux()
364 ret = i2c_smbus_read_word_swapped(opt->client, OPT3001_CONFIGURATION); in opt3001_set_int_time()
367 OPT3001_CONFIGURATION); in opt3001_set_int_time()
386 return i2c_smbus_write_word_swapped(opt->client, OPT3001_CONFIGURATION, in opt3001_set_int_time()
560 ret = i2c_smbus_read_word_swapped(opt->client, OPT3001_CONFIGURATION); in opt3001_write_event_config()
563 OPT3001_CONFIGURATION); in opt3001_write_event_config()
570 ret = i2c_smbus_write_word_swapped(opt->client, OPT3001_CONFIGURATION, in opt3001_write_event_config()
574 OPT3001_CONFIGURATION); in opt3001_write_event_config()
630 ret = i2c_smbus_read_word_swapped(opt->client, OPT3001_CONFIGURATION); in opt3001_configure()
633 OPT3001_CONFIGURATION); in opt3001_configure()
658 ret = i2c_smbus_write_word_swapped(opt->client, OPT3001_CONFIGURATION, in opt3001_configure()
662 OPT3001_CONFIGURATION); in opt3001_configure()
699 ret = i2c_smbus_read_word_swapped(opt->client, OPT3001_CONFIGURATION); in opt3001_irq()
702 OPT3001_CONFIGURATION); in opt3001_irq()
810 ret = i2c_smbus_read_word_swapped(opt->client, OPT3001_CONFIGURATION); in opt3001_remove()
813 OPT3001_CONFIGURATION); in opt3001_remove()
820 ret = i2c_smbus_write_word_swapped(opt->client, OPT3001_CONFIGURATION, in opt3001_remove()
824 OPT3001_CONFIGURATION); in opt3001_remove()