Skip to content

Commit d346727

Browse files
committed
Merge tag 'fbdev-for-6.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev
Pull fbdev updates from Helge Deller: "Code cleanups for offb, shmobile, sisfb, savage, au1200fb, uvesafb, omap2 and sh7760fb, as well as the addition of some HAS_IOPORT dependencies and adjustment of generated logo file to make build reproducible" * tag 'fbdev-for-6.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev: fbdev: offb: replace of_node_put with __free(device_node) fbdev: savage: Handle err return when savagefb_check_var failed video: hdmi: prefer length specifier in format over string copying fbdev: uvesafb: replace deprecated strncpy with strscpy_pad fbdev: au1200fb: replace deprecated strncpy with strscpy fbdev: fsl-diu-fb: replace deprecated strncpy with strscpy_pad video: logo: Drop full path of the input filename in generated file fbdev: add HAS_IOPORT dependencies fbdev: sh7760fb: allow modular build fbdev: sisfb: hide unused variables fbdev: shmobile: fix snprintf truncation fbdev: omap2: replace of_graph_get_next_endpoint()
2 parents db5d28c + ce4a7ae commit d346727

File tree

17 files changed

+35
-59
lines changed

17 files changed

+35
-59
lines changed

drivers/video/fbdev/Kconfig

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ config FB_IMX
157157

158158
config FB_CYBER2000
159159
tristate "CyberPro 2000/2010/5000 support"
160-
depends on FB && PCI && (BROKEN || !SPARC64)
160+
depends on FB && PCI && HAS_IOPORT && (BROKEN || !SPARC64)
161161
select FB_IOMEM_HELPERS
162162
help
163163
This enables support for the Integraphics CyberPro 20x0 and 5000
@@ -245,7 +245,7 @@ config FB_FM2
245245

246246
config FB_ARC
247247
tristate "Arc Monochrome LCD board support"
248-
depends on FB && (X86 || COMPILE_TEST)
248+
depends on FB && HAS_IOPORT && (X86 || COMPILE_TEST)
249249
select FB_SYSMEM_HELPERS_DEFERRED
250250
help
251251
This enables support for the Arc Monochrome LCD board. The board
@@ -1046,7 +1046,7 @@ config FB_ATY_BACKLIGHT
10461046

10471047
config FB_S3
10481048
tristate "S3 Trio/Virge support"
1049-
depends on FB && PCI
1049+
depends on FB && PCI && HAS_IOPORT
10501050
select FB_CFB_FILLRECT
10511051
select FB_CFB_COPYAREA
10521052
select FB_CFB_IMAGEBLIT
@@ -1107,7 +1107,7 @@ config FB_SAVAGE_ACCEL
11071107

11081108
config FB_SIS
11091109
tristate "SiS/XGI display support"
1110-
depends on FB && PCI
1110+
depends on FB && PCI && HAS_IOPORT
11111111
select BOOT_VESA_SUPPORT if FB_SIS = y
11121112
select FB_CFB_FILLRECT
11131113
select FB_CFB_COPYAREA
@@ -1138,7 +1138,7 @@ config FB_SIS_315
11381138

11391139
config FB_VIA
11401140
tristate "VIA UniChrome (Pro) and Chrome9 display support"
1141-
depends on FB && PCI && GPIOLIB && I2C && (X86 || COMPILE_TEST)
1141+
depends on FB && PCI && GPIOLIB && I2C && HAS_IOPORT && (X86 || COMPILE_TEST)
11421142
select FB_CFB_FILLRECT
11431143
select FB_CFB_COPYAREA
11441144
select FB_CFB_IMAGEBLIT
@@ -1177,7 +1177,7 @@ endif
11771177

11781178
config FB_NEOMAGIC
11791179
tristate "NeoMagic display support"
1180-
depends on FB && PCI
1180+
depends on FB && PCI && HAS_IOPORT
11811181
select FB_CFB_FILLRECT
11821182
select FB_CFB_COPYAREA
11831183
select FB_CFB_IMAGEBLIT
@@ -1204,7 +1204,7 @@ config FB_KYRO
12041204

12051205
config FB_3DFX
12061206
tristate "3Dfx Banshee/Voodoo3/Voodoo5 display support"
1207-
depends on FB && PCI
1207+
depends on FB && PCI && HAS_IOPORT
12081208
select FB_CFB_FILLRECT
12091209
select FB_CFB_COPYAREA
12101210
select FB_CFB_IMAGEBLIT
@@ -1252,7 +1252,7 @@ config FB_VOODOO1
12521252

