diff options
-rw-r--r-- | Documentation/misc-devices/lis3lv02d (renamed from Documentation/hwmon/lis3lv02d) | 0 | ||||
-rw-r--r-- | MAINTAINERS | 4 | ||||
-rw-r--r-- | drivers/hwmon/Kconfig | 40 | ||||
-rw-r--r-- | drivers/hwmon/Makefile | 5 | ||||
-rw-r--r-- | drivers/misc/Kconfig | 9 | ||||
-rw-r--r-- | drivers/misc/Makefile | 1 | ||||
-rw-r--r-- | drivers/misc/lis3lv02d/Kconfig | 37 | ||||
-rw-r--r-- | drivers/misc/lis3lv02d/Makefile | 7 | ||||
-rw-r--r-- | drivers/misc/lis3lv02d/lis3lv02d.c (renamed from drivers/hwmon/lis3lv02d.c) | 3 | ||||
-rw-r--r-- | drivers/misc/lis3lv02d/lis3lv02d.h (renamed from drivers/hwmon/lis3lv02d.h) | 0 | ||||
-rw-r--r-- | drivers/misc/lis3lv02d/lis3lv02d_i2c.c (renamed from drivers/hwmon/lis3lv02d_i2c.c) | 2 | ||||
-rw-r--r-- | drivers/misc/lis3lv02d/lis3lv02d_spi.c (renamed from drivers/hwmon/lis3lv02d_spi.c) | 0 | ||||
-rw-r--r-- | drivers/platform/x86/hp_accel.c | 2 |
13 files changed, 59 insertions, 51 deletions
diff --git a/Documentation/hwmon/lis3lv02d b/Documentation/misc-devices/lis3lv02d index f1a4ec840f86..f1a4ec840f86 100644 --- a/Documentation/hwmon/lis3lv02d +++ b/Documentation/misc-devices/lis3lv02d | |||
diff --git a/MAINTAINERS b/MAINTAINERS index c7a41b1fe453..4edb2a800b54 100644 --- a/MAINTAINERS +++ b/MAINTAINERS | |||
@@ -3913,8 +3913,8 @@ S: Supported | |||
3913 | LIS3LV02D ACCELEROMETER DRIVER | 3913 | LIS3LV02D ACCELEROMETER DRIVER |
3914 | M: Eric Piel <eric.piel@tremplin-utc.net> | 3914 | M: Eric Piel <eric.piel@tremplin-utc.net> |
3915 | S: Maintained | 3915 | S: Maintained |
3916 | F: Documentation/hwmon/lis3lv02d | 3916 | F: Documentation/misc-devices/lis3lv02d |
3917 | F: drivers/hwmon/lis3lv02d.* | 3917 | F: drivers/misc/lis3lv02d/ |
3918 | 3918 | ||
3919 | LLC (802.2) | 3919 | LLC (802.2) |
3920 | M: Arnaldo Carvalho de Melo <acme@ghostprotocols.net> | 3920 | M: Arnaldo Carvalho de Melo <acme@ghostprotocols.net> |
diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig index 3f8c895417de..47621abb9a05 100644 --- a/drivers/hwmon/Kconfig +++ b/drivers/hwmon/Kconfig | |||
@@ -2,12 +2,6 @@ | |||
2 | # Hardware monitoring chip drivers configuration | 2 | # Hardware monitoring chip drivers configuration |
3 | # | 3 | # |
4 | 4 | ||
5 | config SENSORS_LIS3LV02D | ||
6 | tristate | ||
7 | depends on INPUT | ||
8 | select INPUT_POLLDEV | ||
9 | default n | ||
10 | |||
11 | menuconfig HWMON | 5 | menuconfig HWMON |
12 | tristate "Hardware Monitoring support" | 6 | tristate "Hardware Monitoring support" |
13 | depends on HAS_IOMEM | 7 | depends on HAS_IOMEM |
@@ -1221,40 +1215,6 @@ config SENSORS_ULTRA45 | |||
1221 | This driver provides support for the Ultra45 workstation environmental | 1215 | This driver provides support for the Ultra45 workstation environmental |
1222 | sensors. | 1216 | sensors. |
1223 | 1217 | ||
1224 | config SENSORS_LIS3_SPI | ||
1225 | tristate "STMicroeletronics LIS3LV02Dx three-axis digital accelerometer (SPI)" | ||
1226 | depends on !ACPI && SPI_MASTER && INPUT | ||
1227 | select SENSORS_LIS3LV02D | ||
1228 | default n | ||
1229 | help | ||
1230 | This driver provides support for the LIS3LV02Dx accelerometer connected | ||
1231 | via SPI. The accelerometer data is readable via | ||
1232 | /sys/devices/platform/lis3lv02d. | ||
1233 | |||
1234 | This driver also provides an absolute input class device, allowing | ||
1235 | the laptop to act as a pinball machine-esque joystick. | ||
1236 | |||
1237 | This driver can also be built as modules. If so, the core module | ||
1238 | will be called lis3lv02d and a specific module for the SPI transport | ||
1239 | is called lis3lv02d_spi. | ||
1240 | |||
1241 | config SENSORS_LIS3_I2C | ||
1242 | tristate "STMicroeletronics LIS3LV02Dx three-axis digital accelerometer (I2C)" | ||
1243 | depends on I2C && INPUT | ||
1244 | select SENSORS_LIS3LV02D | ||
1245 | default n | ||
1246 | help | ||
1247 | This driver provides support for the LIS3LV02Dx accelerometer connected | ||
1248 | via I2C. The accelerometer data is readable via | ||
1249 | /sys/devices/platform/lis3lv02d. | ||
1250 | |||
1251 | This driver also provides an absolute input class device, allowing | ||
1252 | the device to act as a pinball machine-esque joystick. | ||
1253 | |||
1254 | This driver can also be built as modules. If so, the core module | ||
1255 | will be called lis3lv02d and a specific module for the I2C transport | ||
1256 | is called lis3lv02d_i2c. | ||
1257 | |||
1258 | config SENSORS_APPLESMC | 1218 | config SENSORS_APPLESMC |
1259 | tristate "Apple SMC (Motion sensor, light sensor, keyboard backlight)" | 1219 | tristate "Apple SMC (Motion sensor, light sensor, keyboard backlight)" |
1260 | depends on INPUT && X86 | 1220 | depends on INPUT && X86 |
diff --git a/drivers/hwmon/Makefile b/drivers/hwmon/Makefile index 55ba906def74..c068f82082cd 100644 --- a/drivers/hwmon/Makefile +++ b/drivers/hwmon/Makefile | |||
@@ -5,9 +5,6 @@ | |||
5 | obj-$(CONFIG_HWMON) += hwmon.o | 5 | obj-$(CONFIG_HWMON) += hwmon.o |
6 | obj-$(CONFIG_HWMON_VID) += hwmon-vid.o | 6 | obj-$(CONFIG_HWMON_VID) += hwmon-vid.o |
7 | 7 | ||
8 | # Helper drivers | ||
9 | obj-$(CONFIG_SENSORS_LIS3LV02D) += lis3lv02d.o | ||
10 | |||
11 | # APCI drivers | 8 | # APCI drivers |
12 | obj-$(CONFIG_SENSORS_ATK0110) += asus_atk0110.o | 9 | obj-$(CONFIG_SENSORS_ATK0110) += asus_atk0110.o |
13 | 10 | ||
@@ -66,8 +63,6 @@ obj-$(CONFIG_SENSORS_JZ4740) += jz4740-hwmon.o | |||
66 | obj-$(CONFIG_SENSORS_K8TEMP) += k8temp.o | 63 | obj-$(CONFIG_SENSORS_K8TEMP) += k8temp.o |
67 | obj-$(CONFIG_SENSORS_K10TEMP) += k10temp.o | 64 | obj-$(CONFIG_SENSORS_K10TEMP) += k10temp.o |
68 | obj-$(CONFIG_SENSORS_LINEAGE) += lineage-pem.o | 65 | obj-$(CONFIG_SENSORS_LINEAGE) += lineage-pem.o |
69 | obj-$(CONFIG_SENSORS_LIS3_SPI) += lis3lv02d_spi.o | ||
70 | obj-$(CONFIG_SENSORS_LIS3_I2C) += lis3lv02d_i2c.o | ||
71 | obj-$(CONFIG_SENSORS_LM63) += lm63.o | 66 | obj-$(CONFIG_SENSORS_LM63) += lm63.o |
72 | obj-$(CONFIG_SENSORS_LM70) += lm70.o | 67 | obj-$(CONFIG_SENSORS_LM70) += lm70.o |
73 | obj-$(CONFIG_SENSORS_LM73) += lm73.o | 68 | obj-$(CONFIG_SENSORS_LM73) += lm73.o |
diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig index b7d5ef234ac9..203500d9b848 100644 --- a/drivers/misc/Kconfig +++ b/drivers/misc/Kconfig | |||
@@ -2,6 +2,14 @@ | |||
2 | # Misc strange devices | 2 | # Misc strange devices |
3 | # | 3 | # |
4 | 4 | ||
5 | # This one has to live outside of the MISC_DEVICES conditional, | ||
6 | # because it may be selected by drivers/platform/x86/hp_accel. | ||
7 | config SENSORS_LIS3LV02D | ||
8 | tristate | ||
9 | depends on INPUT | ||
10 | select INPUT_POLLDEV | ||
11 | default n | ||
12 | |||
5 | menuconfig MISC_DEVICES | 13 | menuconfig MISC_DEVICES |
6 | bool "Misc devices" | 14 | bool "Misc devices" |
7 | ---help--- | 15 | ---help--- |
@@ -462,5 +470,6 @@ source "drivers/misc/eeprom/Kconfig" | |||
462 | source "drivers/misc/cb710/Kconfig" | 470 | source "drivers/misc/cb710/Kconfig" |
463 | source "drivers/misc/iwmc3200top/Kconfig" | 471 | source "drivers/misc/iwmc3200top/Kconfig" |
464 | source "drivers/misc/ti-st/Kconfig" | 472 | source "drivers/misc/ti-st/Kconfig" |
473 | source "drivers/misc/lis3lv02d/Kconfig" | ||
465 | 474 | ||
466 | endif # MISC_DEVICES | 475 | endif # MISC_DEVICES |
diff --git a/drivers/misc/Makefile b/drivers/misc/Makefile index 98009cc20cb9..804f421bc079 100644 --- a/drivers/misc/Makefile +++ b/drivers/misc/Makefile | |||
@@ -42,3 +42,4 @@ obj-$(CONFIG_ARM_CHARLCD) += arm-charlcd.o | |||
42 | obj-$(CONFIG_PCH_PHUB) += pch_phub.o | 42 | obj-$(CONFIG_PCH_PHUB) += pch_phub.o |
43 | obj-y += ti-st/ | 43 | obj-y += ti-st/ |
44 | obj-$(CONFIG_AB8500_PWM) += ab8500-pwm.o | 44 | obj-$(CONFIG_AB8500_PWM) += ab8500-pwm.o |
45 | obj-y += lis3lv02d/ | ||
diff --git a/drivers/misc/lis3lv02d/Kconfig b/drivers/misc/lis3lv02d/Kconfig new file mode 100644 index 000000000000..8f474e6fc7b4 --- /dev/null +++ b/drivers/misc/lis3lv02d/Kconfig | |||
@@ -0,0 +1,37 @@ | |||
1 | # | ||
2 | # STMicroelectonics LIS3LV02D and similar accelerometers | ||
3 | # | ||
4 | |||
5 | config SENSORS_LIS3_SPI | ||
6 | tristate "STMicroeletronics LIS3LV02Dx three-axis digital accelerometer (SPI)" | ||
7 | depends on !ACPI && SPI_MASTER && INPUT | ||
8 | select SENSORS_LIS3LV02D | ||
9 | default n | ||
10 | help | ||
11 | This driver provides support for the LIS3LV02Dx accelerometer connected | ||
12 | via SPI. The accelerometer data is readable via | ||
13 | /sys/devices/platform/lis3lv02d. | ||
14 | |||
15 | This driver also provides an absolute input class device, allowing | ||
16 | the laptop to act as a pinball machine-esque joystick. | ||
17 | |||
18 | This driver can also be built as modules. If so, the core module | ||
19 | will be called lis3lv02d and a specific module for the SPI transport | ||
20 | is called lis3lv02d_spi. | ||
21 | |||
22 | config SENSORS_LIS3_I2C | ||
23 | tristate "STMicroeletronics LIS3LV02Dx three-axis digital accelerometer (I2C)" | ||
24 | depends on I2C && INPUT | ||
25 | select SENSORS_LIS3LV02D | ||
26 | default n | ||
27 | help | ||
28 | This driver provides support for the LIS3LV02Dx accelerometer connected | ||
29 | via I2C. The accelerometer data is readable via | ||
30 | /sys/devices/platform/lis3lv02d. | ||
31 | |||
32 | This driver also provides an absolute input class device, allowing | ||
33 | the device to act as a pinball machine-esque joystick. | ||
34 | |||
35 | This driver can also be built as modules. If so, the core module | ||
36 | will be called lis3lv02d and a specific module for the I2C transport | ||
37 | is called lis3lv02d_i2c. | ||
diff --git a/drivers/misc/lis3lv02d/Makefile b/drivers/misc/lis3lv02d/Makefile new file mode 100644 index 000000000000..4bf58b16fcf8 --- /dev/null +++ b/drivers/misc/lis3lv02d/Makefile | |||
@@ -0,0 +1,7 @@ | |||
1 | # | ||
2 | # STMicroelectonics LIS3LV02D and similar accelerometers | ||
3 | # | ||
4 | |||
5 | obj-$(CONFIG_SENSORS_LIS3LV02D) += lis3lv02d.o | ||
6 | obj-$(CONFIG_SENSORS_LIS3_SPI) += lis3lv02d_spi.o | ||
7 | obj-$(CONFIG_SENSORS_LIS3_I2C) += lis3lv02d_i2c.o | ||
diff --git a/drivers/hwmon/lis3lv02d.c b/drivers/misc/lis3lv02d/lis3lv02d.c index d805e8e57967..b928bc14e97b 100644 --- a/drivers/hwmon/lis3lv02d.c +++ b/drivers/misc/lis3lv02d/lis3lv02d.c | |||
@@ -38,7 +38,7 @@ | |||
38 | #include <linux/uaccess.h> | 38 | #include <linux/uaccess.h> |
39 | #include <linux/miscdevice.h> | 39 | #include <linux/miscdevice.h> |
40 | #include <linux/pm_runtime.h> | 40 | #include <linux/pm_runtime.h> |
41 | #include <asm/atomic.h> | 41 | #include <linux/atomic.h> |
42 | #include "lis3lv02d.h" | 42 | #include "lis3lv02d.h" |
43 | 43 | ||
44 | #define DRIVER_NAME "lis3lv02d" | 44 | #define DRIVER_NAME "lis3lv02d" |
@@ -88,7 +88,6 @@ | |||
88 | struct lis3lv02d lis3_dev = { | 88 | struct lis3lv02d lis3_dev = { |
89 | .misc_wait = __WAIT_QUEUE_HEAD_INITIALIZER(lis3_dev.misc_wait), | 89 | .misc_wait = __WAIT_QUEUE_HEAD_INITIALIZER(lis3_dev.misc_wait), |
90 | }; | 90 | }; |
91 | |||
92 | EXPORT_SYMBOL_GPL(lis3_dev); | 91 | EXPORT_SYMBOL_GPL(lis3_dev); |
93 | 92 | ||
94 | /* just like param_set_int() but does sanity-check so that it won't point | 93 | /* just like param_set_int() but does sanity-check so that it won't point |
diff --git a/drivers/hwmon/lis3lv02d.h b/drivers/misc/lis3lv02d/lis3lv02d.h index a1939589eb2c..a1939589eb2c 100644 --- a/drivers/hwmon/lis3lv02d.h +++ b/drivers/misc/lis3lv02d/lis3lv02d.h | |||
diff --git a/drivers/hwmon/lis3lv02d_i2c.c b/drivers/misc/lis3lv02d/lis3lv02d_i2c.c index 8853afce85ce..b20dfb4522d2 100644 --- a/drivers/hwmon/lis3lv02d_i2c.c +++ b/drivers/misc/lis3lv02d/lis3lv02d_i2c.c | |||
@@ -33,7 +33,7 @@ | |||
33 | #include <linux/delay.h> | 33 | #include <linux/delay.h> |
34 | #include "lis3lv02d.h" | 34 | #include "lis3lv02d.h" |
35 | 35 | ||
36 | #define DRV_NAME "lis3lv02d_i2c" | 36 | #define DRV_NAME "lis3lv02d_i2c" |
37 | 37 | ||
38 | static const char reg_vdd[] = "Vdd"; | 38 | static const char reg_vdd[] = "Vdd"; |
39 | static const char reg_vdd_io[] = "Vdd_IO"; | 39 | static const char reg_vdd_io[] = "Vdd_IO"; |
diff --git a/drivers/hwmon/lis3lv02d_spi.c b/drivers/misc/lis3lv02d/lis3lv02d_spi.c index c1f8a8fbf694..c1f8a8fbf694 100644 --- a/drivers/hwmon/lis3lv02d_spi.c +++ b/drivers/misc/lis3lv02d/lis3lv02d_spi.c | |||
diff --git a/drivers/platform/x86/hp_accel.c b/drivers/platform/x86/hp_accel.c index 23f09c1b234b..0a52711a6362 100644 --- a/drivers/platform/x86/hp_accel.c +++ b/drivers/platform/x86/hp_accel.c | |||
@@ -37,7 +37,7 @@ | |||
37 | #include <linux/leds.h> | 37 | #include <linux/leds.h> |
38 | #include <linux/atomic.h> | 38 | #include <linux/atomic.h> |
39 | #include <acpi/acpi_drivers.h> | 39 | #include <acpi/acpi_drivers.h> |
40 | #include "../../hwmon/lis3lv02d.h" | 40 | #include "../../misc/lis3lv02d/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" |