macintosh: Add const to of_device_id
authorXiang wangx <wangxiang@cdjrlc.com>
Sun, 5 Dec 2021 13:09:25 +0000 (21:09 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 9 Dec 2021 11:41:21 +0000 (22:41 +1100)
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
drivers/macintosh/mediabay.c

index eab7e83c11c4f029de7cd0ee0165ebac02c6942a..b17660c022eb247acb7140ade656faa6fdb66388 100644 (file)
@@ -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",