12531253
config FB_VT8623
12541254
tristate "VIA VT8623 support"
1255-
depends on FB && PCI
1255+
depends on FB && PCI && HAS_IOPORT
12561256
select FB_CFB_FILLRECT
12571257
select FB_CFB_COPYAREA
12581258
select FB_CFB_IMAGEBLIT
@@ -1267,7 +1267,7 @@ config FB_VT8623
12671267

12681268
config FB_TRIDENT
12691269
tristate "Trident/CyberXXX/CyberBlade support"
1270-
depends on FB && PCI
1270+
depends on FB && PCI && HAS_IOPORT
12711271
select FB_CFB_FILLRECT
12721272
select FB_CFB_COPYAREA
12731273
select FB_CFB_IMAGEBLIT
@@ -1290,7 +1290,7 @@ config FB_TRIDENT
12901290

12911291
config FB_ARK
12921292
tristate "ARK 2000PV support"
1293-
depends on FB && PCI
1293+
depends on FB && PCI && HAS_IOPORT
12941294
select FB_CFB_FILLRECT
12951295
select FB_CFB_COPYAREA
12961296
select FB_CFB_IMAGEBLIT
@@ -1648,8 +1648,8 @@ config FB_COBALT
16481648
select FB_IOMEM_HELPERS
16491649

16501650
config FB_SH7760
1651-
bool "SH7760/SH7763/SH7720/SH7721 LCDC support"
1652-
depends on FB=y && (CPU_SUBTYPE_SH7760 || CPU_SUBTYPE_SH7763 \
1651+
tristate "SH7760/SH7763/SH7720/SH7721 LCDC support"
1652+
depends on FB && (CPU_SUBTYPE_SH7760 || CPU_SUBTYPE_SH7763 \
16531653
|| CPU_SUBTYPE_SH7720 || CPU_SUBTYPE_SH7721)
16541654
select FB_IOMEM_HELPERS
16551655
help
@@ -1814,7 +1814,7 @@ config FB_SSD1307
18141814

18151815
config FB_SM712
18161816
tristate "Silicon Motion SM712 framebuffer support"
1817-
depends on FB && PCI
1817+
depends on FB && PCI && HAS_IOPORT
18181818
select FB_IOMEM_HELPERS
18191819
help
18201820
Frame buffer driver for the Silicon Motion SM710, SM712, SM721

drivers/video/fbdev/au1200fb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1557,7 +1557,7 @@ static int au1200fb_init_fbinfo(struct au1200fb_device *fbdev)
15571557
return ret;
15581558
}
15591559

1560-
strncpy(fbi->fix.id, "AU1200", sizeof(fbi->fix.id));
1560+
strscpy(fbi->fix.id, "AU1200");
15611561
fbi->fix.smem_start = fbdev->fb_phys;
15621562
fbi->fix.smem_len = fbdev->fb_len;
15631563
fbi->fix.type = FB_TYPE_PACKED_PIXELS;

drivers/video/fbdev/fsl-diu-fb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ static void set_fix(struct fb_info *info)
787787
struct fb_var_screeninfo *var = &info->var;
788788
struct mfb_info *mfbi = info->par;
789789

790-
strncpy(fix->id, mfbi->id, sizeof(fix->id));
790+
strscpy_pad(fix->id, mfbi->id);
791791
fix->line_length = var->xres_virtual * var->bits_per_pixel / 8;
792792
fix->type = FB_TYPE_PACKED_PIXELS;
793793
fix->accel = FB_ACCEL_NONE;

