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

Configure Feed

Select the types of activity you want to include in your feed.

extcon: Use DECLARE_BITMAP() to declare bit arrays

Bit arrays has a specific type helper for the declaration.
Use it instead of homegronw equivalent.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>

authored by

Andy Shevchenko and committed by
Chanwoo Choi
6e4e8670 73346b99

+4 -4
+4 -4
drivers/extcon/extcon.c
··· 230 230 union extcon_property_value jack_propval[EXTCON_PROP_JACK_CNT]; 231 231 union extcon_property_value disp_propval[EXTCON_PROP_DISP_CNT]; 232 232 233 - unsigned long usb_bits[BITS_TO_LONGS(EXTCON_PROP_USB_CNT)]; 234 - unsigned long chg_bits[BITS_TO_LONGS(EXTCON_PROP_CHG_CNT)]; 235 - unsigned long jack_bits[BITS_TO_LONGS(EXTCON_PROP_JACK_CNT)]; 236 - unsigned long disp_bits[BITS_TO_LONGS(EXTCON_PROP_DISP_CNT)]; 233 + DECLARE_BITMAP(usb_bits, EXTCON_PROP_USB_CNT); 234 + DECLARE_BITMAP(chg_bits, EXTCON_PROP_CHG_CNT); 235 + DECLARE_BITMAP(jack_bits, EXTCON_PROP_JACK_CNT); 236 + DECLARE_BITMAP(disp_bits, EXTCON_PROP_DISP_CNT); 237 237 }; 238 238 239 239 static struct class *extcon_class;