Lines Matching full:opt3001
3 * opt3001.c - Texas Instruments OPT3001 Light Sensor
86 * eg. 0.01 (scaled to integer 10) for opt3001.
102 struct opt3001 { struct
227 static int opt3001_find_scale(const struct opt3001 *opt, int val, in opt3001_find_scale()
246 static void opt3001_to_iio_ret(struct opt3001 *opt, u8 exponent, in opt3001_to_iio_ret()
259 static void opt3001_set_mode(struct opt3001 *opt, u16 *reg, u16 mode) in opt3001_set_mode()
314 static int opt3001_get_processed(struct opt3001 *opt, int *val, int *val2) in opt3001_get_processed()
437 static int opt3001_get_int_time(struct opt3001 *opt, int *val, int *val2) in opt3001_get_int_time()
445 static int opt3001_set_int_time(struct opt3001 *opt, int time) in opt3001_set_int_time()
480 struct opt3001 *opt = iio_priv(iio); in opt3001_read_raw()
512 struct opt3001 *opt = iio_priv(iio); in opt3001_write_raw()
539 struct opt3001 *opt = iio_priv(iio); in opt3001_read_event_value()
567 struct opt3001 *opt = iio_priv(iio); in opt3001_write_event_value()
630 struct opt3001 *opt = iio_priv(iio); in opt3001_read_event_config()
639 struct opt3001 *opt = iio_priv(iio); in opt3001_write_event_config()
689 static int opt3001_read_id(struct opt3001 *opt) in opt3001_read_id()
720 static int opt3001_configure(struct opt3001 *opt) in opt3001_configure()
787 struct opt3001 *opt = iio_priv(iio); in opt3001_irq()
844 struct opt3001 *opt; in opt3001_probe()
887 "opt3001", iio); in opt3001_probe()
903 struct opt3001 *opt = iio_priv(iio); in opt3001_remove()
951 { "opt3001", (kernel_ulong_t)&opt3001_chip_information },
958 { .compatible = "ti,opt3001", .data = &opt3001_chip_information },
970 .name = "opt3001",
979 MODULE_DESCRIPTION("Texas Instruments OPT3001 Light Sensor Driver");