diff options
author | Rob Herring <robh@kernel.org> | 2018-10-08 12:57:36 +0200 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> | 2018-10-08 12:57:36 +0200 |
commit | 5c63e407aaabb0464236cfc6279a2d79aede7073 (patch) | |
tree | 395cbfc9afc9f64e6f4943d4256335869631ec1b /drivers/video/fbdev/leo.c | |
parent | atmel_lcdfb: support native-mode display-timings (diff) | |
download | linux-5c63e407aaabb0464236cfc6279a2d79aede7073.tar.xz linux-5c63e407aaabb0464236cfc6279a2d79aede7073.zip |
fbdev: Convert to using %pOFn instead of device_node.name
In preparation to remove the node name pointer from struct device_node,
convert printf users to use the %pOFn format specifier.
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Diffstat (limited to 'drivers/video/fbdev/leo.c')
-rw-r--r-- | drivers/video/fbdev/leo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/leo.c b/drivers/video/fbdev/leo.c index 71862188f528..446ac3364bad 100644 --- a/drivers/video/fbdev/leo.c +++ b/drivers/video/fbdev/leo.c @@ -434,7 +434,7 @@ static int leo_ioctl(struct fb_info *info, unsigned int cmd, unsigned long arg) static void leo_init_fix(struct fb_info *info, struct device_node *dp) { - strlcpy(info->fix.id, dp->name, sizeof(info->fix.id)); + snprintf(info->fix.id, sizeof(info->fix.id), "%pOFn", dp); info->fix.type = FB_TYPE_PACKED_PIXELS; info->fix.visual = FB_VISUAL_TRUECOLOR; |