linux/drivers/media
Hans Verkuil acec3a11c3 media: renesas-ceu: keep input name simple
Just show the Camera index as input name in VIDIOC_ENUM_INPUT,
no need to show the subdev name as well as that is meaningless for
users anyway.

This fixes this compiler warning:

drivers/media/platform/renesas/renesas-ceu.c: In function 'ceu_enum_input':
drivers/media/platform/renesas/renesas-ceu.c:1195:59: warning: '%s' directive output may be truncated writing up to 47 bytes into a region of size between 14 and 23 [-Wformat-truncation=]
 1195 |         snprintf(inp->name, sizeof(inp->name), "Camera%u: %s",
      |                                                           ^~
drivers/media/platform/renesas/renesas-ceu.c:1195:9: note: 'snprintf' output between 10 and 66 bytes into a destination of size 32
 1195 |         snprintf(inp->name, sizeof(inp->name), "Camera%u: %s",
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1196 |                  inp->index, ceusd->v4l2_sd->name);
      |                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
2023-09-27 10:47:22 +02:00
..
cec media: platform: cros-ec: Add Boxy to the match table 2023-09-27 09:39:55 +02:00
common media: use struct_size() helper 2023-09-27 09:40:01 +02:00
dvb-core lib/math: Move dvb_math.c into lib/math/int_log.c 2023-07-09 22:47:48 +01:00
dvb-frontends media: dvb-frontends: drx39xyj: Remove unnecessary ternary operators 2023-09-27 09:39:55 +02:00
firewire media: firewire: firedtv-avc.c: replace BUG with proper, error return 2023-08-10 07:58:37 +02:00
i2c media: cx25840: simplify cx23885_dif_setup() 2023-09-27 09:40:01 +02:00
mc media: mc: Make media_get_pad_index() use pad type flag 2023-05-25 16:21:22 +02:00
mmc
pci media: cx18: increase in_workq_name size 2023-09-27 10:47:22 +02:00
platform media: renesas-ceu: keep input name simple 2023-09-27 10:47:22 +02:00
radio media: radio-wl1273: Remove an unnecessary ternary operator 2023-09-27 09:39:55 +02:00
rc media: rc: ati_remote: increase mouse_name buffer size 2023-09-27 10:47:22 +02:00
spi
test-drivers media: vivid: avoid integer overflow 2023-09-27 10:47:22 +02:00
tuners media: dvb: symbol fixup for dvb_attach() 2023-09-09 08:15:11 +01:00
usb media: cx231xx: Add EP5_BUF_SIZE and EP5_TIMEOUT_MS macros 2023-09-27 09:39:55 +02:00
v4l2-core media: v4l: Add HEXTILE compressed format 2023-09-27 09:40:01 +02:00
Kconfig media: Kconfig: Make DVB_CORE=m possible when MEDIA_SUPPORT=y 2022-12-07 17:58:46 +01:00
Makefile