WSL2-Linux-Kernel/drivers/media/platform
Mauro Carvalho Chehab cce8ccca80 media: use the BIT() macro
As warned by cppcheck:

	[drivers/media/dvb-frontends/cx24123.c:434]: (error) Shifting signed 32-bit value by 31 bits is undefined behaviour
	[drivers/media/pci/bt8xx/bttv-input.c:87]: (error) Shifting signed 32-bit value by 31 bits is undefined behaviour
	[drivers/media/pci/bt8xx/bttv-input.c:98]: (error) Shifting signed 32-bit value by 31 bits is undefined behaviour
			...
	[drivers/media/v4l2-core/v4l2-ioctl.c:1391]: (error) Shifting signed 32-bit value by 31 bits is undefined behaviour

There are lots of places where we're doing 1 << 31. That's bad,
as, depending on the architecture, this has an undefined behavior.

The BIT() macro is already prepared to handle this, so, let's
just switch all "1 << number" macros by BIT(number) at the header files
with has 1 << 31.

Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com> # exynos4-is and s3c-camif
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> # omap3isp, vsp1, xilinx, wl128x and ipu3
Reviewed-by: Benoit Parrot <bparrot@ti.com> # am437x and ti-vpe
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-08-26 14:08:50 -03:00
..
am437x media: use the BIT() macro 2019-08-26 14:08:50 -03:00
atmel media: atmel: atmel-isi: fix timeout value for stop streaming 2019-08-23 07:27:55 -03:00
cadence media: Add support for Cadence CSI2TX 2.1 2019-07-25 06:44:17 -04:00
cec-gpio Linux 5.2-rc2 2019-05-28 11:21:51 -04:00
coda media: coda: set device_caps in struct video_device 2019-07-22 14:45:10 -04:00
cros-ec-cec media: cros-ec-cec: use cec_notifier_cec_adap_(un)register 2019-07-23 08:37:38 -04:00
davinci media: use the BIT() macro 2019-08-26 14:08:50 -03:00
exynos-gsc media: media/platform: don't set description in ENUM_FMT 2019-07-22 14:43:59 -04:00
exynos4-is media: use the BIT() macro 2019-08-26 14:08:50 -03:00
marvell-ccic media: marvell-ccic: mmp: add MODULE_DEVICE_TABLE 2019-07-25 06:27:14 -04:00
meson media: platform: meson-ao-cec-g12a: add support for SM1 2019-07-23 08:51:50 -04:00
mtk-jpeg media: mtk-jpeg: Use vb2_get_buffer 2019-06-21 16:22:02 -04:00
mtk-mdp media: platform: mtk-mdp: mtk_mdp_core: Add of_node_put() before goto 2019-08-13 11:49:46 -03:00
mtk-vcodec media: mtk-vcodec: flag OUTPUT formats with V4L2_FMT_FLAG_DYN_RESOLUTION 2019-08-19 14:57:40 -03:00
mtk-vpu Linux 5.2-rc4 2019-06-11 12:09:28 -04:00
omap media: omap_vout: convert to vb2 2019-08-13 11:36:48 -03:00
omap3isp media: use the BIT() macro 2019-08-26 14:08:50 -03:00
qcom media: venus: vdec: flag OUTPUT formats with V4L2_FMT_FLAG_DYN_RESOLUTION 2019-08-19 14:57:09 -03:00
rcar-vin media: rcar-vin: Report correct image stride 2019-08-13 11:39:02 -03:00
rockchip/rga media: Remove dev_err() usage after platform_get_irq() 2019-08-07 17:08:33 -03:00
s3c-camif media: use the BIT() macro 2019-08-26 14:08:50 -03:00
s5p-cec media: s5p-cec: use cec_notifier_cec_adap_(un)register 2019-07-23 08:39:27 -04:00
s5p-g2d media: s3c-camif/s5p-g2d/s5p-jpeg: set device_caps in struct video_device 2019-07-22 14:45:40 -04:00
s5p-jpeg media: s3c-camif/s5p-g2d/s5p-jpeg: set device_caps in struct video_device 2019-07-22 14:45:40 -04:00
s5p-mfc media: media/platform: don't set description in ENUM_FMT 2019-07-22 14:43:59 -04:00
seco-cec media: seco-cec: use cec_notifier_cec_adap_(un)register 2019-07-23 08:38:56 -04:00
sti media: Remove dev_err() usage after platform_get_irq() 2019-08-07 17:08:33 -03:00
stm32 media: stm32-dcmi: add support of several sub-devices 2019-08-19 12:06:38 -03:00
sunxi media: sunxi: Add A10 CSI driver 2019-08-23 07:31:35 -03:00
tegra-cec media: use the BIT() macro 2019-08-26 14:08:50 -03:00
ti-vpe media: use the BIT() macro 2019-08-26 14:08:50 -03:00
vicodec media: vicodec: make life easier for static analyzers 2019-08-26 14:02:22 -03:00
vimc media: Revert "media: vimc: propagate pixel format in the stream" 2019-08-13 11:40:38 -03:00
vivid Linux 5.3-rc4 2019-08-12 13:22:54 -03:00
vsp1 media: use the BIT() macro 2019-08-26 14:08:50 -03:00
xilinx media: use the BIT() macro 2019-08-26 14:08:50 -03:00
Kconfig media: sunxi: Refactor the Makefile and Kconfig 2019-08-23 07:29:05 -03:00
Makefile media: sunxi: Refactor the Makefile and Kconfig 2019-08-23 07:29:05 -03:00
aspeed-video.c media: aspeed-video: address a protential usage of an unitialized var 2019-08-26 14:03:39 -03:00
fsl-viu.c media: media/platform: fsl-viu.c: fix build for MICROBLAZE 2019-08-07 17:06:58 -03:00
imx-pxp.c media: Remove dev_err() usage after platform_get_irq() 2019-08-07 17:08:33 -03:00
imx-pxp.h media: imx-pxp: add i.MX Pixel Pipeline driver 2018-09-11 13:32:17 -04:00
m2m-deinterlace.c media: m2m-deinterlace: use struct v4l2_fh 2019-07-23 11:49:41 -04:00
mx2_emmaprp.c media: mx2_emmaprp: use struct v4l2_fh 2019-07-23 11:51:35 -04:00
pxa_camera.c media: pxa_camera: don't set caps in querycap 2019-07-22 15:07:10 -04:00
rcar-fcp.c Char/Misc driver patches for 4.19-rc1 2018-08-18 11:04:51 -07:00
rcar_drif.c media: rcar_drif: Remove devm_ioremap_resource() error printing 2019-03-19 13:44:38 -04:00
rcar_fdp1.c media: fdp1: Fix a memory leak bug 2019-08-26 10:41:17 -03:00
rcar_jpu.c media: v4l2: Get rid of ->vidioc_enum_fmt_vid_{cap, out}_mplane 2019-06-05 07:48:32 -04:00
renesas-ceu.c media: Remove dev_err() usage after platform_get_irq() 2019-08-07 17:08:33 -03:00
sh_veu.c media: sh_veu: convert to struct v4l2_fh 2019-07-25 06:29:26 -04:00
sh_vou.c media: sh_veu/sh_vou: set device_caps in struct video_device 2019-07-22 15:09:06 -04:00
via-camera.c media: via-camera: convert to the vb2 framework 2019-07-30 12:18:34 -04:00
via-camera.h
video-mux.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
vim2m.c media: vim2m: fix two double-free issues 2019-05-28 12:49:42 -04:00