Skip to contentSkip to conversation

ACPI: bus: Constify is_acpi_node() and friends (part 2)

PATCH Applied Andy Shevchenko 3 participants 3 messages Mar 2, 2021 – Mar 4, 2021 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ACPI: bus: Constify is_acpi_node() and friends (part 2)

The commit 8b9d6802583a ("ACPI: Constify acpi_bus helper functions, switch to macros") only changed functions for CONFIG_ACPI=y case. This part adjusts the rest.

Fixes 8b9d6802583a ("ACPI: Constify acpi_bus helper functions, switch to macros")
Cc Sakari Ailus <[email protected]>
---
 include/linux/acpi.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
include/linux/acpi.h +3 -3
index 095bf2b147c7..fcdaab723916 100644
@@ -746,12 +746,12 @@ acpi_dev_get_first_match_dev(const char *hid, const char *uid, s64 hrv)
 
 static inline void acpi_dev_put(struct acpi_device *adev) {}
 
-static inline bool is_acpi_node(struct fwnode_handle *fwnode)
+static inline bool is_acpi_node(const struct fwnode_handle *fwnode)
 {
 	return false;
 }
 
-static inline bool is_acpi_device_node(struct fwnode_handle *fwnode)
+static inline bool is_acpi_device_node(const struct fwnode_handle *fwnode)
 {
 	return false;
 }
@@ -761,7 +761,7 @@ static inline struct acpi_device *to_acpi_device_node(struct fwnode_handle *fwno
 	return NULL;
 }
 
-static inline bool is_acpi_data_node(struct fwnode_handle *fwnode)
+static inline bool is_acpi_data_node(const struct fwnode_handle *fwnode)
 {
 	return false;
 }
Signature · 1 line
2.30.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Andy Shevchenko

The commit 8b9d6802583a ("ACPI: Constify acpi_bus helper functions, switch to macros") only changed functions for CONFIG_ACPI=y case. This part adjusts the rest.

Fixes 8b9d6802583a ("ACPI: Constify acpi_bus helper functions, switch to macros")
Cc Sakari Ailus <[email protected]>

Thanks!

Signature · 1 line
Sakari Ailus
maintainer Applied
#2 lore raw
Quoted 6 lines · Sakari Ailus
Quoted 4 lines · Andy Shevchenko

The commit 8b9d6802583a ("ACPI: Constify acpi_bus helper functions, switch to macros") only changed functions for CONFIG_ACPI=y case. This part adjusts the rest.

Quoted 7 lines
Quoted 3 lines
Fixes 8b9d6802583a ("ACPI: Constify acpi_bus helper functions, switch to macros")
Cc Sakari Ailus <[email protected]>

Thanks!

Applied, thanks!