Searched refs:cm3605 (Results 1 – 4 of 4) sorted by relevance
45 struct cm3605 { struct58 struct cm3605 *cm3605 = iio_priv(indio_dev); in cm3605_prox_irq() argument62 IIO_EV_TYPE_THRESH, cm3605->dir); in cm3605_prox_irq()66 if (cm3605->dir == IIO_EV_DIR_RISING) in cm3605_prox_irq()67 cm3605->dir = IIO_EV_DIR_FALLING; in cm3605_prox_irq()69 cm3605->dir = IIO_EV_DIR_RISING; in cm3605_prox_irq()74 static int cm3605_get_lux(struct cm3605 *cm3605) in cm3605_get_lux() argument79 ret = iio_read_channel_processed(cm3605->aout, &res); in cm3605_get_lux()83 dev_dbg(cm3605->dev, "read %d mV from ADC\n", res); in cm3605_get_lux()94 dev_err(cm3605->dev, "device out of range\n"); in cm3605_get_lux()[all …]
22 obj-$(CONFIG_CM3605) += cm3605.o
189 be called cm3605.
67 cm3605 {68 compatible = "capella,cm3605";336 dragon_cm3605_gpios: cm3605-state {404 linux,default-trigger = "cm3605";437 dragon_cm3605_mpps: cm3605-mpps-state {