aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2011-03-21 12:59:36 -0400
committerJean Delvare <khali@endymion.delvare>2011-03-21 12:59:36 -0400
commitff606677f6a47c63329cf8e6c7cf978c29f2d736 (patch)
tree565bcdaa1f5058af0a6fd2260b3c45029c955d08 /drivers
parentefcfed9bad88be8193ee6a1b8e72d7381e7b0e0e (diff)
Move lis3lv02d drivers to drivers/misc
The lis3lv02d drivers aren't hardware monitoring drivers, so the don't belong to drivers/hwmon. Move them to drivers/misc, short of a better home. 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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/hwmon/Kconfig40
-rw-r--r--drivers/hwmon/Makefile5
-rw-r--r--drivers/misc/Kconfig9
-rw-r--r--drivers/misc/Makefile1
-rw-r--r--drivers/misc/lis3lv02d/Kconfig37
-rw-r--r--drivers/misc/lis3lv02d/Makefile7
-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.c2
11 files changed, 57 insertions, 49 deletions
diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig
index 3f8c895417d..47621abb9a0 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
5config SENSORS_LIS3LV02D
6 tristate
7 depends on INPUT
8 select INPUT_POLLDEV
9 default n
10
11menuconfig HWMON 5menuconfig 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
1224config 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
1241config 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
1258config SENSORS_APPLESMC 1218config 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 55ba906def7..c068f82082c 100644
--- a/drivers/hwmon/Makefile
+++ b/drivers/hwmon/Makefile
@@ -5,9 +5,6 @@
5obj-$(CONFIG_HWMON) += hwmon.o 5obj-$(CONFIG_HWMON) += hwmon.o
6obj-$(CONFIG_HWMON_VID) += hwmon-vid.o 6obj-$(CONFIG_HWMON_VID) += hwmon-vid.o
7 7
8# Helper drivers
9obj-$(CONFIG_SENSORS_LIS3LV02D) += lis3lv02d.o
10
11# APCI drivers 8# APCI drivers
12obj-$(CONFIG_SENSORS_ATK0110) += asus_atk0110.o 9obj-$(CONFIG_SENSORS_ATK0110) += asus_atk0110.o
13 10
@@ -66,8 +63,6 @@ obj-$(CONFIG_SENSORS_JZ4740) += jz4740-hwmon.o
66obj-$(CONFIG_SENSORS_K8TEMP) += k8temp.o 63obj-$(CONFIG_SENSORS_K8TEMP) += k8temp.o
67obj-$(CONFIG_SENSORS_K10TEMP) += k10temp.o 64obj-$(CONFIG_SENSORS_K10TEMP) += k10temp.o
68obj-$(CONFIG_SENSORS_LINEAGE) += lineage-pem.o 65obj-$(CONFIG_SENSORS_LINEAGE) += lineage-pem.o
69obj-$(CONFIG_SENSORS_LIS3_SPI) += lis3lv02d_spi.o
70obj-$(CONFIG_SENSORS_LIS3_I2C) += lis3lv02d_i2c.o
71obj-$(CONFIG_SENSORS_LM63) += lm63.o 66obj-$(CONFIG_SENSORS_LM63) += lm63.o
72obj-$(CONFIG_SENSORS_LM70) += lm70.o 67obj-$(CONFIG_SENSORS_LM70) += lm70.o
73obj-$(CONFIG_SENSORS_LM73) += lm73.o 68obj-$(CONFIG_SENSORS_LM73) += lm73.o
diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig
index b7d5ef234ac..203500d9b84 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.
7config SENSORS_LIS3LV02D
8 tristate
9 depends on INPUT
10 select INPUT_POLLDEV
11 default n
12
5menuconfig MISC_DEVICES 13menuconfig MISC_DEVICES
6 bool "Misc devices" 14 bool "Misc devices"
7 ---help--- 15 ---help---
@@ -462,5 +470,6 @@ source "drivers/misc/eeprom/Kconfig"
462source "drivers/misc/cb710/Kconfig" 470source "drivers/misc/cb710/Kconfig"
463source "drivers/misc/iwmc3200top/Kconfig" 471source "drivers/misc/iwmc3200top/Kconfig"
464source "drivers/misc/ti-st/Kconfig" 472source "drivers/misc/ti-st/Kconfig"
473source "drivers/misc/lis3lv02d/Kconfig"
465 474
466endif # MISC_DEVICES 475endif # MISC_DEVICES
diff --git a/drivers/misc/Makefile b/drivers/misc/Makefile
index 98009cc20cb..804f421bc07 100644
--- a/drivers/misc/Makefile
+++ b/drivers/misc/Makefile
@@ -42,3 +42,4 @@ obj-$(CONFIG_ARM_CHARLCD) += arm-charlcd.o
42obj-$(CONFIG_PCH_PHUB) += pch_phub.o 42obj-$(CONFIG_PCH_PHUB) += pch_phub.o
43obj-y += ti-st/ 43obj-y += ti-st/
44obj-$(CONFIG_AB8500_PWM) += ab8500-pwm.o 44obj-$(CONFIG_AB8500_PWM) += ab8500-pwm.o
45obj-y += lis3lv02d/
diff --git a/drivers/misc/lis3lv02d/Kconfig b/drivers/misc/lis3lv02d/Kconfig
new file mode 100644
index 00000000000..8f474e6fc7b
--- /dev/null
+++ b/drivers/misc/lis3lv02d/Kconfig
@@ -0,0 +1,37 @@
1#
2# STMicroelectonics LIS3LV02D and similar accelerometers
3#
4
5config 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
22config 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 00000000000..4bf58b16fcf
--- /dev/null
+++ b/drivers/misc/lis3lv02d/Makefile
@@ -0,0 +1,7 @@
1#
2# STMicroelectonics LIS3LV02D and similar accelerometers
3#
4
5obj-$(CONFIG_SENSORS_LIS3LV02D) += lis3lv02d.o
6obj-$(CONFIG_SENSORS_LIS3_SPI) += lis3lv02d_spi.o
7obj-$(CONFIG_SENSORS_LIS3_I2C) += lis3lv02d_i2c.o
diff --git a/drivers/hwmon/lis3lv02d.c b/drivers/misc/lis3lv02d/lis3lv02d.c
index d805e8e5796..b928bc14e97 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 @@
88struct lis3lv02d lis3_dev = { 88struct 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
92EXPORT_SYMBOL_GPL(lis3_dev); 91EXPORT_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 a1939589eb2..a1939589eb2 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 8853afce85c..b20dfb4522d 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
38static const char reg_vdd[] = "Vdd"; 38static const char reg_vdd[] = "Vdd";
39static const char reg_vdd_io[] = "Vdd_IO"; 39static const char reg_vdd_io[] = "Vdd_IO";
diff --git a/drivers/hwmon/lis3lv02d_spi.c b/drivers/misc/lis3lv02d/lis3lv02d_spi.c
index c1f8a8fbf69..c1f8a8fbf69 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 23f09c1b234..0a52711a636 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"