diff options
| author | Jean Delvare <khali@linux-fr.org> | 2011-03-21 12:59:36 -0400 |
|---|---|---|
| committer | Jean Delvare <khali@endymion.delvare> | 2011-03-21 12:59:36 -0400 |
| commit | efcfed9bad88be8193ee6a1b8e72d7381e7b0e0e (patch) | |
| tree | 84259d01b720c5eaf885bca0a983d0c1321bf664 | |
| parent | 39c3e721d65793373e7bc6f5dad0591ef6d09268 (diff) | |
Move hp_accel to drivers/platform/x86
The hp_accel driver isn't a hardware monitoring driver, so it doesn't
belong to drivers/hwmon. Move it to drivers/platform/x86, assuming HP
doesn't ship non-x86 laptops.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Guenter Roeck <guenter.roeck@ericsson.com>
Acked-by: Eric Piel <eric.piel@tremplin-utc.net>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Tested-by: Eric Piel <eric.piel@tremplin-utc.net>
Tested-by: Takashi Iwai <tiwai@suse.de>
| -rw-r--r-- | Documentation/hwmon/lis3lv02d | 4 | ||||
| -rw-r--r-- | Documentation/laptops/hpfall.c (renamed from Documentation/hwmon/hpfall.c) | 0 | ||||
| -rw-r--r-- | drivers/hwmon/Kconfig | 19 | ||||
| -rw-r--r-- | drivers/hwmon/Makefile | 1 | ||||
| -rw-r--r-- | drivers/platform/x86/Kconfig | 18 | ||||
| -rw-r--r-- | drivers/platform/x86/Makefile | 1 | ||||
| -rw-r--r-- | drivers/platform/x86/hp_accel.c (renamed from drivers/hwmon/hp_accel.c) | 5 |
7 files changed, 23 insertions, 25 deletions
diff --git a/Documentation/hwmon/lis3lv02d b/Documentation/hwmon/lis3lv02d index 06534f25e643..f1a4ec840f86 100644 --- a/Documentation/hwmon/lis3lv02d +++ b/Documentation/hwmon/lis3lv02d | |||
| @@ -17,8 +17,8 @@ Description | |||
| 17 | This driver provides support for the accelerometer found in various HP laptops | 17 | This driver provides support for the accelerometer found in various HP laptops |
| 18 | sporting the feature officially called "HP Mobile Data Protection System 3D" or | 18 | sporting the feature officially called "HP Mobile Data Protection System 3D" or |
| 19 | "HP 3D DriveGuard". It detects automatically laptops with this sensor. Known | 19 | "HP 3D DriveGuard". It detects automatically laptops with this sensor. Known |
| 20 | models (full list can be found in drivers/hwmon/hp_accel.c) will have their | 20 | models (full list can be found in drivers/platform/x86/hp_accel.c) will have |
| 21 | axis automatically oriented on standard way (eg: you can directly play | 21 | their axis automatically oriented on standard way (eg: you can directly play |
| 22 | neverball). The accelerometer data is readable via | 22 | neverball). The accelerometer data is readable via |
| 23 | /sys/devices/platform/lis3lv02d. Reported values are scaled | 23 | /sys/devices/platform/lis3lv02d. Reported values are scaled |
| 24 | to mg values (1/1000th of earth gravity). | 24 | to mg values (1/1000th of earth gravity). |
diff --git a/Documentation/hwmon/hpfall.c b/Documentation/laptops/hpfall.c index a4a8fc5d05d4..a4a8fc5d05d4 100644 --- a/Documentation/hwmon/hpfall.c +++ b/Documentation/laptops/hpfall.c | |||
diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig index c48101cf58f4..3f8c895417de 100644 --- a/drivers/hwmon/Kconfig +++ b/drivers/hwmon/Kconfig | |||
| @@ -1302,25 +1302,6 @@ config SENSORS_ATK0110 | |||
| 1302 | This driver can also be built as a module. If so, the module | 1302 | This driver can also be built as a module. If so, the module |
| 1303 | will be called asus_atk0110. | 1303 | will be called asus_atk0110. |
| 1304 | 1304 | ||
| 1305 | config HP_ACCEL | ||
| 1306 | tristate "HP laptop accelerometer" | ||
| 1307 | depends on INPUT | ||
| 1308 | select SENSORS_LIS3LV02D | ||
| 1309 | select NEW_LEDS | ||
| 1310 | select LEDS_CLASS | ||
| 1311 | default n | ||
| 1312 | help | ||
| 1313 | This driver provides support for the "Mobile Data Protection System 3D" | ||
| 1314 | or "3D DriveGuard" feature of HP laptops. On such systems the driver | ||
| 1315 | should load automatically (via ACPI alias). | ||
| 1316 | |||
| 1317 | Support for a led indicating disk protection will be provided as | ||
| 1318 | hp::hddprotect. For more information on the feature, refer to | ||
| 1319 | Documentation/hwmon/lis3lv02d. | ||
| 1320 | |||
| 1321 | To compile this driver as a module, choose M here: the module will | ||
| 1322 | be called hp_accel. | ||
| 1323 | |||
| 1324 | endif # ACPI | 1305 | endif # ACPI |
| 1325 | 1306 | ||
| 1326 | endif # HWMON | 1307 | endif # HWMON |
diff --git a/drivers/hwmon/Makefile b/drivers/hwmon/Makefile index 94bf27482979..55ba906def74 100644 --- a/drivers/hwmon/Makefile +++ b/drivers/hwmon/Makefile | |||
| @@ -10,7 +10,6 @@ obj-$(CONFIG_SENSORS_LIS3LV02D) += lis3lv02d.o | |||
| 10 | 10 | ||
| 11 | # APCI drivers | 11 | # APCI drivers |
| 12 | obj-$(CONFIG_SENSORS_ATK0110) += asus_atk0110.o | 12 | obj-$(CONFIG_SENSORS_ATK0110) += asus_atk0110.o |
| 13 | obj-$(CONFIG_HP_ACCEL) += hp_accel.o | ||
| 14 | 13 | ||
| 15 | # Native drivers | 14 | # Native drivers |
| 16 | # asb100, then w83781d go first, as they can override other drivers' addresses. | 15 | # asb100, then w83781d go first, as they can override other drivers' addresses. |
diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig index a59af5b24f0a..222dfb737b11 100644 --- a/drivers/platform/x86/Kconfig +++ b/drivers/platform/x86/Kconfig | |||
| @@ -138,6 +138,24 @@ config TC1100_WMI | |||
| 138 | This is a driver for the WMI extensions (wireless and bluetooth power | 138 | This is a driver for the WMI extensions (wireless and bluetooth power |
| 139 | control) of the HP Compaq TC1100 tablet. | 139 | control) of the HP Compaq TC1100 tablet. |
| 140 | 140 | ||
| 141 | config HP_ACCEL | ||
| 142 | tristate "HP laptop accelerometer" | ||
| 143 | depends on INPUT && ACPI | ||
| 144 | select SENSORS_LIS3LV02D | ||
| 145 | select NEW_LEDS | ||
| 146 | select LEDS_CLASS | ||
| 147 | help | ||
| 148 | This driver provides support for the "Mobile Data Protection System 3D" | ||
| 149 | or "3D DriveGuard" feature of HP laptops. On such systems the driver | ||
| 150 | should load automatically (via ACPI alias). | ||
| 151 | |||
| 152 | Support for a led indicating disk protection will be provided as | ||
| 153 | hp::hddprotect. For more information on the feature, refer to | ||
| 154 | Documentation/hwmon/lis3lv02d. | ||
| 155 | |||
| 156 | To compile this driver as a module, choose M here: the module will | ||
| 157 | be called hp_accel. | ||
| 158 | |||
| 141 | config HP_WMI | 159 | config HP_WMI |
| 142 | tristate "HP WMI extras" | 160 | tristate "HP WMI extras" |
| 143 | depends on ACPI_WMI | 161 | depends on ACPI_WMI |
diff --git a/drivers/platform/x86/Makefile b/drivers/platform/x86/Makefile index 4ec4ff8f9182..299aefb3e74c 100644 --- a/drivers/platform/x86/Makefile +++ b/drivers/platform/x86/Makefile | |||
| @@ -12,6 +12,7 @@ obj-$(CONFIG_DELL_LAPTOP) += dell-laptop.o | |||
| 12 | obj-$(CONFIG_DELL_WMI) += dell-wmi.o | 12 | obj-$(CONFIG_DELL_WMI) += dell-wmi.o |
| 13 | obj-$(CONFIG_ACER_WMI) += acer-wmi.o | 13 | obj-$(CONFIG_ACER_WMI) += acer-wmi.o |
| 14 | obj-$(CONFIG_ACERHDF) += acerhdf.o | 14 | obj-$(CONFIG_ACERHDF) += acerhdf.o |
| 15 | obj-$(CONFIG_HP_ACCEL) += hp_accel.o | ||
| 15 | obj-$(CONFIG_HP_WMI) += hp-wmi.o | 16 | obj-$(CONFIG_HP_WMI) += hp-wmi.o |
| 16 | obj-$(CONFIG_TC1100_WMI) += tc1100-wmi.o | 17 | obj-$(CONFIG_TC1100_WMI) += tc1100-wmi.o |
| 17 | obj-$(CONFIG_SONY_LAPTOP) += sony-laptop.o | 18 | obj-$(CONFIG_SONY_LAPTOP) += sony-laptop.o |
diff --git a/drivers/hwmon/hp_accel.c b/drivers/platform/x86/hp_accel.c index 3d21fa2b97cd..23f09c1b234b 100644 --- a/drivers/hwmon/hp_accel.c +++ b/drivers/platform/x86/hp_accel.c | |||
| @@ -35,9 +35,9 @@ | |||
| 35 | #include <linux/freezer.h> | 35 | #include <linux/freezer.h> |
| 36 | #include <linux/uaccess.h> | 36 | #include <linux/uaccess.h> |
| 37 | #include <linux/leds.h> | 37 | #include <linux/leds.h> |
| 38 | #include <linux/atomic.h> | ||
| 38 | #include <acpi/acpi_drivers.h> | 39 | #include <acpi/acpi_drivers.h> |
| 39 | #include <asm/atomic.h> | 40 | #include "../../hwmon/lis3lv02d.h" |
| 40 | #include "lis3lv02d.h" | ||
| 41 | 41 | ||
| 42 | #define DRIVER_NAME "lis3lv02d" | 42 | #define DRIVER_NAME "lis3lv02d" |
| 43 | #define ACPI_MDPS_CLASS "accelerometer" | 43 | #define ACPI_MDPS_CLASS "accelerometer" |
| @@ -402,4 +402,3 @@ MODULE_LICENSE("GPL"); | |||
| 402 | 402 | ||
| 403 | module_init(lis3lv02d_init_module); | 403 | module_init(lis3lv02d_init_module); |
| 404 | module_exit(lis3lv02d_exit_module); | 404 | module_exit(lis3lv02d_exit_module); |
| 405 | |||
