Skip to contentSkip to conversation

: ACPI: add a Kconfig option for ACPI procfs interface

PATCH In review Zhang Rui 2 participants 3 messages Jan 6, 2007 – Jan 21, 2007 ACPI

lore
Share & tools
lore

Zhang Rui

author
#0 lore raw

PATCH 1/6 : ACPI: add a Kconfig option for ACPI procfs interface

From: Zhang Rui <[email protected]>

Add a kconfig option CONFIG_ACPI_PROCFS to make procfs interface a configurable attribute of ACPI. No procfs interface is actually deprecated, and no sysfs interface is added in this patch. CONGI_ACPI_PROCFS is used to mark procfs interface as deprecated once the same function is duplicated in sysfs.

---
 drivers/acpi/Kconfig |   10 ++++++++++
 1 files changed, 10 insertions(+)
drivers/acpi/Kconfig +10 -0
Index: linux-2.6.20-rc2-mm1/drivers/acpi/Kconfig
===================================================================
@@ -77,6 +77,16 @@ config ACPI_SLEEP_PROC_SLEEP
 	  Create /proc/acpi/sleep
 	  Deprecated by /sys/power/state
 
+config ACPI_PROCFS
+	bool "Procfs interface (deprecated)"
+	depends on ACPI
+	default y
+	---help---
+	  Procfs interface for ACPI is made optional for back-compatible.
+	  As the same functions are duplicated in sysfs interface
+	  and this proc interface will be removed some time later,
+	  it's marked as deprecated.
+
 config ACPI_AC
 	tristate "AC Adapter"
 	depends on X86
#1 lore raw
Quoted 19 lines · On Sat, 06 Jan 2007 19:35:10 +0800 Zhang Rui wrote:

From: Zhang Rui <[email protected]>

Add a kconfig option CONFIG_ACPI_PROCFS to make procfs interface a configurable attribute of ACPI. No procfs interface is actually deprecated, and no sysfs interface is added in this patch. CONGI_ACPI_PROCFS is used to mark procfs interface as deprecated once the same function is duplicated in sysfs.

---
 drivers/acpi/Kconfig |   10 ++++++++++
 1 files changed, 10 insertions(+)

Index: linux-2.6.20-rc2-mm1/drivers/acpi/Kconfig
===================================================================

drivers/acpi/Kconfig +0 -0
@@ -77,6 +77,16 @@ config ACPI_SLEEP_PROC_SLEEP
 	  Create /proc/acpi/sleep
 	  Deprecated by /sys/power/state
 

drivers/acpi/Kconfig config ACPI_SLEEP_PROC_SLEEP · line 89

Quoted 10 lines
drivers/acpi/Kconfig +10 -0
+config ACPI_PROCFS
+	bool "Procfs interface (deprecated)"
+	depends on ACPI
+	default y
+	---help---
+	  Procfs interface for ACPI is made optional for back-compatible.
+	  As the same functions are duplicated in sysfs interface
+	  and this proc interface will be removed some time later,
+	  it's marked as deprecated.
+

If it's going to be removed, it should be listed as such in Documentation/feature-removal-schedule.txt .

---
~Randy

author
#2 lore raw

PATCH 1/3 : ACPI: add a Kconfig option for ACPI procfs interface

In reply to Zhang Rui

From: Zhang Rui <[email protected]>

Add a kconfig option CONFIG_ACPI_PROCFS to make procfs interface a configurable attribute of ACPI.

No procfs interface is actually deprecated,
and no sysfs interface is added in this patch.

CONGI_ACPI_PROCFS is used to mark procfs interface as deprecated once the same function is duplicated in sysfs.

---
 drivers/acpi/Kconfig |   10 ++++++++++
 1 files changed, 10 insertions(+)
drivers/acpi/Kconfig +10 -0
Index: linux-2.6.20-rc2-mm1/drivers/acpi/Kconfig
===================================================================
@@ -77,6 +77,16 @@ config ACPI_SLEEP_PROC_SLEEP
 	  Create /proc/acpi/sleep
 	  Deprecated by /sys/power/state
 
+config ACPI_PROCFS
+	bool "Procfs interface (deprecated)"
+	depends on ACPI
+	default y
+	---help---
+	  Procfs interface for ACPI is made optional for back-compatible.
+	  As the same functions are duplicated in sysfs interface
+	  and this proc interface will be removed some time later,
+	  it's marked as deprecated.
+
 config ACPI_AC
 	tristate "AC Adapter"
 	depends on X86