linux/drivers/media/pci/cx18
Mauro Carvalho Chehab 318de7911f cx18: use macros instead of static const vars
Gcc 6.1 now complains about unused vars:

drivers/media/pci/cx18/cx18-driver.h:497:18: warning: 'vbi_hblank_samples_50Hz' defined but not used [-Wunused-const-variable=]
 static const u32 vbi_hblank_samples_50Hz = 284; /* 4 byte EAV + 280 anc/fill */
                  ^~~~~~~~~~~~~~~~~~~~~~~
drivers/media/pci/cx18/cx18-driver.h:496:18: warning: 'vbi_hblank_samples_60Hz' defined but not used [-Wunused-const-variable=]
 static const u32 vbi_hblank_samples_60Hz = 272; /* 4 byte EAV + 268 anc/fill */
                  ^~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/media/pci/cx18/cx18-cards.c:25:0:
drivers/media/pci/cx18/cx18-driver.h:497:18: warning: 'vbi_hblank_samples_50Hz' defined but not used [-Wunused-const-variable=]
 static const u32 vbi_hblank_samples_50Hz = 284; /* 4 byte EAV + 280 anc/fill */
                  ^~~~~~~~~~~~~~~~~~~~~~~
drivers/media/pci/cx18/cx18-driver.h:496:18: warning: 'vbi_hblank_samples_60Hz' defined but not used [-Wunused-const-variable=]
 static const u32 vbi_hblank_samples_60Hz = 272; /* 4 byte EAV + 268 anc/fill */
                  ^~~~~~~~~~~~~~~~~~~~~~~
drivers/media/pci/cx18/cx18-driver.h:495:18: warning: 'vbi_active_samples' defined but not used [-Wunused-const-variable=]
 static const u32 vbi_active_samples = 1444; /* 4 byte SAV + 720 Y + 720 U/V */
                  ^~~~~~~~~~~~~~~~~~

In this specific case, this is somewhat intentional, as those
values are actually used in parts of the driver. The code assumes
that gcc optimizer it and not actually create any var, but convert
it to immediate access at the routines.

Yet, as we want to shut up gcc warnings, let's use #define, with
is the standard way to store values that will use assembler's
immediate access code.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-06-24 08:50:24 -03:00
..
cx18-alsa-main.c [media] cx18: embed video_device 2015-04-03 00:05:36 -03:00
cx18-alsa-mixer.c
cx18-alsa-mixer.h
cx18-alsa-pcm.c [media] pci drivers: use %zu instead of %zd 2014-09-26 06:51:00 -03:00
cx18-alsa-pcm.h
cx18-alsa.h [media] cx18: remove duplicate CX18_ALSA_DBGFLG_WARN define 2014-07-04 16:09:57 -03:00
cx18-audio.c
cx18-audio.h
cx18-av-audio.c
cx18-av-core.c [media] v4l2: replace s_mbus_fmt by set_fmt 2015-05-01 08:52:34 -03:00
cx18-av-core.h
cx18-av-firmware.c
cx18-av-vbi.c
cx18-cards.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
cx18-cards.h [media] cx18: add device_caps support 2014-12-02 11:28:48 -02:00
cx18-controls.c [media] cx231xx: constify cx2341x_handler_ops structures 2015-12-03 11:27:08 -02:00
cx18-controls.h [media] cx231xx: constify cx2341x_handler_ops structures 2015-12-03 11:27:08 -02:00
cx18-driver.c cx18: use macros instead of static const vars 2016-06-24 08:50:24 -03:00
cx18-driver.h cx18: use macros instead of static const vars 2016-06-24 08:50:24 -03:00
cx18-dvb.c
cx18-dvb.h
cx18-fileops.c [media] cx18: add support for control events 2015-04-08 06:41:17 -03:00
cx18-fileops.h
cx18-firmware.c [media] pci drivers: use %zu instead of %zd 2014-09-26 06:51:00 -03:00
cx18-firmware.h
cx18-gpio.c [media] v4l: subdev: Move [gs]_std operation to video ops 2014-05-24 17:11:26 -03:00
cx18-gpio.h
cx18-i2c.c
cx18-i2c.h
cx18-io.c
cx18-io.h
cx18-ioctl.c cx18: use macros instead of static const vars 2016-06-24 08:50:24 -03:00
cx18-ioctl.h
cx18-irq.c
cx18-irq.h
cx18-mailbox.c [media] use v4l2_get_timestamp where possible 2015-10-01 08:29:23 -03:00
cx18-mailbox.h
cx18-queue.c [media] pci drivers: use %zu instead of %zd 2014-09-26 06:51:00 -03:00
cx18-queue.h
cx18-scb.c
cx18-scb.h
cx18-streams.c cx18: use macros instead of static const vars 2016-06-24 08:50:24 -03:00
cx18-streams.h [media] cx18: embed video_device 2015-04-03 00:05:36 -03:00
cx18-vbi.c cx18: use macros instead of static const vars 2016-06-24 08:50:24 -03:00
cx18-vbi.h
cx18-version.h
cx18-video.c
cx18-video.h
cx23418.h [media] include/media: move driver interface headers to a separate dir 2015-11-17 06:57:29 -02:00
Kconfig
Makefile