drivers/video/fbdev/offb.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ static void offb_init_palette_hacks(struct fb_info *info, struct device_node *dp
357357
par->cmap_type = cmap_gxt2000;
358358
} else if (of_node_name_prefix(dp, "vga,Display-")) {
359359
/* Look for AVIVO initialized by SLOF */
360-
struct device_node *pciparent = of_get_parent(dp);
360+
struct device_node *pciparent __free(device_node) = of_get_parent(dp);
361361
const u32 *vid, *did;
362362
vid = of_get_property(pciparent, "vendor-id", NULL);
363363
did = of_get_property(pciparent, "device-id", NULL);
@@ -369,7 +369,6 @@ static void offb_init_palette_hacks(struct fb_info *info, struct device_node *dp
369369
if (par->cmap_adr)
370370
par->cmap_type = cmap_avivo;
371371
}
372-
of_node_put(pciparent);
373372
} else if (dp && of_device_is_compatible(dp, "qemu,std-vga")) {
374373
#ifdef __BIG_ENDIAN
375374
const __be32 io_of_addr[3] = { 0x01000000, 0x0, 0x0 };

drivers/video/fbdev/omap2/omapfb/dss/dsi.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include <linux/debugfs.h>
2929
#include <linux/pm_runtime.h>
3030
#include <linux/of.h>
31+
#include <linux/of_graph.h>
3132
#include <linux/of_platform.h>
3233
#include <linux/component.h>
3334

@@ -5079,7 +5080,7 @@ static int dsi_probe_of(struct platform_device *pdev)
50795080
struct device_node *ep;
50805081
struct omap_dsi_pin_config pin_cfg;
50815082

5082-
ep = omapdss_of_get_first_endpoint(node);
5083+
ep = of_graph_get_endpoint_by_regs(node, 0, -1);
50835084
if (!ep)
50845085
return 0;
50855086

drivers/video/fbdev/omap2/omapfb/dss/dss-of.c

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -130,32 +130,14 @@ static struct device_node *omapdss_of_get_remote_port(const struct device_node *
130130
return np;
131131
}
132132

133-
struct device_node *
134-
omapdss_of_get_first_endpoint(const struct device_node *parent)
135-
{
136-
struct device_node *port, *ep;
137-
138-
port = omapdss_of_get_next_port(parent, NULL);
139-
140-
if (!port)
141-
return NULL;
142-
143-
ep = omapdss_of_get_next_endpoint(port, NULL);
144-
145-
of_node_put(port);
146-
147-
return ep;
148-
}
149-
EXPORT_SYMBOL_GPL(omapdss_of_get_first_endpoint);
150-
151133
struct omap_dss_device *
152134
omapdss_of_find_source_for_first_ep(struct device_node *node)
153135
{
154136
struct device_node *ep;
155137
struct device_node *src_port;
156138
struct omap_dss_device *src;
157139

158-
ep = omapdss_of_get_first_endpoint(node);
140+
ep = of_graph_get_endpoint_by_regs(node, 0, -1);
159141
if (!ep)
160142
return ERR_PTR(-EINVAL);
161143

drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include <linux/pm_runtime.h>
2121
#include <linux/clk.h>
2222
#include <linux/of.h>
23+
#include <linux/of_graph.h>
2324
#include <linux/regulator/consumer.h>
2425
#include <linux/component.h>
2526
#include <video/omapfb_dss.h>
@@ -529,7 +530,7 @@ static int hdmi_probe_of(struct platform_device *pdev)
529530
struct device_node *ep;
530531
int r;
531532

532-
ep = omapdss_of_get_first_endpoint(node);
533+
ep = of_graph_get_endpoint_by_regs(node, 0, -1);
533534
if (!ep)
534535
return 0;
535536

drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include <linux/pm_runtime.h>
2626
#include <linux/clk.h>
2727
#include <linux/of.h>
28+
#include <linux/of_graph.h>
2829
#include <linux/regulator/consumer.h>
2930
#include <linux/component.h>
3031
#include <video/omapfb_dss.h>
@@ -561,7 +562,7 @@ static int hdmi_probe_of(struct platform_device *pdev)
561562
struct device_node *ep;
562563
int r;
563564

564-
ep = omapdss_of_get_first_endpoint(node);
565+
ep = of_graph_get_endpoint_by_regs(node, 0, -1);
565566
if (!ep)
566567
return 0;
567568

drivers/video/fbdev/omap2/omapfb/dss/venc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include <linux/regulator/consumer.h>
2525
#include <linux/pm_runtime.h>
2626
#include <linux/of.h>
27+
#include <linux/of_graph.h>
2728
#include <linux/component.h>
2829

2930
#include <video/omapfb_dss.h>
@@ -764,7 +765,7 @@ static int venc_probe_of(struct platform_device *pdev)
764765
u32 channels;
765766
int r;
766767

767-
ep = omapdss_of_get_first_endpoint(node);
768+
ep = of_graph_get_endpoint_by_regs(node, 0, -1);
768769
if (!ep)
769770
return 0;
770771

drivers/video/fbdev/pxafb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2171,7 +2171,7 @@ static int of_get_pxafb_mode_info(struct device *dev,
21712171
u32 bus_width;
21722172
int ret, i;
21732173

2174-
np = of_graph_get_next_endpoint(dev->of_node, NULL);
2174+
np = of_graph_get_endpoint_by_regs(dev->of_node, 0, -1);
21752175
if (!np) {
21762176
dev_err(dev, "could not find endpoint\n");
21772177
return -EINVAL;

0 commit comments

Comments
 (0)