Re: [PATCH] ACPI: Delete unused proc filename macros

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, May 10, 2020 at 9:30 PM Pascal Terjan <pterjan@xxxxxxxxxx> 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@xxxxxxxxxx>
> ---
>  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!



[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux