diff mbox series

macintosh:add const to of_device_id

Message ID 20211205130925.28389-1-wangxiang@cdjrlc.com (mailing list archive)
State Accepted
Headers show
Series macintosh:add const to of_device_id | expand

Checks

Context Check Description
snowpatch_ozlabs/github-powerpc_sparse success Successfully ran 4 jobs.
snowpatch_ozlabs/github-powerpc_clang success Successfully ran 7 jobs.
snowpatch_ozlabs/github-powerpc_kernel_qemu success Successfully ran 24 jobs.

Commit Message

Xiang wangx Dec. 5, 2021, 1:09 p.m. UTC
struct of_device_id should normally be const

Signed-off-by: Xiang wangx <wangxiang@cdjrlc.com>
---
 drivers/macintosh/mediabay.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Michael Ellerman Dec. 15, 2021, 12:24 a.m. UTC | #1
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
diff mbox series

Patch

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",