Skip to contentSkip to conversation

macintosh:add const to of_device_id

PATCH Applied Xiang wangx 2 participants 2 messages Dec 5, 2021 – Dec 15, 2021 Linux for power macintosh

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 macintosh:add const to of_device_id

struct of_device_id should normally be const

---
 drivers/macintosh/mediabay.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/macintosh/mediabay.c +1 -1
index eab7e83c11c4..b17660c022eb 100644
@@ -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