| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* leo.c: LEO frame buffer driver |
|---|
| 2 | 3 | * |
|---|
| 3 | 4 | * Copyright (C) 2003, 2006 David S. Miller (davem@davemloft.net) |
|---|
| .. | .. |
|---|
| 38 | 39 | * Frame buffer operations |
|---|
| 39 | 40 | */ |
|---|
| 40 | 41 | |
|---|
| 41 | | -static struct fb_ops leo_ops = { |
|---|
| 42 | +static const struct fb_ops leo_ops = { |
|---|
| 42 | 43 | .owner = THIS_MODULE, |
|---|
| 43 | 44 | .fb_setcolreg = leo_setcolreg, |
|---|
| 44 | 45 | .fb_blank = leo_blank, |
|---|
| .. | .. |
|---|
| 434 | 435 | static void |
|---|
| 435 | 436 | leo_init_fix(struct fb_info *info, struct device_node *dp) |
|---|
| 436 | 437 | { |
|---|
| 437 | | - strlcpy(info->fix.id, dp->name, sizeof(info->fix.id)); |
|---|
| 438 | + snprintf(info->fix.id, sizeof(info->fix.id), "%pOFn", dp); |
|---|
| 438 | 439 | |
|---|
| 439 | 440 | info->fix.type = FB_TYPE_PACKED_PIXELS; |
|---|
| 440 | 441 | info->fix.visual = FB_VISUAL_TRUECOLOR; |
|---|