Lines Matching refs:OPT3001_CONFIGURATION

29 #define OPT3001_CONFIGURATION	0x01  macro
256 ret = i2c_smbus_read_word_swapped(opt->client, OPT3001_CONFIGURATION); in opt3001_get_lux()
259 OPT3001_CONFIGURATION); in opt3001_get_lux()
266 ret = i2c_smbus_write_word_swapped(opt->client, OPT3001_CONFIGURATION, in opt3001_get_lux()
270 OPT3001_CONFIGURATION); in opt3001_get_lux()
289 OPT3001_CONFIGURATION); in opt3001_get_lux()
292 OPT3001_CONFIGURATION); in opt3001_get_lux()
360 ret = i2c_smbus_read_word_swapped(opt->client, OPT3001_CONFIGURATION); in opt3001_set_int_time()
363 OPT3001_CONFIGURATION); in opt3001_set_int_time()
382 return i2c_smbus_write_word_swapped(opt->client, OPT3001_CONFIGURATION, in opt3001_set_int_time()
556 ret = i2c_smbus_read_word_swapped(opt->client, OPT3001_CONFIGURATION); in opt3001_write_event_config()
559 OPT3001_CONFIGURATION); in opt3001_write_event_config()
566 ret = i2c_smbus_write_word_swapped(opt->client, OPT3001_CONFIGURATION, in opt3001_write_event_config()
570 OPT3001_CONFIGURATION); in opt3001_write_event_config()
626 ret = i2c_smbus_read_word_swapped(opt->client, OPT3001_CONFIGURATION); in opt3001_configure()
629 OPT3001_CONFIGURATION); in opt3001_configure()
654 ret = i2c_smbus_write_word_swapped(opt->client, OPT3001_CONFIGURATION, in opt3001_configure()
658 OPT3001_CONFIGURATION); in opt3001_configure()
695 ret = i2c_smbus_read_word_swapped(opt->client, OPT3001_CONFIGURATION); in opt3001_irq()
698 OPT3001_CONFIGURATION); in opt3001_irq()
806 ret = i2c_smbus_read_word_swapped(opt->client, OPT3001_CONFIGURATION); in opt3001_remove()
809 OPT3001_CONFIGURATION); in opt3001_remove()
816 ret = i2c_smbus_write_word_swapped(opt->client, OPT3001_CONFIGURATION, in opt3001_remove()
820 OPT3001_CONFIGURATION); in opt3001_remove()