summaryrefslogtreecommitdiff
path: root/drivers/macintosh
diff options
context:
space:
mode:
authorXiang wangx <wangxiang@cdjrlc.com>2021-12-05 16:09:25 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2021-12-09 14:41:21 +0300
commit8cffe0b0b6b3342d75e5469f07496173feace6bc (patch)
treef05cf47be237416ac8f47f35a7aba48293381e0b /drivers/macintosh
parent0d76914a4c99ab5658f3fb07cdf3799d28e2eab3 (diff)
downloadlinux-8cffe0b0b6b3342d75e5469f07496173feace6bc.tar.xz
macintosh: Add const to of_device_id
struct of_device_id should normally be const. Signed-off-by: Xiang wangx <wangxiang@cdjrlc.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20211205130925.28389-1-wangxiang@cdjrlc.com
Diffstat (limited to 'drivers/macintosh')
-rw-r--r--drivers/macintosh/mediabay.c2
1 files changed, 1 insertions, 1 deletions
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",