Lines Matching refs:OPT3001_CONFIGURATION
29 #define OPT3001_CONFIGURATION 0x01 macro
346 ret = i2c_smbus_read_word_swapped(opt->client, OPT3001_CONFIGURATION); in opt3001_get_processed()
349 OPT3001_CONFIGURATION); in opt3001_get_processed()
356 ret = i2c_smbus_write_word_swapped(opt->client, OPT3001_CONFIGURATION, in opt3001_get_processed()
360 OPT3001_CONFIGURATION); in opt3001_get_processed()
379 OPT3001_CONFIGURATION); in opt3001_get_processed()
382 OPT3001_CONFIGURATION); in opt3001_get_processed()
450 ret = i2c_smbus_read_word_swapped(opt->client, OPT3001_CONFIGURATION); in opt3001_set_int_time()
453 OPT3001_CONFIGURATION); in opt3001_set_int_time()
472 return i2c_smbus_write_word_swapped(opt->client, OPT3001_CONFIGURATION, in opt3001_set_int_time()
655 ret = i2c_smbus_read_word_swapped(opt->client, OPT3001_CONFIGURATION); in opt3001_write_event_config()
658 OPT3001_CONFIGURATION); in opt3001_write_event_config()
665 ret = i2c_smbus_write_word_swapped(opt->client, OPT3001_CONFIGURATION, in opt3001_write_event_config()
669 OPT3001_CONFIGURATION); in opt3001_write_event_config()
725 ret = i2c_smbus_read_word_swapped(opt->client, OPT3001_CONFIGURATION); in opt3001_configure()
728 OPT3001_CONFIGURATION); in opt3001_configure()
753 ret = i2c_smbus_write_word_swapped(opt->client, OPT3001_CONFIGURATION, in opt3001_configure()
757 OPT3001_CONFIGURATION); in opt3001_configure()
796 ret = i2c_smbus_read_word_swapped(opt->client, OPT3001_CONFIGURATION); in opt3001_irq()
799 OPT3001_CONFIGURATION); in opt3001_irq()
910 ret = i2c_smbus_read_word_swapped(opt->client, OPT3001_CONFIGURATION); in opt3001_remove()
913 OPT3001_CONFIGURATION); in opt3001_remove()
920 ret = i2c_smbus_write_word_swapped(opt->client, OPT3001_CONFIGURATION, in opt3001_remove()
924 OPT3001_CONFIGURATION); in opt3001_remove()