linux/drivers/staging/media
Arnd Bergmann 6fc07dd22f media: staging: media: atomisp: fix enum type mixups
Some function calls pass an incorrect enum type:

drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_system.c:858:16: error: implicit conversion from enumeration type 'input_system_ID_t' to different enumeration type 'gp_device_ID_t' [-Werror,-Wenum-conversion]
        gp_device_rst(INPUT_SYSTEM0_ID);
        ~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~
drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_system.c:860:19: error: implicit conversion from enumeration type 'input_system_ID_t' to different enumeration type 'gp_device_ID_t' [-Werror,-Wenum-conversion]
        input_switch_rst(INPUT_SYSTEM0_ID);
        ~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~
drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_system.c:876:27: error: implicit conversion from enumeration type 'input_system_cfg_flag_t' to different enumeration type 'input_system_connection_t' [-Werror,-Wenum-conversion]
                config.multicast[i]              = INPUT_SYSTEM_CFG_FLAG_RESET;
                                                 ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_system.c:1326:32: error: implicit conversion from enumeration type 'input_system_ID_t' to different enumeration type 'gp_device_ID_t' [-Werror,-Wenum-conversion]
        input_selector_cfg_for_sensor(INPUT_SYSTEM0_ID);
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~
drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_system.c:1329:19: error: implicit conversion from enumeration type 'input_system_ID_t' to different enumeration type 'gp_device_ID_t' [-Werror,-Wenum-conversion]
        input_switch_cfg(INPUT_SYSTEM0_ID, &config.input_switch_cfg);
        ~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~

INPUT_SYSTEM0_ID is zero, so use the corresponding zero-value
of the expected types instead.

Fixes: a49d25364d ("staging/atomisp: Add support for the Intel IPU v2")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2020-06-11 18:51:39 +02:00
..
allegro-dvt Staging/IIO driver patches for 5.7-rc1 2020-03-30 14:20:41 -07:00
atomisp media: staging: media: atomisp: fix enum type mixups 2020-06-11 18:51:39 +02:00
hantro media: hantro: h264: Use the generic H264 reflist builder 2020-04-21 13:47:07 +02:00
imx media: imx: TODO: Remove media link creation todos 2020-05-18 15:30:16 +02:00
ipu3 media: staging/intel-ipu3: Make use of V4L2_CAP_IO_MC 2020-05-06 12:09:55 +02:00
meson/vdec media: meson: vdec: enable mcrcc for VP9 2020-05-05 17:09:37 +02:00
omap4iss media: Kconfig files: use select for V4L2 subdevs and MC 2020-04-14 10:29:05 +02:00
phy-rockchip-dphy-rx0 media: dt-bindings: phy: phy-rockchip-dphy-rx0: move rockchip dphy rx0 bindings out of staging 2020-05-20 15:22:27 +02:00
rkisp1 media: staging: rkisp1: cap: enable RGB capture format with YUV media bus 2020-05-05 17:07:23 +02:00
rkvdec media: rkvdec: Add the rkvdec driver 2020-04-21 13:53:15 +02:00
soc_camera media: docs: move soc-camera.rst to staging 2020-04-14 10:29:06 +02:00
sunxi media: Kconfig files: use select for V4L2 subdevs and MC 2020-04-14 10:29:05 +02:00
tegra-vde media: staging: tegra-vde: Use devm_platform_ioremap_resource_byname() 2020-03-05 22:48:03 +01:00
usbvision media: staging: media: usbvision: usbvision-core Correct spelling 2020-05-05 17:23:36 +02:00
Kconfig Revert "media: staging: atomisp: Remove driver" 2020-05-20 12:26:12 +02:00
Makefile Revert "media: staging: atomisp: Remove driver" 2020-05-20 12:26:12 +02:00