2021-12-05 13:09:53

by Xiang wangx

[permalink] [raw]
Subject: [PATCH] macintosh:add const to of_device_id

struct of_device_id should normally be const

Signed-off-by: Xiang wangx <[email protected]>
---
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



2021-12-15 00:27:05

by Michael Ellerman

[permalink] [raw]
Subject: Re: [PATCH] macintosh:add const to of_device_id

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