Linux-ACPI Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH] ACPI: Delete unused proc filename macros
@ 2020-05-10 19:30 Pascal Terjan
  2020-05-14 11:51 ` Rafael J. Wysocki
  0 siblings, 1 reply; 2+ messages in thread
From: Pascal Terjan @ 2020-05-10 19:30 UTC (permalink / raw)
  To: Rafael J. Wysocki, Len Brown, linux-acpi; +Cc: Pascal Terjan

Those were used to create files in /proc/acpi long ago
and were missed when that code was deleted.

Signed-off-by: Pascal Terjan <pterjan@google.com>
---
 drivers/acpi/button.c   | 1 -
 drivers/acpi/ec.c       | 1 -
 drivers/acpi/pci_link.c | 2 --
 drivers/acpi/power.c    | 2 --
 drivers/acpi/sbs.c      | 3 ---
 5 files changed, 9 deletions(-)

diff --git a/drivers/acpi/button.c b/drivers/acpi/button.c
index 78cfc70cb320..3c35e57dd854 100644
--- a/drivers/acpi/button.c
+++ b/drivers/acpi/button.c
@@ -24,7 +24,6 @@
 #define PREFIX "ACPI: "
 
 #define ACPI_BUTTON_CLASS		"button"
-#define ACPI_BUTTON_FILE_INFO		"info"
 #define ACPI_BUTTON_FILE_STATE		"state"
 #define ACPI_BUTTON_TYPE_UNKNOWN	0x00
 #define ACPI_BUTTON_NOTIFY_STATUS	0x80
diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c
index b4c0152e92aa..8535bea2f4e3 100644
--- a/drivers/acpi/ec.c
+++ b/drivers/acpi/ec.c
@@ -34,7 +34,6 @@
 
 #define ACPI_EC_CLASS			"embedded_controller"
 #define ACPI_EC_DEVICE_NAME		"Embedded Controller"
-#define ACPI_EC_FILE_INFO		"info"
 
 /* EC status register */
 #define ACPI_EC_FLAG_OBF	0x01	/* Output buffer full */
diff --git a/drivers/acpi/pci_link.c b/drivers/acpi/pci_link.c
index ed3d2182cf2c..606da5d77ad3 100644
--- a/drivers/acpi/pci_link.c
+++ b/drivers/acpi/pci_link.c
@@ -31,8 +31,6 @@
 ACPI_MODULE_NAME("pci_link");
 #define ACPI_PCI_LINK_CLASS		"pci_irq_routing"
 #define ACPI_PCI_LINK_DEVICE_NAME	"PCI Interrupt Link"
-#define ACPI_PCI_LINK_FILE_INFO		"info"
-#define ACPI_PCI_LINK_FILE_STATUS	"state"
 #define ACPI_PCI_LINK_MAX_POSSIBLE	16
 
 static int acpi_pci_link_add(struct acpi_device *device,
diff --git a/drivers/acpi/power.c b/drivers/acpi/power.c
index fe1e7bc91a5e..837b875d075e 100644
--- a/drivers/acpi/power.c
+++ b/drivers/acpi/power.c
@@ -36,8 +36,6 @@
 ACPI_MODULE_NAME("power");
 #define ACPI_POWER_CLASS		"power_resource"
 #define ACPI_POWER_DEVICE_NAME		"Power Resource"
-#define ACPI_POWER_FILE_INFO		"info"
-#define ACPI_POWER_FILE_STATUS		"state"
 #define ACPI_POWER_RESOURCE_STATE_OFF	0x00
 #define ACPI_POWER_RESOURCE_STATE_ON	0x01
 #define ACPI_POWER_RESOURCE_STATE_UNKNOWN 0xFF
diff --git a/drivers/acpi/sbs.c b/drivers/acpi/sbs.c
index 6e88224f60f0..f158b8c30113 100644
--- a/drivers/acpi/sbs.c
+++ b/drivers/acpi/sbs.c
@@ -28,9 +28,6 @@
 #define ACPI_SBS_CLASS			"sbs"
 #define ACPI_AC_CLASS			"ac_adapter"
 #define ACPI_SBS_DEVICE_NAME		"Smart Battery System"
-#define ACPI_SBS_FILE_INFO		"info"
-#define ACPI_SBS_FILE_STATE		"state"
-#define ACPI_SBS_FILE_ALARM		"alarm"
 #define ACPI_BATTERY_DIR_NAME		"BAT%i"
 #define ACPI_AC_DIR_NAME		"AC0"
 
-- 
2.26.2.645.ge9eca65c58-goog


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] ACPI: Delete unused proc filename macros
  2020-05-10 19:30 [PATCH] ACPI: Delete unused proc filename macros Pascal Terjan
@ 2020-05-14 11:51 ` Rafael J. Wysocki
  0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2020-05-14 11:51 UTC (permalink / raw)
  To: Pascal Terjan; +Cc: Rafael J. Wysocki, Len Brown, ACPI Devel Maling List

