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

[media] cx231xx: fix sparse warnings

drivers/media/usb/cx231xx/cx231xx-pcb-cfg.c:31:19: warning: symbol 'cx231xx_Scenario' was not declared. Should it be static?
drivers/media/usb/cx231xx/cx231xx-pcb-cfg.c:675:23: warning: cast to restricted __le32

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>

authored by

Hans Verkuil and committed by
Mauro Carvalho Chehab
eb9678c4 437eb18d

+2 -2
+2 -2
drivers/media/usb/cx231xx/cx231xx-pcb-cfg.c
··· 28 28 29 29 /******************************************************************************/ 30 30 31 - struct pcb_config cx231xx_Scenario[] = { 31 + static struct pcb_config cx231xx_Scenario[] = { 32 32 { 33 33 INDEX_SELFPOWER_DIGITAL_ONLY, /* index */ 34 34 USB_SELF_POWER, /* power_type */ ··· 672 672 pcb config it is related to */ 673 673 cx231xx_read_ctrl_reg(dev, VRT_GET_REGISTER, BOARD_CFG_STAT, data, 4); 674 674 675 - config_info = le32_to_cpu(*((u32 *) data)); 675 + config_info = le32_to_cpu(*((__le32 *)data)); 676 676 usb_speed = (u8) (config_info & 0x1); 677 677 678 678 /* Verify this device belongs to Bus power or Self power device */