hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/drivers/video/fbdev/leo.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /* leo.c: LEO frame buffer driver
23 *
34 * Copyright (C) 2003, 2006 David S. Miller (davem@davemloft.net)
....@@ -38,7 +39,7 @@
3839 * Frame buffer operations
3940 */
4041
41
-static struct fb_ops leo_ops = {
42
+static const struct fb_ops leo_ops = {
4243 .owner = THIS_MODULE,
4344 .fb_setcolreg = leo_setcolreg,
4445 .fb_blank = leo_blank,
....@@ -434,7 +435,7 @@
434435 static void
435436 leo_init_fix(struct fb_info *info, struct device_node *dp)
436437 {
437
- strlcpy(info->fix.id, dp->name, sizeof(info->fix.id));
438
+ snprintf(info->fix.id, sizeof(info->fix.id), "%pOFn", dp);
438439
439440 info->fix.type = FB_TYPE_PACKED_PIXELS;
440441 info->fix.visual = FB_VISUAL_TRUECOLOR;