linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] ACPI: Remove unused inline functions
@ 2020-09-01  6:47 YueHaibing
  2020-09-25 10:37 ` Rafael J. Wysocki
  0 siblings, 1 reply; 2+ messages in thread
From: YueHaibing @ 2020-09-01  6:47 UTC (permalink / raw)
  To: rjw, lenb, ulf.hansson; +Cc: linux-acpi, linux-kernel, YueHaibing

There is no callers in tree.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 include/linux/acpi.h | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/include/linux/acpi.h b/include/linux/acpi.h
index 17e80e182802..dd9b961628eb 100644
--- a/include/linux/acpi.h
+++ b/include/linux/acpi.h
@@ -979,8 +979,6 @@ int acpi_subsys_runtime_suspend(struct device *dev);
 int acpi_subsys_runtime_resume(struct device *dev);
 int acpi_dev_pm_attach(struct device *dev, bool power_on);
 #else
-static inline int acpi_dev_runtime_suspend(struct device *dev) { return 0; }
-static inline int acpi_dev_runtime_resume(struct device *dev) { return 0; }
 static inline int acpi_subsys_runtime_suspend(struct device *dev) { return 0; }
 static inline int acpi_subsys_runtime_resume(struct device *dev) { return 0; }
 static inline int acpi_dev_pm_attach(struct device *dev, bool power_on)
@@ -1218,13 +1216,6 @@ static inline int acpi_node_prop_get(const struct fwnode_handle *fwnode,
 	return -ENXIO;
 }
 
-static inline int acpi_dev_prop_get(const struct acpi_device *adev,
-				    const char *propname,
-				    void **valptr)
-{
-	return -ENXIO;
-}
-
 static inline int acpi_dev_prop_read_single(const struct acpi_device *adev,
 					    const char *propname,
 					    enum dev_prop_type proptype,
-- 
2.17.1



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

* Re: [PATCH -next] ACPI: Remove unused inline functions
  2020-09-01  6:47 [PATCH -next] ACPI: Remove unused inline functions YueHaibing
@ 2020-09-25 10:37 ` Rafael J. Wysocki
  0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2020-09-25 10:37 UTC (permalink / raw)
  To: YueHaibing
  Cc: Rafael J. Wysocki, Len Brown, Ulf Hansson,
	ACPI Devel Maling List, Linux Kernel Mailing List

On Tue, Sep 1, 2020 at 8:47 AM YueHaibing <yuehaibing@huawei.com> wrote:
>
> There is no callers in tree.
>
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>

Applied as 5.10 material with a minor edit in the subject, thanks!

> ---
>  include/linux/acpi.h | 9 ---------
>  1 file changed, 9 deletions(-)
>
> diff --git a/include/linux/acpi.h b/include/linux/acpi.h
> index 17e80e182802..dd9b961628eb 100644
> --- a/include/linux/acpi.h
> +++ b/include/linux/acpi.h
> @@ -979,8 +979,6 @@ int acpi_subsys_runtime_suspend(struct device *dev);
>  int acpi_subsys_runtime_resume(struct device *dev);
>  int acpi_dev_pm_attach(struct device *dev, bool power_on);
>  #else
> -static inline int acpi_dev_runtime_suspend(struct device *dev) { return 0; }
> -static inline int acpi_dev_runtime_resume(struct device *dev) { return 0; }
>  static inline int acpi_subsys_runtime_suspend(struct device *dev) { return 0; }
>  static inline int acpi_subsys_runtime_resume(struct device *dev) { return 0; }
>  static inline int acpi_dev_pm_attach(struct device *dev, bool power_on)
> @@ -1218,13 +1216,6 @@ static inline int acpi_node_prop_get(const struct fwnode_handle *fwnode,
>         return -ENXIO;
>  }
>
> -static inline int acpi_dev_prop_get(const struct acpi_device *adev,
> -                                   const char *propname,
> -                                   void **valptr)
> -{
> -       return -ENXIO;
> -}
> -
>  static inline int acpi_dev_prop_read_single(const struct acpi_device *adev,
>                                             const char *propname,
>                                             enum dev_prop_type proptype,
> --
> 2.17.1
>
>

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

end of thread, other threads:[~2020-09-25 10:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-01  6:47 [PATCH -next] ACPI: Remove unused inline functions YueHaibing
2020-09-25 10:37 ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).