Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] cxd2820r: fix bitfields

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>

authored by

Antti Palosaari and committed by
Mauro Carvalho Chehab
1d44ccb9 d838f4c3

+4 -4
+2 -2
drivers/media/dvb/frontends/cxd2820r.h
··· 55 55 * Default: 0 56 56 * Values: 0, 1 57 57 */ 58 - int if_agc_polarity:1; 58 + bool if_agc_polarity; 59 59 60 60 /* Spectrum inversion. 61 61 * Default: 0 62 62 * Values: 0, 1 63 63 */ 64 - int spec_inv:1; 64 + bool spec_inv; 65 65 66 66 /* IFs for all used modes. 67 67 * Default: none, must set
+2 -2
drivers/media/dvb/frontends/cxd2820r_priv.h
··· 55 55 struct mutex fe_lock; /* FE lock */ 56 56 int active_fe:2; /* FE lock, -1=NONE, 0=DVB-T/T2, 1=DVB-C */ 57 57 58 - int ber_running:1; 58 + bool ber_running; 59 59 60 60 u8 bank[2]; 61 61 u8 gpio[3]; 62 62 63 63 fe_delivery_system_t delivery_system; 64 - int last_tune_failed:1; /* for switch between T and T2 tune */ 64 + bool last_tune_failed; /* for switch between T and T2 tune */ 65 65 }; 66 66 67 67 /* cxd2820r_core.c */