summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2006-06-28 15:05:11 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-06-28 15:05:11 -0300
commit1719eff8a6f088e48ed02067ff1a00577f53d1aa (patch)
tree5af5b064361b224b2d0d2f0cabaa46826e69c632 /linux
parent24200a825482146d51582f7bc01843b333ad077b (diff)
downloadmediapointer-dvb-s2-1719eff8a6f088e48ed02067ff1a00577f53d1aa.tar.gz
mediapointer-dvb-s2-1719eff8a6f088e48ed02067ff1a00577f53d1aa.tar.bz2
Subject: videocodec: make 1-bit fields unsigned
From: Randy Dunlap <rdunlap@xenotime.net> Make 1-bit bitfields unsigned. Removes 68 sparse errors like these: drivers/media/video/videocodec.h:225:17: error: dubious one-bit signed bitfield drivers/media/video/msp3400-driver.h:93:32: error: dubious one-bit signed bitfield Signed-off-by: Randy Dunlap <rdunlap@xenotime.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Acked-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/media/video/msp3400-driver.h4
-rw-r--r--linux/drivers/media/video/videocodec.h16
2 files changed, 10 insertions, 10 deletions
diff --git a/linux/drivers/media/video/msp3400-driver.h b/linux/drivers/media/video/msp3400-driver.h
index eeaafc5b4..33eac394d 100644
--- a/linux/drivers/media/video/msp3400-driver.h
+++ b/linux/drivers/media/video/msp3400-driver.h
@@ -94,8 +94,8 @@ struct msp_state {
struct semaphore *notify;
int rmmod:1;
#endif
- int restart:1;
- int watch_stereo:1;
+ unsigned int restart:1;
+ unsigned int watch_stereo:1;
};
/* msp3400-driver.c */
diff --git a/linux/drivers/media/video/videocodec.h b/linux/drivers/media/video/videocodec.h
index 3f968eb7b..1b40df14f 100644
--- a/linux/drivers/media/video/videocodec.h
+++ b/linux/drivers/media/video/videocodec.h
@@ -223,14 +223,14 @@ M zr36055[1] 0001 0000c001 00000000 (zr36050[1])
/* ========================= */
struct vfe_polarity {
- int vsync_pol:1;
- int hsync_pol:1;
- int field_pol:1;
- int blank_pol:1;
- int subimg_pol:1;
- int poe_pol:1;
- int pvalid_pol:1;
- int vclk_pol:1;
+ unsigned int vsync_pol:1;
+ unsigned int hsync_pol:1;
+ unsigned int field_pol:1;
+ unsigned int blank_pol:1;
+ unsigned int subimg_pol:1;
+ unsigned int poe_pol:1;
+ unsigned int pvalid_pol:1;
+ unsigned int vclk_pol:1;
};
struct vfe_settings {