summaryrefslogtreecommitdiffstats
path: root/drivers/media/tuners
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2014-08-09 15:02:14 -0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2014-09-21 17:44:12 -0300
commitd11132411538761ca79ecded63cd16621b6c40ee (patch)
treedcf1437c7eaee097d7f7d9dcbc51281e36d9c75e /drivers/media/tuners
parent24e419a0f383e626092eb3c13097b691d2923735 (diff)
downloadblackbird-obmc-linux-d11132411538761ca79ecded63cd16621b6c40ee.tar.gz
blackbird-obmc-linux-d11132411538761ca79ecded63cd16621b6c40ee.zip
[media] it913x: make checkpatch.pl happy
Correct issues reported by checkpatch.pl Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/tuners')
-rw-r--r--drivers/media/tuners/tuner_it913x.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/tuners/tuner_it913x.c b/drivers/media/tuners/tuner_it913x.c
index 281d8c5cc0a9..b92d59979437 100644
--- a/drivers/media/tuners/tuner_it913x.c
+++ b/drivers/media/tuners/tuner_it913x.c
@@ -46,6 +46,7 @@ static int it913x_rd_regs(struct it913x_state *state,
{ .addr = state->i2c_addr, .flags = I2C_M_RD,
.buf = data, .len = count }
};
+
b[0] = (u8)(reg >> 16) & 0xff;
b[1] = (u8)(reg >> 8) & 0xff;
b[2] = (u8) reg & 0xff;
@@ -61,6 +62,7 @@ static int it913x_rd_reg(struct it913x_state *state, u32 reg)
{
int ret;
u8 b[1];
+
ret = it913x_rd_regs(state, reg, &b[0], sizeof(b));
return (ret < 0) ? -ENODEV : b[0];
}
@@ -75,6 +77,7 @@ static int it913x_wr_regs(struct it913x_state *state,
.buf = b, .len = 3 + count }
};
int ret;
+
b[0] = (u8)(reg >> 16) & 0xff;
b[1] = (u8)(reg >> 8) & 0xff;
b[2] = (u8) reg & 0xff;
@@ -122,6 +125,7 @@ static int it913x_script_loader(struct it913x_state *state,
struct it913xset *loadscript)
{
int ret, i;
+
if (loadscript == NULL)
return -EINVAL;
OpenPOWER on IntegriCloud