aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/pci/bt8xx/bttv-driver.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2012-10-27 15:33:41 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-10-28 05:39:00 -0400
commita1fd287780c8e91fed4957b30c757b0c93021162 (patch)
tree282854edd4595b7acc4f31ac7152b75a5577f7d5 /drivers/media/pci/bt8xx/bttv-driver.c
parent50c8012c429f4a2fe867178e3f2e6a616a20e620 (diff)
[media] bttv-driver: fix two warnings
drivers/media/pci/bt8xx/bttv-driver.c:308:3: warning: initialized field overwritten [-Woverride-init] drivers/media/pci/bt8xx/bttv-driver.c:308:3: warning: (near initialization for 'bttv_tvnorms[0].cropcap.bounds.height') [-Woverride-init] drivers/media/pci/bt8xx/bttv-driver.c: In function 'bttv_remove': drivers/media/pci/bt8xx/bttv-driver.c:4467:29: warning: suggest braces around empty body in an 'if' statement [-Wempty-body] Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/pci/bt8xx/bttv-driver.c')
-rw-r--r--drivers/media/pci/bt8xx/bttv-driver.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/media/pci/bt8xx/bttv-driver.c b/drivers/media/pci/bt8xx/bttv-driver.c
index 56c6c77793d7..de6f41f19187 100644
--- a/drivers/media/pci/bt8xx/bttv-driver.c
+++ b/drivers/media/pci/bt8xx/bttv-driver.c
@@ -200,7 +200,7 @@ static void flush_request_modules(struct bttv *dev)
200} 200}
201#else 201#else
202#define request_modules(dev) 202#define request_modules(dev)
203#define flush_request_modules(dev) 203#define flush_request_modules(dev) do {} while(0)
204#endif /* CONFIG_MODULES */ 204#endif /* CONFIG_MODULES */
205 205
206 206
@@ -301,11 +301,10 @@ const struct bttv_tvnorm bttv_tvnorms[] = {
301 /* totalwidth */ 1135, 301 /* totalwidth */ 1135,
302 /* sqwidth */ 944, 302 /* sqwidth */ 944,
303 /* vdelay */ 0x20, 303 /* vdelay */ 0x20,
304 /* sheight */ 576,
305 /* videostart0 */ 23)
306 /* bt878 (and bt848?) can capture another 304 /* bt878 (and bt848?) can capture another
307 line below active video. */ 305 line below active video. */
308 .cropcap.bounds.height = (576 + 2) + 0x20 - 2, 306 /* sheight */ (576 + 2) + 0x20 - 2,
307 /* videostart0 */ 23)
309 },{ 308 },{
310 .v4l2_id = V4L2_STD_NTSC_M | V4L2_STD_NTSC_M_KR, 309 .v4l2_id = V4L2_STD_NTSC_M | V4L2_STD_NTSC_M_KR,
311 .name = "NTSC", 310 .name = "NTSC",