[media] cxd2820r: fix bitfields
authorAntti Palosaari <crope@iki.fi>
Wed, 25 May 2011 15:42:52 +0000 (12:42 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 27 Jul 2011 20:52:10 +0000 (17:52 -0300)
error: dubious one-bit signed bitfield

Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/frontends/cxd2820r.h
drivers/media/dvb/frontends/cxd2820r_priv.h

index ad17845123d9e41881a99b65dd908f043aee40bb..2906582dc94c20a5ed58460b4d4b3a59e0332e84 100644 (file)
@@ -55,13 +55,13 @@ struct cxd2820r_config {
         * Default: 0
         * Values: 0, 1
         */
-       int if_agc_polarity:1;
+       bool if_agc_polarity;
 
        /* Spectrum inversion.
         * Default: 0
         * Values: 0, 1
         */
-       int spec_inv:1;
+       bool spec_inv;
 
        /* IFs for all used modes.
         * Default: none, must set
index 25adbeefa6d3b1df632d89246cd99bd92a83d88f..0c0ebc9d5c4ac0ca7a051fa0c64b55dc23d6aa70 100644 (file)
@@ -55,13 +55,13 @@ struct cxd2820r_priv {
        struct mutex fe_lock; /* FE lock */
        int active_fe:2; /* FE lock, -1=NONE, 0=DVB-T/T2, 1=DVB-C */
 
-       int ber_running:1;
+       bool ber_running;
 
        u8 bank[2];
        u8 gpio[3];
 
        fe_delivery_system_t delivery_system;
-       int last_tune_failed:1; /* for switch between T and T2 tune */
+       bool last_tune_failed; /* for switch between T and T2 tune */
 };
 
 /* cxd2820r_core.c */
This page took 0.041894 seconds and 5 git commands to generate.