Skip to content

Commit 5c1a72a

Browse files
andy-shevrafaeljw
authored andcommitted
ACPI: property: Constify stubs for CONFIG_ACPI=n case
There is a few stubs that left untouched during constification of the fwnode related APIs. Constify three more stubs here. Fixes: 8b9d680 ("ACPI: Constify acpi_bus helper functions, switch to macros") Reported-by: kernel test robot <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]> [ rjw: Subject edit ] Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 0df316b commit 5c1a72a

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
@@ -765,7 +765,7 @@ static inline bool is_acpi_device_node(const struct fwnode_handle *fwnode)
765765
return false;
766766
}
767767

768-
static inline struct acpi_device *to_acpi_device_node(struct fwnode_handle *fwnode)
768+
static inline struct acpi_device *to_acpi_device_node(const struct fwnode_handle *fwnode)
769769
{
770770
return NULL;
771771
}
@@ -775,12 +775,12 @@ static inline bool is_acpi_data_node(const struct fwnode_handle *fwnode)
775775
return false;
776776
}
777777

778-
static inline struct acpi_data_node *to_acpi_data_node(struct fwnode_handle *fwnode)
778+
static inline struct acpi_data_node *to_acpi_data_node(const struct fwnode_handle *fwnode)
779779
{
780780
return NULL;
781781
}
782782

783-
static inline bool acpi_data_node_match(struct fwnode_handle *fwnode,
783+
static inline bool acpi_data_node_match(const struct fwnode_handle *fwnode,
784784
const char *name)
785785
{
786786
return false;

0 commit comments

Comments
 (0)