mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-19 11:04:00 +08:00
video: fm2fb: constify zorro_device_id
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> Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
This commit is contained in:
parent
799b88deec
commit
46524b1404
@ -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 }
|
||||
|
Loading…
Reference in New Issue
Block a user