diff options
author | Hemanth V <hemanthv@ti.com> | 2010-08-09 20:20:25 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-09 23:45:05 -0400 |
commit | 7efe15f2a4cd9d40826d31d7d5ef56094f8b65f5 (patch) | |
tree | 45af1fbfad02c2db98ebca52888b5bfcec65a5e5 /drivers/misc/Kconfig | |
parent | 37ed19d5cce35a40d3913cf9aa208ce9f60db3d7 (diff) |
drivers/misc: ROHM BH1780GLI ambient light sensor driver
Add support for ROHM BH1780GLI Ambient light sensor.
BH1780 supports I2C interface. Driver supports read/update of power state
and read of lux value (through SYSFS). Writing value 3 to power_state
enables the sensor and current lux value could be read.
Currently this driver follows the same sysfs convention as supported by
drivers/misc/isl29003.c.
Signed-off-by: Hemanth V <hemanthv@ti.com>
Reviewed-by: Daniel Mack <daniel@caiaq.de>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Cc: Jean Delvare <khali@linux-fr.org>
Cc: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/misc/Kconfig')
-rw-r--r-- | drivers/misc/Kconfig | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig index 488f25472291..2483183419b9 100644 --- a/drivers/misc/Kconfig +++ b/drivers/misc/Kconfig | |||
@@ -304,6 +304,16 @@ config SENSORS_TSL2550 | |||
304 | This driver can also be built as a module. If so, the module | 304 | This driver can also be built as a module. If so, the module |
305 | will be called tsl2550. | 305 | will be called tsl2550. |
306 | 306 | ||
307 | config SENSORS_BH1780 | ||
308 | tristate "ROHM BH1780GLI ambient light sensor" | ||
309 | depends on I2C && SYSFS | ||
310 | help | ||
311 | If you say yes here you get support for the ROHM BH1780GLI | ||
312 | ambient light sensor. | ||
313 | |||
314 | This driver can also be built as a module. If so, the module | ||
315 | will be called bh1780gli. | ||
316 | |||
307 | config EP93XX_PWM | 317 | config EP93XX_PWM |
308 | tristate "EP93xx PWM support" | 318 | tristate "EP93xx PWM support" |
309 | depends on ARCH_EP93XX | 319 | depends on ARCH_EP93XX |