Lines Matching full:opt3001
3 * opt3001.c - Texas Instruments OPT3001 Light Sensor
73 struct opt3001 { struct
151 static int opt3001_find_scale(const struct opt3001 *opt, int val, in opt3001_find_scale()
174 static void opt3001_to_iio_ret(struct opt3001 *opt, u8 exponent, in opt3001_to_iio_ret()
184 static void opt3001_set_mode(struct opt3001 *opt, u16 *reg, u16 mode) in opt3001_set_mode()
228 static int opt3001_get_lux(struct opt3001 *opt, int *val, int *val2) in opt3001_get_lux()
351 static int opt3001_get_int_time(struct opt3001 *opt, int *val, int *val2) in opt3001_get_int_time()
359 static int opt3001_set_int_time(struct opt3001 *opt, int time) in opt3001_set_int_time()
394 struct opt3001 *opt = iio_priv(iio); in opt3001_read_raw()
425 struct opt3001 *opt = iio_priv(iio); in opt3001_write_raw()
452 struct opt3001 *opt = iio_priv(iio); in opt3001_read_event_value()
480 struct opt3001 *opt = iio_priv(iio); in opt3001_write_event_value()
535 struct opt3001 *opt = iio_priv(iio); in opt3001_read_event_config()
544 struct opt3001 *opt = iio_priv(iio); in opt3001_write_event_config()
594 static int opt3001_read_id(struct opt3001 *opt) in opt3001_read_id()
625 static int opt3001_configure(struct opt3001 *opt) in opt3001_configure()
692 struct opt3001 *opt = iio_priv(iio); in opt3001_irq()
747 struct opt3001 *opt; in opt3001_probe()
787 "opt3001", iio); in opt3001_probe()
803 struct opt3001 *opt = iio_priv(iio); in opt3001_remove()
829 { "opt3001" },
835 { .compatible = "ti,opt3001" },
846 .name = "opt3001",
855 MODULE_DESCRIPTION("Texas Instruments OPT3001 Light Sensor Driver");