Message ID | 20211205130925.28389-1-wangxiang@cdjrlc.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | macintosh:add const to of_device_id | expand |
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. |
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 --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",
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(-)