aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/Kconfig
diff options
context:
space:
mode:
authorEric Piel <eric.piel@tremplin-utc.net>2009-01-15 16:51:23 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2009-01-15 19:39:40 -0500
commit9e0c79782143a816ba7d7f0f6e195091a97053f6 (patch)
tree109a347061a1e2d1e08aa3908b893e2ee55f9732 /drivers/hwmon/Kconfig
parent5b019e99016f3a692ba45bf68fba73a402d7c01a (diff)
lis3lv02d: merge with leds hp disk
Move the second part of the HP laptop disk protection functionality (a red led) to the same driver. From a purely Linux developer's point of view, the led and the accelerometer have nothing related. However, they correspond to the same ACPI functionality, and so will always be used together, moreover as they share the same ACPI PNP alias, there is no other simple to allow to have same loaded at the same time if they are not in the same module. Also make it requires the led class to compile and update the Kconfig text. Signed-off-by: Pavel Machek <pavel@suse.cz> Signed-off-by: Eric Piel <eric.piel@tremplin-utc.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/hwmon/Kconfig')
-rw-r--r--drivers/hwmon/Kconfig14
1 files changed, 11 insertions, 3 deletions
diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig
index 4b33bc82cc24..54b43bea5e47 100644
--- a/drivers/hwmon/Kconfig
+++ b/drivers/hwmon/Kconfig
@@ -861,6 +861,8 @@ config SENSORS_HDAPS
861config SENSORS_LIS3LV02D 861config SENSORS_LIS3LV02D
862 tristate "STMicroeletronics LIS3LV02Dx three-axis digital accelerometer" 862 tristate "STMicroeletronics LIS3LV02Dx three-axis digital accelerometer"
863 depends on ACPI && INPUT 863 depends on ACPI && INPUT
864 select NEW_LEDS
865 select LEDS_CLASS
864 default n 866 default n
865 help 867 help
866 This driver provides support for the LIS3LV02Dx accelerometer. In 868 This driver provides support for the LIS3LV02Dx accelerometer. In
@@ -872,10 +874,16 @@ config SENSORS_LIS3LV02D
872 /sys/devices/platform/lis3lv02d. 874 /sys/devices/platform/lis3lv02d.
873 875
874 This driver also provides an absolute input class device, allowing 876 This driver also provides an absolute input class device, allowing
875 the laptop to act as a pinball machine-esque joystick. 877 the laptop to act as a pinball machine-esque joystick. On HP laptops,
878 if the led infrastructure is activated, support for a led indicating
879 disk protection will be provided as hp:red:hddprotection.
876 880
877 This driver can also be built as a module. If so, the module 881 This driver can also be built as modules. If so, the core module
878 will be called lis3lv02d. 882 will be called lis3lv02d and a specific module for HP laptops will be
883 called hp_accel.
884
885 Say Y here if you have an applicable laptop and want to experience
886 the awesome power of lis3lv02d.
879 887
880config SENSORS_APPLESMC 888config SENSORS_APPLESMC
881 tristate "Apple SMC (Motion sensor, light sensor, keyboard backlight)" 889 tristate "Apple SMC (Motion sensor, light sensor, keyboard backlight)"