On Sun, May 10, 2020 at 9:30 PM Pascal Terjan <pterjan@google.com> wrote:
>
> Those were used to create files in /proc/acpi long ago
> and were missed when that code was deleted.
>
> Signed-off-by: Pascal Terjan <pterjan@google.com>
> ---
>  drivers/acpi/button.c   | 1 -
>  drivers/acpi/ec.c       | 1 -
>  drivers/acpi/pci_link.c | 2 --
>  drivers/acpi/power.c    | 2 --
>  drivers/acpi/sbs.c      | 3 ---
>  5 files changed, 9 deletions(-)
>
> diff --git a/drivers/acpi/button.c b/drivers/acpi/button.c
> index 78cfc70cb320..3c35e57dd854 100644
> --- a/drivers/acpi/button.c
> +++ b/drivers/acpi/button.c
> @@ -24,7 +24,6 @@
>  #define PREFIX "ACPI: "
>
>  #define ACPI_BUTTON_CLASS              "button"
> -#define ACPI_BUTTON_FILE_INFO          "info"
>  #define ACPI_BUTTON_FILE_STATE         "state"
>  #define ACPI_BUTTON_TYPE_UNKNOWN       0x00
>  #define ACPI_BUTTON_NOTIFY_STATUS      0x80
> diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c
> index b4c0152e92aa..8535bea2f4e3 100644
> --- a/drivers/acpi/ec.c
> +++ b/drivers/acpi/ec.c
> @@ -34,7 +34,6 @@
>
>  #define ACPI_EC_CLASS                  "embedded_controller"
>  #define ACPI_EC_DEVICE_NAME            "Embedded Controller"
> -#define ACPI_EC_FILE_INFO              "info"
>
>  /* EC status register */
>  #define ACPI_EC_FLAG_OBF       0x01    /* Output buffer full */
> diff --git a/drivers/acpi/pci_link.c b/drivers/acpi/pci_link.c
> index ed3d2182cf2c..606da5d77ad3 100644
> --- a/drivers/acpi/pci_link.c
> +++ b/drivers/acpi/pci_link.c
> @@ -31,8 +31,6 @@
>  ACPI_MODULE_NAME("pci_link");
>  #define ACPI_PCI_LINK_CLASS            "pci_irq_routing"
>  #define ACPI_PCI_LINK_DEVICE_NAME      "PCI Interrupt Link"
> -#define ACPI_PCI_LINK_FILE_INFO                "info"
> -#define ACPI_PCI_LINK_FILE_STATUS      "state"
>  #define ACPI_PCI_LINK_MAX_POSSIBLE     16
>
>  static int acpi_pci_link_add(struct acpi_device *device,
> diff --git a/drivers/acpi/power.c b/drivers/acpi/power.c
> index fe1e7bc91a5e..837b875d075e 100644
> --- a/drivers/acpi/power.c
> +++ b/drivers/acpi/power.c
> @@ -36,8 +36,6 @@
>  ACPI_MODULE_NAME("power");
>  #define ACPI_POWER_CLASS               "power_resource"
>  #define ACPI_POWER_DEVICE_NAME         "Power Resource"
> -#define ACPI_POWER_FILE_INFO           "info"
> -#define ACPI_POWER_FILE_STATUS         "state"
>  #define ACPI_POWER_RESOURCE_STATE_OFF  0x00
>  #define ACPI_POWER_RESOURCE_STATE_ON   0x01
>  #define ACPI_POWER_RESOURCE_STATE_UNKNOWN 0xFF
> diff --git a/drivers/acpi/sbs.c b/drivers/acpi/sbs.c
> index 6e88224f60f0..f158b8c30113 100644
> --- a/drivers/acpi/sbs.c
> +++ b/drivers/acpi/sbs.c
> @@ -28,9 +28,6 @@
>  #define ACPI_SBS_CLASS                 "sbs"
>  #define ACPI_AC_CLASS                  "ac_adapter"
>  #define ACPI_SBS_DEVICE_NAME           "Smart Battery System"
> -#define ACPI_SBS_FILE_INFO             "info"
> -#define ACPI_SBS_FILE_STATE            "state"
> -#define ACPI_SBS_FILE_ALARM            "alarm"
>  #define ACPI_BATTERY_DIR_NAME          "BAT%i"
>  #define ACPI_AC_DIR_NAME               "AC0"
>
> --

Applied as 5.8 material, thanks!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-10 19:30 [PATCH] ACPI: Delete unused proc filename macros Pascal Terjan
2020-05-14 11:51 ` Rafael J. Wysocki

Linux-ACPI Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-acpi/0 linux-acpi/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-acpi linux-acpi/ https://lore.kernel.org/linux-acpi \
		linux-acpi@vger.kernel.org
	public-inbox-index linux-acpi

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-acpi


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git