Lines Matching defs:opt3001
3 * opt3001.c - Texas Instruments OPT3001 Light Sensor
73 struct opt3001 {
147 static int opt3001_find_scale(const struct opt3001 *opt, int val,
170 static void opt3001_to_iio_ret(struct opt3001 *opt, u8 exponent,
180 static void opt3001_set_mode(struct opt3001 *opt, u16 *reg, u16 mode)
224 static int opt3001_get_lux(struct opt3001 *opt, int *val, int *val2)
347 static int opt3001_get_int_time(struct opt3001 *opt, int *val, int *val2)
355 static int opt3001_set_int_time(struct opt3001 *opt, int time)
390 struct opt3001 *opt = iio_priv(iio);
421 struct opt3001 *opt = iio_priv(iio);
448 struct opt3001 *opt = iio_priv(iio);
476 struct opt3001 *opt = iio_priv(iio);
531 struct opt3001 *opt = iio_priv(iio);
540 struct opt3001 *opt = iio_priv(iio);
590 static int opt3001_read_id(struct opt3001 *opt)
621 static int opt3001_configure(struct opt3001 *opt)
688 struct opt3001 *opt = iio_priv(iio);
743 struct opt3001 *opt;
783 "opt3001", iio);
799 struct opt3001 *opt = iio_priv(iio);
825 { "opt3001", 0 },
831 { .compatible = "ti,opt3001" },
842 .name = "opt3001",