[PATCH] macintosh:add const to of_device_id

Subsystems: linux for power macintosh, the rest

STALE1692d LANDED

Landed in mainline as 8cffe0b0b6b3 on 2021-12-09.

2 messages, 2 authors, 2021-12-15 · open the first message on its own page

[PATCH] macintosh:add const to of_device_id

From: Xiang wangx <hidden>
Date: 2021-12-05 13:09:53

struct of_device_id should normally be const

Signed-off-by: Xiang wangx <redacted>
---
 drivers/macintosh/mediabay.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/macintosh/mediabay.c b/drivers/macintosh/mediabay.c
index eab7e83c11c4..b17660c022eb 100644
--- a/drivers/macintosh/mediabay.c
+++ b/drivers/macintosh/mediabay.c
@@ -703,7 +703,7 @@ static const struct mb_ops keylargo_mb_ops = {
  * Therefore we do it all by polling the media bay once each tick.
  */
 
-static struct of_device_id media_bay_match[] =
+static const struct of_device_id media_bay_match[] =
 {
 	{
 	.name		= "media-bay",
-- 
2.20.1

Re: [PATCH] macintosh:add const to of_device_id

From: Michael Ellerman <hidden>
Date: 2021-12-15 00:27:05

On Sun, 5 Dec 2021 21:09:25 +0800, Xiang wangx wrote:
struct of_device_id should normally be const
Applied to powerpc/next.

[1/1] macintosh:add const to of_device_id
      https://git.kernel.org/powerpc/c/8cffe0b0b6b3342d75e5469f07496173feace6bc

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help