Home
last modified time | relevance | path

Searched refs:cm3605 (Results 1 – 4 of 4) sorted by relevance

/linux/drivers/iio/light/
H A Dcm3605.c45 struct cm3605 { struct
58 struct cm3605 *cm3605 = iio_priv(indio_dev); in cm3605_prox_irq() argument
62 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() argument
79 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 …]
H A DMakefile22 obj-$(CONFIG_CM3605) += cm3605.o
H A DKconfig189 be called cm3605.
/linux/arch/arm/boot/dts/qcom/
H A Dqcom-apq8060-dragonboard.dts67 cm3605 {
68 compatible = "capella,cm3605";
336 dragon_cm3605_gpios: cm3605-state {
404 linux,default-trigger = "cm3605";
437 dragon_cm3605_mpps: cm3605-mpps-state {