OpenCloudOS-Kernel/drivers/media/pci/cobalt
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
..
Kconfig media: drivers: media: i2c: don't enable if CONFIG_DRM_I2C_ADV7511=n 2019-06-12 10:43:37 -04:00
Makefile media: cobalt: add SPDX license info 2018-02-14 13:15:33 -05:00
cobalt-alsa-main.c media: use strscpy() instead of strlcpy() 2018-09-11 13:32:17 -04:00
cobalt-alsa-pcm.c media: use strscpy() instead of strlcpy() 2018-09-11 13:32:17 -04:00
cobalt-alsa-pcm.h media: cobalt: add SPDX license info 2018-02-14 13:15:33 -05:00
cobalt-alsa.h media: cobalt: add SPDX license info 2018-02-14 13:15:33 -05:00
cobalt-cpld.c media: cobalt: add SPDX license info 2018-02-14 13:15:33 -05:00
cobalt-cpld.h media: cobalt: add SPDX license info 2018-02-14 13:15:33 -05:00
cobalt-driver.c media: adv7511/cobalt: rename driver name to adv7511-v4l2 2019-08-07 17:07:29 -03:00
cobalt-driver.h media: use the BIT() macro 2019-08-26 14:08:50 -03:00
cobalt-flash.c media: cobalt: remove redundant assignment to variable data 2019-07-23 08:52:13 -04:00
cobalt-flash.h media: cobalt: add SPDX license info 2018-02-14 13:15:33 -05:00
cobalt-i2c.c media: cobalt: add SPDX license info 2018-02-14 13:15:33 -05:00
cobalt-i2c.h media: cobalt: add SPDX license info 2018-02-14 13:15:33 -05:00
cobalt-irq.c media: cobalt: replace VB2_BUF_STATE_REQUEUEING by _ERROR 2019-03-19 13:50:38 -04:00
cobalt-irq.h media: cobalt: add SPDX license info 2018-02-14 13:15:33 -05:00
cobalt-omnitek.c media: cobalt: add SPDX license info 2018-02-14 13:15:33 -05:00
cobalt-omnitek.h media: cobalt: add SPDX license info 2018-02-14 13:15:33 -05:00
cobalt-v4l2.c media: drivers/media: don't set pix->priv = 0 2019-07-23 08:48:33 -04:00
cobalt-v4l2.h media: cobalt: add SPDX license info 2018-02-14 13:15:33 -05:00
m00233_video_measure_memmap_package.h media: cobalt: add SPDX license info 2018-02-14 13:15:33 -05:00
m00235_fdma_packer_memmap_package.h media: cobalt: add SPDX license info 2018-02-14 13:15:33 -05:00
m00389_cvi_memmap_package.h media: cobalt: add SPDX license info 2018-02-14 13:15:33 -05:00
m00460_evcnt_memmap_package.h media: cobalt: add SPDX license info 2018-02-14 13:15:33 -05:00
m00473_freewheel_memmap_package.h media: cobalt: add SPDX license info 2018-02-14 13:15:33 -05:00
m00479_clk_loss_detector_memmap_package.h media: cobalt: add SPDX license info 2018-02-14 13:15:33 -05:00
m00514_syncgen_flow_evcnt_memmap_package.h media: cobalt: add SPDX license info 2018-02-14 13:15:33 -05:00