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

[media] lg2160: dubious one-bit signed bitfield

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>

authored by

Dan Carpenter and committed by
Mauro Carvalho Chehab
71867976 6695be68

+2 -2
+2 -2
drivers/media/dvb-frontends/lg2160.h
··· 57 57 u16 if_khz; 58 58 59 59 /* disable i2c repeater - 0:repeater enabled 1:repeater disabled */ 60 - int deny_i2c_rptr:1; 60 + unsigned int deny_i2c_rptr:1; 61 61 62 62 /* spectral inversion - 0:disabled 1:enabled */ 63 - int spectral_inversion:1; 63 + unsigned int spectral_inversion:1; 64 64 65 65 unsigned int output_if; 66 66 enum lg2160_spi_clock spi_clock;