Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1717643 > unrolled thread

[PATCH] video: fm2fb: constify zorro_device_id

Started byArvind Yadav <arvind.yadav.cs@gmail.com>
First post2017-08-22 20:20 +0200
Last post2017-08-22 20:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] video: fm2fb: constify zorro_device_id Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-22 20:20 +0200

#1717643 — [PATCH] video: fm2fb: constify zorro_device_id

FromArvind Yadav <arvind.yadav.cs@gmail.com>
Date2017-08-22 20:20 +0200
Subject[PATCH] video: fm2fb: constify zorro_device_id
Message-ID<uhlWp-637-1@gated-at.bofh.it>
zorro_device_id are not supposed to change at runtime. All functions
working with zorro_device_id provided by <linux/zorro.h> work with
const zorro_device_id. So mark the non-const structs as const.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
---
 drivers/video/fbdev/fm2fb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/video/fbdev/fm2fb.c b/drivers/video/fbdev/fm2fb.c
index e69d47a..ac7a4eb 100644
--- a/drivers/video/fbdev/fm2fb.c
+++ b/drivers/video/fbdev/fm2fb.c
@@ -213,7 +213,7 @@ static int fm2fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
 
 static int fm2fb_probe(struct zorro_dev *z, const struct zorro_device_id *id);
 
-static struct zorro_device_id fm2fb_devices[] = {
+static const struct zorro_device_id fm2fb_devices[] = {
 	{ ZORRO_PROD_BSC_FRAMEMASTER_II },
 	{ ZORRO_PROD_HELFRICH_RAINBOW_II },
 	{ 0 }
-- 
2.7.4

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web