macintosh:add const to of_device_id
PATCH 1/1 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(-)
drivers/macintosh/mediabay.c +1 -1
@@ -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" ,
Signature · 1 line
2.20.1
Michael Ellerman
AppliedQuoted 3 lines · Xiang wangx
struct
of_device_idshould normally be const
Applied to powerpc/next.
[1/1] macintosh:add const to of_device_id
https://git.kernel.org/powerpc/c/8cffe0b0b6b3342d75e5469f07496173feace6bc
cheers