OpenCloudOS-Kernel/drivers/media/platform
Arnd Bergmann ae3c253f59 media: platform: mtk-mdp3: work around unused-variable warning
When CONFIG_OF is disabled, the 'data' variable is not used at all
because of_match_node() turns into a dummy macro:

drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.c: In function 'mdp_comp_sub_create':
drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.c:1038:36: error: unused variable 'data' [-Werror=unused-variable]
 1038 |  const struct mtk_mdp_driver_data *data = mdp->mdp_data;
      |                                    ^~~~

Remove the variable again by moving the pointer dereference into the
of_match_node call.

Fixes: b385b991ef ("media: platform: mtk-mdp3: chip config split about subcomponents")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2023-05-08 12:11:25 +01:00
..
allegro-dvt media: allegro-core: Convert to platform remove callback returning void 2023-04-11 16:59:14 +02:00
amlogic media: ge2d: Convert to platform remove callback returning void 2023-04-11 16:59:14 +02:00
amphion media: vpu_drv: Convert to platform remove callback returning void 2023-04-11 16:59:14 +02:00
aspeed media: aspeed-video: Convert to platform remove callback returning void 2023-04-11 16:59:14 +02:00
atmel media: Fix indentation issues introduced by subdev-wide state struct 2023-04-12 09:46:06 +02:00
cadence media: cdns-csi2tx: Convert to platform remove callback returning void 2023-04-11 16:59:14 +02:00
chips-media media: coda-common: Convert to platform remove callback returning void 2023-04-11 16:59:14 +02:00
intel media: Fix indentation issues introduced by subdev-wide state struct 2023-04-12 09:46:06 +02:00
marvell media: Fix indentation issues introduced by subdev-wide state struct 2023-04-12 09:46:06 +02:00
mediatek media: platform: mtk-mdp3: work around unused-variable warning 2023-05-08 12:11:25 +01:00
microchip media: Use designated initializers for all subdev pad ops 2023-04-12 09:46:07 +02:00
nvidia media: vde: Convert to platform remove callback returning void 2023-04-11 16:59:15 +02:00
nxp media: nxp: ignore unused suspend operations 2023-05-08 12:11:25 +01:00
qcom media: Zero-initialize all structures passed to subdev pad operations 2023-04-12 09:46:06 +02:00
renesas media: rcar-vin: Select correct interrupt mode for V4L2_FIELD_ALTERNATE 2023-05-08 12:11:25 +01:00
rockchip media: Fix indentation issues introduced by subdev-wide state struct 2023-04-12 09:46:06 +02:00
samsung media: Prefer designated initializers over memset for subdev pad ops 2023-04-12 09:46:06 +02:00
st media: stm32-dcmi: Convert to platform remove callback returning void 2023-04-11 16:59:18 +02:00
sunxi media: sun8i_rotate: Convert to platform remove callback returning void 2023-04-11 16:59:19 +02:00
ti media: Prefer designated initializers over memset for subdev pad ops 2023-04-12 09:46:06 +02:00
verisilicon media: hantro: use devm_reset_control_array_get_optional_exclusive() 2023-04-15 08:14:53 +01:00
via media: Fix indentation issues introduced by subdev-wide state struct 2023-04-12 09:46:06 +02:00
xilinx media: Zero-initialize all structures passed to subdev pad operations 2023-04-12 09:46:06 +02:00
Kconfig media: atmel: move microchip_csi2dc to dedicated microchip platform 2022-11-25 07:43:17 +00:00
Makefile media: atmel: move microchip_csi2dc to dedicated microchip platform 2022-11-25 07:43:17 +00:00
m2m-deinterlace.c media: m2m-deinterlace: Convert to platform remove callback returning void 2023-04-11 16:59:15 +02:00
video-mux.c media: video-mux: Convert to platform remove callback returning void 2023-04-11 16:59:19 +02:00