diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-11-14 23:08:45 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-29 14:53:34 -0500 |
commit | b3d8466fd0e63fd58096f195cbe5ec2444d3fd60 (patch) | |
tree | 79641a623d3070ba757c27e7ef496ba268724074 /drivers/media/dvb/dvb-usb/cinergyT2.h | |
parent | 726cf2000b1c0978bbddc6345ddd7f88caf8aa48 (diff) |
V4L/DVB (9636): dvb: cinergyt2 annotate struct endianness, remove unused variable, add static
All noticed by sparse:
drivers/media/dvb/dvb-usb/cinergyT2-core.c:35:5: warning: symbol 'disable_remote' was not declared. Should it be static?
drivers/media/dvb/dvb-usb/cinergyT2-core.c:48:23: warning: symbol 'cinergyt2_usb_device' was not declared. Should it be static?
drivers/media/dvb/dvb-usb/cinergyT2-fe.c:160:15: warning: cast to restricted __le16
drivers/media/dvb/dvb-usb/cinergyT2-fe.c:190:9: warning: cast to restricted __le32
drivers/media/dvb/dvb-usb/cinergyT2-fe.c:208:9: warning: cast to restricted __le32
drivers/media/dvb/dvb-usb/cinergyT2-fe.c:227:24: warning: cast to restricted __le16
drivers/media/dvb/dvb-usb/cinergyT2-fe.c:275:12: warning: incorrect type in assignment (different base types)
drivers/media/dvb/dvb-usb/cinergyT2-fe.c:275:12: expected unsigned short [unsigned] [assigned] [usertype] tps
drivers/media/dvb/dvb-usb/cinergyT2-fe.c:275:12: got restricted __le16 [usertype] <noident>
drivers/media/dvb/dvb-usb/cinergyT2-fe.c:276:13: warning: incorrect type in assignment (different base types)
drivers/media/dvb/dvb-usb/cinergyT2-fe.c:276:13: expected unsigned int [unsigned] [assigned] [usertype] freq
drivers/media/dvb/dvb-usb/cinergyT2-fe.c:276:13: got restricted __le32 [usertype] <noident>
Cc: Thierry Merle <thierry.merle@free.fr>
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/dvb-usb/cinergyT2.h')
-rw-r--r-- | drivers/media/dvb/dvb-usb/cinergyT2.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/media/dvb/dvb-usb/cinergyT2.h b/drivers/media/dvb/dvb-usb/cinergyT2.h index 11d79eb384c8..84efe03771eb 100644 --- a/drivers/media/dvb/dvb-usb/cinergyT2.h +++ b/drivers/media/dvb/dvb-usb/cinergyT2.h | |||
@@ -70,11 +70,11 @@ struct dvbt_get_status_msg { | |||
70 | uint8_t bandwidth; | 70 | uint8_t bandwidth; |
71 | uint16_t tps; | 71 | uint16_t tps; |
72 | uint8_t flags; | 72 | uint8_t flags; |
73 | uint16_t gain; | 73 | __le16 gain; |
74 | uint8_t snr; | 74 | uint8_t snr; |
75 | uint32_t viterbi_error_rate; | 75 | __le32 viterbi_error_rate; |
76 | uint32_t rs_error_rate; | 76 | uint32_t rs_error_rate; |
77 | uint32_t uncorrected_block_count; | 77 | __le32 uncorrected_block_count; |
78 | uint8_t lock_bits; | 78 | uint8_t lock_bits; |
79 | uint8_t prev_lock_bits; | 79 | uint8_t prev_lock_bits; |
80 | } __attribute__((packed)); | 80 | } __attribute__((packed)); |
@@ -82,9 +82,9 @@ struct dvbt_get_status_msg { | |||
82 | 82 | ||
83 | struct dvbt_set_parameters_msg { | 83 | struct dvbt_set_parameters_msg { |
84 | uint8_t cmd; | 84 | uint8_t cmd; |
85 | uint32_t freq; | 85 | __le32 freq; |
86 | uint8_t bandwidth; | 86 | uint8_t bandwidth; |
87 | uint16_t tps; | 87 | __le16 tps; |
88 | uint8_t flags; | 88 | uint8_t flags; |
89 | } __attribute__((packed)); | 89 | } __attribute__((packed)); |
90 | 90 | ||