iio: cm36651: Add CM36651 proximity/light sensor
Subsystems (2)
PATCH v7 1/2 iio: cm36651: Add CM36651 proximity/light sensor
This patch adds a new driver for Capella CM36651 proximity and RGB sensor.
Signed-off-by Beomho Seo <[email protected]>
--- drivers/iio/light/Kconfig | 11 + drivers/iio/light/Makefile | 1 + drivers/iio/light/cm36651.c | 708 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 720 insertions(+) create mode 100644 drivers/iio/light/cm36651.c
drivers/iio/light/Kconfig +11 -0
@@ -27,6 +27,17 @@ config APDS9300 To compile this driver as a module, choose M here: the module will be called apds9300. +config CM36651 + depends on I2C + tristate "CM36651 driver" + help + Say Y here if you use cm36651. + This option enables proximity & RGB sensor using + Capella cm36651 device driver. + + To compile this driver as a module, choose M here: + the module will be called cm36651. + config GP2AP020A00F tristate "Sharp GP2AP020A00F Proximity/ALS sensor" depends on I2C
drivers/iio/light/Makefile +1 -0
@@ -5,6 +5,7 @@ # When adding new entries keep the list in alphabetical order obj-$(CONFIG_ADJD_S311) += adjd_s311.o obj-$(CONFIG_APDS9300) += apds9300.o +obj-$(CONFIG_COM36651) += cm36651.o obj-$(CONFIG_GP2AP020A00F) += gp2ap020a00f.o obj-$(CONFIG_HID_SENSOR_ALS) += hid-sensor-als.o obj-$(CONFIG_SENSORS_LM3533) += lm3533-als.o
drivers/iio/light/cm36651.c new file +708 -0
708 lines not on this page · raw message
Signature · 8 lines
1.7.9.5 -- Best Regards, Beomho Seo, Assistant Engineer System S/W Lab., S/W Platform Team, Software Center Samsung Electronics
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 4 lines · Beomho Seo
This patch adds a new driver for Capella CM36651 proximity and RGB sensor.
Signed-off-by Beomho Seo <[email protected]>
I have fixed the typo in the makefile and applied this to the togreg branch of iio.git.
It does make me a little nervous that you clearly have not tested the last few versions, but the changes have been simple enough, I'm assuming that nothing has broken from the point of view of the driver actually working.
Thanks,
Quoted 34 lines
--- drivers/iio/light/Kconfig | 11 + drivers/iio/light/Makefile | 1 + drivers/iio/light/cm36651.c | 708 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 720 insertions(+) create mode 100644 drivers/iio/light/cm36651.cdrivers/iio/light/Kconfig +11
-0@@ -27,6 +27,17 @@ config APDS9300 To compile this driver as a module, choose M here: the module will be called apds9300. +config CM36651 + depends on I2C + tristate "CM36651 driver" + help + Say Y here if you use cm36651. + This option enables proximity & RGB sensor using + Capella cm36651 device driver. + + To compile this driver as a module, choose M here: + the module will be called cm36651. + config GP2AP020A00F tristate "Sharp GP2AP020A00F Proximity/ALS sensor" depends on I2Cdrivers/iio/light/Makefile +0
-0
drivers/iio/light/Makefile line 8
Quoted 4 lines
drivers/iio/light/Makefile +1
-0@@ -5,6 +5,7 @@ # When adding new entries keep the list in alphabetical order obj-$(CONFIG_ADJD_S311) += adjd_s311.o obj-$(CONFIG_APDS9300) += apds9300.o +obj-$(CONFIG_COM36651) += cm36651.o
CONFIG_CM36651
Quoted 6 lines
drivers/iio/light/Makefile +0
-0obj-$(CONFIG_GP2AP020A00F) += gp2ap020a00f.o obj-$(CONFIG_HID_SENSOR_ALS) += hid-sensor-als.o obj-$(CONFIG_SENSORS_LM3533) += lm3533-als.odrivers/iio/light/cm36651.c new file +0
-0