linux/drivers/media/usb/dvb-usb
Laurent Pinchart e3a69496a1 media: Prefer designated initializers over memset for subdev pad ops
Structures passed to subdev pad operations are all zero-initialized, but
not always with the same kind of code constructs. While most drivers
used designated initializers, which zero all the fields that are not
specified, when declaring variables, some use memset(). Those two
methods lead to the same end result, and, depending on compiler
optimizations, may even be completely equivalent, but they're not
consistent.

Improve coding style consistency by using designated initializers
instead of calling memset(). Where applicable, also move the variables
to inner scopes of for loops to ensure correct initialization in all
iterations.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Lad Prabhakar <prabhakar.csengg@gmail.com> # For am437x
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2023-04-12 09:46:06 +02:00
..
a800.c media: dvb-usb: a800: use an enum for the device number 2022-04-18 07:36:43 +02:00
af9005-fe.c
af9005-remote.c
af9005-script.h
af9005.c media: af9005: use the newer dvb-usb macros for USB device 2022-04-18 07:36:43 +02:00
af9005.h
az6027.c media: dvb-usb: az6027: fix null-ptr-deref in az6027_i2c_xfer() 2022-11-25 10:18:23 +00:00
az6027.h
cinergyT2-core.c media: cinergyT2-core: use the newer dvb-usb macros for USB device 2022-04-18 07:36:43 +02:00
cinergyT2-fe.c
cinergyT2.h
cxusb-analog.c media: Prefer designated initializers over memset for subdev pad ops 2023-04-12 09:46:06 +02:00
cxusb.c media: cxusb: use the newer dvb-usb macros for USB device 2022-04-18 07:36:43 +02:00
cxusb.h
dib07x0.h
dib0700_core.c media: dib0700: Only touch one bit when start/stop an adapter 2021-11-19 16:24:07 +00:00
dib0700_devices.c media: dvb-usb: dib0700_devices: Remove unused struct dibx090p_adc 2022-11-25 10:15:59 +00:00
dib0700.h media: dib0700: remove orphan dvb_usb_dib0700_ir_proto declaration 2022-11-25 10:15:21 +00:00
dibusb-common.c media: usb: dvd-usb: fix uninit-value bug in dibusb_read_eeprom_byte() 2021-10-08 13:54:43 +02:00
dibusb-mb.c media: dvb-usb: dibusb-mb: use an enum for the device number 2022-04-18 07:36:44 +02:00
dibusb-mc-common.c
dibusb-mc.c media: dvb-usb: dibusb-mc: use an enum for the device number 2022-04-18 07:36:44 +02:00
dibusb.h
digitv.c media: digitv: use the newer dvb-usb macros for USB device 2022-04-18 07:36:43 +02:00
digitv.h
dtt200u-fe.c
dtt200u.c media: dvb-usb: dtt200u: use an enum for the device number 2022-04-18 07:36:43 +02:00
dtt200u.h
dtv5100.c media: dtv5100: use the newer dvb-usb macros for USB device 2022-04-18 07:36:43 +02:00
dtv5100.h
dvb-usb-common.h
dvb-usb-dvb.c
dvb-usb-firmware.c
dvb-usb-i2c.c media: dvb-usb: Fix error handling in dvb_usb_i2c_init 2021-07-22 08:23:15 +02:00
dvb-usb-init.c media: dvb-usb: fix memory leak in dvb_usb_adapter_init() 2022-11-25 10:09:47 +00:00
dvb-usb-remote.c
dvb-usb-urb.c
dvb-usb.h media: dvb-usb: avoid -Wempty-body warnings 2021-04-09 13:05:25 +02:00
dw2102.c media: dw2102: use the newer dvb-usb macros for USB device 2022-04-18 07:36:43 +02:00
dw2102.h
gp8psk.c media: dvb-usb: gp8psk: use an enum for the device number 2022-04-18 07:36:43 +02:00
gp8psk.h
Kconfig media: media/*/Kconfig: sort entries 2022-03-18 05:58:35 +01:00
m920x.c media: dvb-usb: m920x: make read-only arrays static const 2022-12-02 15:36:44 +01:00
m920x.h
Makefile media: move ttpci-eeprom to common 2021-06-02 11:16:15 +02:00
nova-t-usb2.c media: dvb-usb: nova-t-usb2: use an enum for the device number 2022-04-18 07:36:44 +02:00
opera1.c media: dvb-usb: opera1: use an enum for the device number 2022-04-18 07:36:44 +02:00
pctv452e.c media: drop unnecessary networking includes 2023-03-19 22:50:06 +01:00
technisat-usb2.c media: technisat-usb2: Fix comment typo 2022-08-29 15:32:14 +02:00
ttusb2.c media: dvb-usb: ttusb2: use an enum for the device number 2022-04-18 07:36:44 +02:00
ttusb2.h
umt-010.c media: dvb-usb: umt-010: use an enum for the device number 2022-04-18 07:36:44 +02:00
usb-urb.c
vp702x-fe.c
vp702x.c media: dvb-usb: vp702x: use an enum for the device number 2022-04-18 07:36:44 +02:00
vp702x.h
vp7045-fe.c
vp7045.c media: dvb-usb: vp7045: use an enum for the device number 2022-04-18 07:36:44 +02:00
vp7045.h