]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] si2165: fix sparse warning
authorHans Verkuil <hans.verkuil@cisco.com>
Wed, 20 Aug 2014 22:32:03 +0000 (19:32 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 3 Sep 2014 13:00:36 +0000 (10:00 -0300)
drivers/media/dvb-frontends/si2165.c:329:16: warning: odd constant _Bool cast (ffffffffffffffea becomes 1)

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/dvb-frontends/si2165.c

index 3a2d6c5aded6b450be22afe3e54443f254d78c95..4386092975d05442102879bd71b0684dcb6c61c9 100644 (file)
@@ -312,7 +312,7 @@ static u32 si2165_get_fe_clk(struct si2165_state *state)
        return state->adc_clk;
 }
 
-static bool si2165_wait_init_done(struct si2165_state *state)
+static int si2165_wait_init_done(struct si2165_state *state)
 {
        int ret = -EINVAL;
        u8 val = 0;