]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[media] lg2160: dubious one-bit signed bitfield
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 17 Apr 2013 11:18:30 +0000 (08:18 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 22 Apr 2013 13:04:20 +0000 (10:04 -0300)
Sparse complains that these are "dubious one-bit signed bitfields" and
the comment says it was intended to be 1 and 0 instead of -1 and 0.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb-frontends/lg2160.h

index a5f036824d68bd325362cfbdd4fd235c141dad92..194a07a78dc11a72f8f95de6c98ed7b07ceb618f 100644 (file)
@@ -57,10 +57,10 @@ struct lg2160_config {
        u16 if_khz;
 
        /* disable i2c repeater - 0:repeater enabled 1:repeater disabled */
-       int deny_i2c_rptr:1;
+       unsigned int deny_i2c_rptr:1;
 
        /* spectral inversion - 0:disabled 1:enabled */
-       int spectral_inversion:1;
+       unsigned int spectral_inversion:1;
 
        unsigned int output_if;
        enum lg2160_spi_clock spi_clock;