aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/radio
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2014-08-20 15:40:00 -0400
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-09-03 08:30:56 -0400
commit7754622baa7220d7048a5b97435adff1dfb15dbb (patch)
tree79fd1bc7e911147d6bcb4dc8547adceff4a81644 /drivers/media/radio
parent744263246d8cdb838db5bc7743f9220de016f7dc (diff)
[media] radio-tea5764: fix sparse warnings
drivers/media/radio/radio-tea5764.c:168:24: warning: cast to restricted __be16 drivers/media/radio/radio-tea5764.c:168:24: warning: cast to restricted __be16 drivers/media/radio/radio-tea5764.c:168:24: warning: cast to restricted __be16 drivers/media/radio/radio-tea5764.c:168:24: warning: cast to restricted __be16 drivers/media/radio/radio-tea5764.c:185:20: warning: incorrect type in assignment (different base types) drivers/media/radio/radio-tea5764.c:186:20: warning: incorrect type in assignment (different base types) drivers/media/radio/radio-tea5764.c:187:20: warning: incorrect type in assignment (different base types) drivers/media/radio/radio-tea5764.c:188:20: warning: incorrect type in assignment (different base types) drivers/media/radio/radio-tea5764.c:189:20: warning: incorrect type in assignment (different base types) Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/radio')
-rw-r--r--drivers/media/radio/radio-tea5764.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/media/radio/radio-tea5764.c b/drivers/media/radio/radio-tea5764.c
index 925049654c5b..cc3990111411 100644
--- a/drivers/media/radio/radio-tea5764.c
+++ b/drivers/media/radio/radio-tea5764.c
@@ -124,11 +124,11 @@ struct tea5764_regs {
124 124
125struct tea5764_write_regs { 125struct tea5764_write_regs {
126 u8 intreg; /* INTMSK */ 126 u8 intreg; /* INTMSK */
127 u16 frqset; /* FRQSETMSB & FRQSETLSB */ 127 __be16 frqset; /* FRQSETMSB & FRQSETLSB */
128 u16 tnctrl; /* TNCTRL1 & TNCTRL2 */ 128 __be16 tnctrl; /* TNCTRL1 & TNCTRL2 */
129 u16 testreg; /* TESTBITS & TESTMODE */ 129 __be16 testreg; /* TESTBITS & TESTMODE */
130 u16 rdsctrl; /* RDSCTRL1 & RDSCTRL2 */ 130 __be16 rdsctrl; /* RDSCTRL1 & RDSCTRL2 */
131 u16 rdsbbl; /* PAUSEDET & RDSBBL */ 131 __be16 rdsbbl; /* PAUSEDET & RDSBBL */
132} __attribute__ ((packed)); 132} __attribute__ ((packed));
133 133
134#ifdef CONFIG_RADIO_TEA5764_XTAL 134#ifdef CONFIG_RADIO_TEA5764_XTAL
@@ -165,7 +165,7 @@ static int tea5764_i2c_read(struct tea5764_device *radio)
165 if (i2c_transfer(radio->i2c_client->adapter, msgs, 1) != 1) 165 if (i2c_transfer(radio->i2c_client->adapter, msgs, 1) != 1)
166 return -EIO; 166 return -EIO;
167 for (i = 0; i < sizeof(struct tea5764_regs) / sizeof(u16); i++) 167 for (i = 0; i < sizeof(struct tea5764_regs) / sizeof(u16); i++)
168 p[i] = __be16_to_cpu(p[i]); 168 p[i] = __be16_to_cpu((__force __be16)p[i]);
169 169
170 return 0; 170 return 0;
171} 171}