aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2010-10-28 14:31:50 -0400
committerJean Delvare <khali@endymion.delvare>2010-10-28 14:31:50 -0400
commitbd5f47ec961594b1091839333600008f8166fd00 (patch)
treeaa4296edffd81e2976d20d3ea30ea18108b2a4de /drivers
parent6dfee85397a47063291fe199eaf950bee7944454 (diff)
Move ams driver to macintosh
The ams driver isn't a hardware monitoring driver, so it shouldn't live under driver/hwmon. drivers/macintosh seems much more appropriate, as the driver is only useful on PowerBooks and iBooks. Signed-off-by: Jean Delvare <khali@linux-fr.org> Cc: Guenter Roeck <guenter.roeck@ericsson.com> Cc: Stelian Pop <stelian@popies.net> Cc: Michael Hanselmann <linux-kernel@hansmi.ch> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/hwmon/Kconfig26
-rw-r--r--drivers/hwmon/Makefile1
-rw-r--r--drivers/macintosh/Kconfig26
-rw-r--r--drivers/macintosh/Makefile2
-rw-r--r--drivers/macintosh/ams/Makefile (renamed from drivers/hwmon/ams/Makefile)0
-rw-r--r--drivers/macintosh/ams/ams-core.c (renamed from drivers/hwmon/ams/ams-core.c)0
-rw-r--r--drivers/macintosh/ams/ams-i2c.c (renamed from drivers/hwmon/ams/ams-i2c.c)0
-rw-r--r--drivers/macintosh/ams/ams-input.c (renamed from drivers/hwmon/ams/ams-input.c)0
-rw-r--r--drivers/macintosh/ams/ams-pmu.c (renamed from drivers/hwmon/ams/ams-pmu.c)0
-rw-r--r--drivers/macintosh/ams/ams.h (renamed from drivers/hwmon/ams/ams.h)0
10 files changed, 28 insertions, 27 deletions
diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig
index a06ac97229d9..ad54f6432e2d 100644
--- a/drivers/hwmon/Kconfig
+++ b/drivers/hwmon/Kconfig
@@ -249,32 +249,6 @@ config SENSORS_K10TEMP
249 This driver can also be built as a module. If so, the module 249 This driver can also be built as a module. If so, the module
250 will be called k10temp. 250 will be called k10temp.
251 251
252config SENSORS_AMS
253 tristate "Apple Motion Sensor driver"
254 depends on PPC_PMAC && !PPC64 && INPUT && ((ADB_PMU && I2C = y) || (ADB_PMU && !I2C) || I2C) && EXPERIMENTAL
255 select INPUT_POLLDEV
256 help
257 Support for the motion sensor included in PowerBooks. Includes
258 implementations for PMU and I2C.
259
260 This driver can also be built as a module. If so, the module
261 will be called ams.
262
263config SENSORS_AMS_PMU
264 bool "PMU variant"
265 depends on SENSORS_AMS && ADB_PMU
266 default y
267 help
268 PMU variant of motion sensor, found in late 2005 PowerBooks.
269
270config SENSORS_AMS_I2C
271 bool "I2C variant"
272 depends on SENSORS_AMS && I2C
273 default y
274 help
275 I2C variant of motion sensor, found in early 2005 PowerBooks and
276 iBooks.
277
278config SENSORS_ASB100 252config SENSORS_ASB100
279 tristate "Asus ASB100 Bach" 253 tristate "Asus ASB100 Bach"
280 depends on X86 && I2C && EXPERIMENTAL 254 depends on X86 && I2C && EXPERIMENTAL
diff --git a/drivers/hwmon/Makefile b/drivers/hwmon/Makefile
index 641b8b349a3d..2479b3da272c 100644
--- a/drivers/hwmon/Makefile
+++ b/drivers/hwmon/Makefile
@@ -36,7 +36,6 @@ obj-$(CONFIG_SENSORS_ADT7462) += adt7462.o
36obj-$(CONFIG_SENSORS_ADT7470) += adt7470.o 36obj-$(CONFIG_SENSORS_ADT7470) += adt7470.o
37obj-$(CONFIG_SENSORS_ADT7475) += adt7475.o 37obj-$(CONFIG_SENSORS_ADT7475) += adt7475.o
38obj-$(CONFIG_SENSORS_APPLESMC) += applesmc.o 38obj-$(CONFIG_SENSORS_APPLESMC) += applesmc.o
39obj-$(CONFIG_SENSORS_AMS) += ams/
40obj-$(CONFIG_SENSORS_ASC7621) += asc7621.o 39obj-$(CONFIG_SENSORS_ASC7621) += asc7621.o
41obj-$(CONFIG_SENSORS_ATXP1) += atxp1.o 40obj-$(CONFIG_SENSORS_ATXP1) += atxp1.o
42obj-$(CONFIG_SENSORS_CORETEMP) += coretemp.o 41obj-$(CONFIG_SENSORS_CORETEMP) += coretemp.o
diff --git a/drivers/macintosh/Kconfig b/drivers/macintosh/Kconfig
index fd85bde283a0..3d7355ff7308 100644
--- a/drivers/macintosh/Kconfig
+++ b/drivers/macintosh/Kconfig
@@ -256,4 +256,30 @@ config PMAC_RACKMETER
256 This driver provides some support to control the front panel 256 This driver provides some support to control the front panel
257 blue LEDs "vu-meter" of the XServer macs. 257 blue LEDs "vu-meter" of the XServer macs.
258 258
259config SENSORS_AMS
260 tristate "Apple Motion Sensor driver"
261 depends on PPC_PMAC && !PPC64 && INPUT && ((ADB_PMU && I2C = y) || (ADB_PMU && !I2C) || I2C) && EXPERIMENTAL
262 select INPUT_POLLDEV
263 help
264 Support for the motion sensor included in PowerBooks. Includes
265 implementations for PMU and I2C.
266
267 This driver can also be built as a module. If so, the module
268 will be called ams.
269
270config SENSORS_AMS_PMU
271 bool "PMU variant"
272 depends on SENSORS_AMS && ADB_PMU
273 default y
274 help
275 PMU variant of motion sensor, found in late 2005 PowerBooks.
276
277config SENSORS_AMS_I2C
278 bool "I2C variant"
279 depends on SENSORS_AMS && I2C
280 default y
281 help
282 I2C variant of motion sensor, found in early 2005 PowerBooks and
283 iBooks.
284
259endif # MACINTOSH_DRIVERS 285endif # MACINTOSH_DRIVERS
diff --git a/drivers/macintosh/Makefile b/drivers/macintosh/Makefile
index e3132efa17c0..6652a6ebb6fa 100644
--- a/drivers/macintosh/Makefile
+++ b/drivers/macintosh/Makefile
@@ -48,3 +48,5 @@ obj-$(CONFIG_WINDFARM_PM121) += windfarm_pm121.o windfarm_smu_sat.o \
48 windfarm_max6690_sensor.o \ 48 windfarm_max6690_sensor.o \
49 windfarm_lm75_sensor.o windfarm_pid.o 49 windfarm_lm75_sensor.o windfarm_pid.o
50obj-$(CONFIG_PMAC_RACKMETER) += rack-meter.o 50obj-$(CONFIG_PMAC_RACKMETER) += rack-meter.o
51
52obj-$(CONFIG_SENSORS_AMS) += ams/
diff --git a/drivers/hwmon/ams/Makefile b/drivers/macintosh/ams/Makefile
index 41c95b2089dc..41c95b2089dc 100644
--- a/drivers/hwmon/ams/Makefile
+++ b/drivers/macintosh/ams/Makefile
diff --git a/drivers/hwmon/ams/ams-core.c b/drivers/macintosh/ams/ams-core.c
index 2ad62c339cd2..2ad62c339cd2 100644
--- a/drivers/hwmon/ams/ams-core.c
+++ b/drivers/macintosh/ams/ams-core.c
diff --git a/drivers/hwmon/ams/ams-i2c.c b/drivers/macintosh/ams/ams-i2c.c
index abeecd27b484..abeecd27b484 100644
--- a/drivers/hwmon/ams/ams-i2c.c
+++ b/drivers/macintosh/ams/ams-i2c.c
diff --git a/drivers/hwmon/ams/ams-input.c b/drivers/macintosh/ams/ams-input.c
index 8a712392cd38..8a712392cd38 100644
--- a/drivers/hwmon/ams/ams-input.c
+++ b/drivers/macintosh/ams/ams-input.c
diff --git a/drivers/hwmon/ams/ams-pmu.c b/drivers/macintosh/ams/ams-pmu.c
index 4f61b3ee1b08..4f61b3ee1b08 100644
--- a/drivers/hwmon/ams/ams-pmu.c
+++ b/drivers/macintosh/ams/ams-pmu.c
diff --git a/drivers/hwmon/ams/ams.h b/drivers/macintosh/ams/ams.h
index 90f094d45450..90f094d45450 100644
--- a/drivers/hwmon/ams/ams.h
+++ b/drivers/macintosh/ams/ams.h