Skip to content

Commit ff70784

Browse files
andy-shevrafaeljw
authored andcommitted
ACPI: bus: Constify is_acpi_node() and friends (part 2)
Commit 8b9d680 ("ACPI: Constify acpi_bus helper functions, switch to macros") only changed functions for CONFIG_ACPI=y case. This part adjusts the rest. Fixes: 8b9d680 ("ACPI: Constify acpi_bus helper functions, switch to macros") Signed-off-by: Andy Shevchenko <[email protected]> Reviewed-by: Sakari Ailus <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent fe07bfd commit ff70784

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/linux/acpi.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -746,12 +746,12 @@ acpi_dev_get_first_match_dev(const char *hid, const char *uid, s64 hrv)
746746

747747
static inline void acpi_dev_put(struct acpi_device *adev) {}
748748

749-
static inline bool is_acpi_node(struct fwnode_handle *fwnode)
749+
static inline bool is_acpi_node(const struct fwnode_handle *fwnode)
750750
{
751751
return false;
752752
}
753753

754-
static inline bool is_acpi_device_node(struct fwnode_handle *fwnode)
754+
static inline bool is_acpi_device_node(const struct fwnode_handle *fwnode)
755755
{
756756
return false;
757757
}
@@ -761,7 +761,7 @@ static inline struct acpi_device *to_acpi_device_node(struct fwnode_handle *fwno
761761
return NULL;
762762
}
763763

764-
static inline bool is_acpi_data_node(struct fwnode_handle *fwnode)
764+
static inline bool is_acpi_data_node(const struct fwnode_handle *fwnode)
765765
{
766766
return false;
767767
}

0 commit comments

Comments
 (0)