.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* p9100.c: P9100 frame buffer driver |
---|
2 | 3 | * |
---|
3 | 4 | * Copyright (C) 2003, 2006 David S. Miller (davem@davemloft.net) |
---|
.. | .. |
---|
36 | 37 | * Frame buffer operations |
---|
37 | 38 | */ |
---|
38 | 39 | |
---|
39 | | -static struct fb_ops p9100_ops = { |
---|
| 40 | +static const struct fb_ops p9100_ops = { |
---|
40 | 41 | .owner = THIS_MODULE, |
---|
41 | 42 | .fb_setcolreg = p9100_setcolreg, |
---|
42 | 43 | .fb_blank = p9100_blank, |
---|
.. | .. |
---|
239 | 240 | |
---|
240 | 241 | static void p9100_init_fix(struct fb_info *info, int linebytes, struct device_node *dp) |
---|
241 | 242 | { |
---|
242 | | - strlcpy(info->fix.id, dp->name, sizeof(info->fix.id)); |
---|
| 243 | + snprintf(info->fix.id, sizeof(info->fix.id), "%pOFn", dp); |
---|
243 | 244 | |
---|
244 | 245 | info->fix.type = FB_TYPE_PACKED_PIXELS; |
---|
245 | 246 | info->fix.visual = FB_VISUAL_PSEUDOCOLOR; |
---|