Skip to contentSkip to conversation

ACPI: Remove unused inline functions

PATCH Applied YueHaibing 2 participants 2 messages Sep 1, 2020 – Sep 25, 2020 ACPI

lore
Share & tools
lore

YueHaibing

author
#0 lore raw

PATCH 1/1 ACPI: Remove unused inline functions

There is no callers in tree.

---
 include/linux/acpi.h | 9 ---------
 1 file changed, 9 deletions(-)
include/linux/acpi.h +0 -9
index 17e80e182802..dd9b961628eb 100644
@@ -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,
Signature · 1 line
2.17.1
maintainer Applied
#1 lore raw
Quoted 4 lines · YueHaibing

There is no callers in tree.

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

Quoted 35 lines
---
 include/linux/acpi.h | 9 ---------
 1 file changed, 9 deletions(-)
include/linux/acpi.h +0 -10
index 17e80e182802..dd9b961628eb 100644
@@ -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