All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 1/1] ACPI: bus: Constify is_acpi_node() and friends (part 2)
@ 2021-03-02 13:35 Andy Shevchenko
  2021-03-02 13:37 ` Sakari Ailus
  0 siblings, 1 reply; 3+ messages in thread
From: Andy Shevchenko @ 2021-03-02 13:35 UTC (permalink / raw)
  To: linux-acpi, linux-kernel
  Cc: Rafael J. Wysocki, Len Brown, Andy Shevchenko, Sakari Ailus

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 <sakari.ailus@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 include/linux/acpi.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/linux/acpi.h b/include/linux/acpi.h
index 095bf2b147c7..fcdaab723916 100644
--- a/include/linux/acpi.h
+++ b/include/linux/acpi.h
@@ -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;
 }
-- 
2.30.1


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

* Re: [PATCH v1 1/1] ACPI: bus: Constify is_acpi_node() and friends (part 2)
  2021-03-02 13:35 [PATCH v1 1/1] ACPI: bus: Constify is_acpi_node() and friends (part 2) Andy Shevchenko
@ 2021-03-02 13:37 ` Sakari Ailus
  2021-03-04 12:16   ` Rafael J. Wysocki
  0 siblings, 1 reply; 3+ messages in thread
From: Sakari Ailus @ 2021-03-02 13:37 UTC (permalink / raw)
  To: Andy Shevchenko; +Cc: linux-acpi, linux-kernel, Rafael J. Wysocki, Len Brown

On Tue, Mar 02, 2021 at 03:35:48PM +0200, Andy Shevchenko wrote:
> 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 <sakari.ailus@linux.intel.com>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

Thanks!

Reviewed-by: Sakari Ailus <sakari.ailus@linux.intel.com>

-- 
Sakari Ailus

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

* Re: [PATCH v1 1/1] ACPI: bus: Constify is_acpi_node() and friends (part 2)
  2021-03-02 13:37 ` Sakari Ailus
@ 2021-03-04 12:16   ` Rafael J. Wysocki
  0 siblings, 0 replies; 3+ messages in thread
From: Rafael J. Wysocki @ 2021-03-04 12:16 UTC (permalink / raw)
  To: Sakari Ailus, Andy Shevchenko
  Cc: ACPI Devel Maling List, Linux Kernel Mailing List,
	Rafael J. Wysocki, Len Brown

On Thu, Mar 4, 2021 at 1:31 AM Sakari Ailus
<sakari.ailus@linux.intel.com> wrote:
>
> On Tue, Mar 02, 2021 at 03:35:48PM +0200, Andy Shevchenko wrote:
> > 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 <sakari.ailus@linux.intel.com>
> > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
>
> Thanks!
>
> Reviewed-by: Sakari Ailus <sakari.ailus@linux.intel.com>

Applied, thanks!

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

end of thread, other threads:[~2021-03-04 12:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-02 13:35 [PATCH v1 1/1] ACPI: bus: Constify is_acpi_node() and friends (part 2) Andy Shevchenko
2021-03-02 13:37 ` Sakari Ailus
2021-03-04 12:16   ` Rafael J. Wysocki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.