diff options
author | Jean Delvare <khali@linux-fr.org> | 2011-05-25 14:43:32 -0400 |
---|---|---|
committer | Jean Delvare <khali@endymion.delvare> | 2011-05-25 14:43:32 -0400 |
commit | 7d0333653840b0c692f55f1aaaa71d626fb00870 (patch) | |
tree | e36a16eaee590c20b51622cce806bff9d836c490 | |
parent | 629c58bac082ae091e518187d63249fa7e9f796f (diff) |
Move ACPI power meter driver to hwmon
As discussed earlier, the ACPI power meter driver would better live
in drivers/hwmon, as its only purpose is to create hwmon-style
interfaces for ACPI 4.0 power meter devices. Users are more likely to
look for it there, and less likely to accidentally hide it by
unselecting its dependencies.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: "Darrick J. Wong" <djwong@us.ibm.com>
Acked-by: Guenter Roeck <guenter.roeck@ericsson.com>
Cc: Len Brown <lenb@kernel.org>
-rw-r--r-- | drivers/acpi/Kconfig | 11 | ||||
-rw-r--r-- | drivers/acpi/Makefile | 1 | ||||
-rw-r--r-- | drivers/hwmon/Kconfig | 10 | ||||
-rw-r--r-- | drivers/hwmon/Makefile | 1 | ||||
-rw-r--r-- | drivers/hwmon/acpi_power_meter.c (renamed from drivers/acpi/power_meter.c) | 0 |
5 files changed, 11 insertions, 12 deletions
diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig index 3a17ca5fff6f..bc2218db5ba9 100644 --- a/drivers/acpi/Kconfig +++ b/drivers/acpi/Kconfig | |||
@@ -73,17 +73,6 @@ config ACPI_PROCFS_POWER | |||
73 | 73 | ||
74 | Say N to delete power /proc/acpi/ directories that have moved to /sys/ | 74 | Say N to delete power /proc/acpi/ directories that have moved to /sys/ |
75 | 75 | ||
76 | config ACPI_POWER_METER | ||
77 | tristate "ACPI 4.0 power meter" | ||
78 | depends on HWMON | ||
79 | help | ||
80 | This driver exposes ACPI 4.0 power meters as hardware monitoring | ||
81 | devices. Say Y (or M) if you have a computer with ACPI 4.0 firmware | ||
82 | and a power meter. | ||
83 | |||
84 | To compile this driver as a module, choose M here: | ||
85 | the module will be called power-meter. | ||
86 | |||
87 | config ACPI_EC_DEBUGFS | 76 | config ACPI_EC_DEBUGFS |
88 | tristate "EC read/write access through /sys/kernel/debug/ec" | 77 | tristate "EC read/write access through /sys/kernel/debug/ec" |
89 | default n | 78 | default n |
diff --git a/drivers/acpi/Makefile b/drivers/acpi/Makefile index d113fa5100b2..b66fbb2fc85f 100644 --- a/drivers/acpi/Makefile +++ b/drivers/acpi/Makefile | |||
@@ -59,7 +59,6 @@ obj-$(CONFIG_ACPI_HOTPLUG_MEMORY) += acpi_memhotplug.o | |||
59 | obj-$(CONFIG_ACPI_BATTERY) += battery.o | 59 | obj-$(CONFIG_ACPI_BATTERY) += battery.o |
60 | obj-$(CONFIG_ACPI_SBS) += sbshc.o | 60 | obj-$(CONFIG_ACPI_SBS) += sbshc.o |
61 | obj-$(CONFIG_ACPI_SBS) += sbs.o | 61 | obj-$(CONFIG_ACPI_SBS) += sbs.o |
62 | obj-$(CONFIG_ACPI_POWER_METER) += power_meter.o | ||
63 | obj-$(CONFIG_ACPI_HED) += hed.o | 62 | obj-$(CONFIG_ACPI_HED) += hed.o |
64 | obj-$(CONFIG_ACPI_EC_DEBUGFS) += ec_sys.o | 63 | obj-$(CONFIG_ACPI_EC_DEBUGFS) += ec_sys.o |
65 | 64 | ||
diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig index a620a760397d..12bfc073fc54 100644 --- a/drivers/hwmon/Kconfig +++ b/drivers/hwmon/Kconfig | |||
@@ -1351,6 +1351,16 @@ if ACPI | |||
1351 | 1351 | ||
1352 | comment "ACPI drivers" | 1352 | comment "ACPI drivers" |
1353 | 1353 | ||
1354 | config SENSORS_ACPI_POWER | ||
1355 | tristate "ACPI 4.0 power meter" | ||
1356 | help | ||
1357 | This driver exposes ACPI 4.0 power meters as hardware monitoring | ||
1358 | devices. Say Y (or M) if you have a computer with ACPI 4.0 firmware | ||
1359 | and a power meter. | ||
1360 | |||
1361 | To compile this driver as a module, choose M here: | ||
1362 | the module will be called acpi_power_meter. | ||
1363 | |||
1354 | config SENSORS_ATK0110 | 1364 | config SENSORS_ATK0110 |
1355 | tristate "ASUS ATK0110" | 1365 | tristate "ASUS ATK0110" |
1356 | depends on X86 && EXPERIMENTAL | 1366 | depends on X86 && EXPERIMENTAL |
diff --git a/drivers/hwmon/Makefile b/drivers/hwmon/Makefile index 8524db270bf0..8a57eca7a764 100644 --- a/drivers/hwmon/Makefile +++ b/drivers/hwmon/Makefile | |||
@@ -6,6 +6,7 @@ obj-$(CONFIG_HWMON) += hwmon.o | |||
6 | obj-$(CONFIG_HWMON_VID) += hwmon-vid.o | 6 | obj-$(CONFIG_HWMON_VID) += hwmon-vid.o |
7 | 7 | ||
8 | # APCI drivers | 8 | # APCI drivers |
9 | obj-$(CONFIG_SENSORS_ACPI_POWER) += acpi_power_meter.o | ||
9 | obj-$(CONFIG_SENSORS_ATK0110) += asus_atk0110.o | 10 | obj-$(CONFIG_SENSORS_ATK0110) += asus_atk0110.o |
10 | 11 | ||
11 | # Native drivers | 12 | # Native drivers |
diff --git a/drivers/acpi/power_meter.c b/drivers/hwmon/acpi_power_meter.c index 66f67293341e..66f67293341e 100644 --- a/drivers/acpi/power_meter.c +++ b/drivers/hwmon/acpi_power_meter.c | |||