mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 04:18:39 +08:00
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>
This commit is contained in:
parent
73346b9965
commit
6e4e8670c0
@ -230,10 +230,10 @@ struct extcon_cable {
|
||||
union extcon_property_value jack_propval[EXTCON_PROP_JACK_CNT];
|
||||
union extcon_property_value disp_propval[EXTCON_PROP_DISP_CNT];
|
||||
|
||||
unsigned long usb_bits[BITS_TO_LONGS(EXTCON_PROP_USB_CNT)];
|
||||
unsigned long chg_bits[BITS_TO_LONGS(EXTCON_PROP_CHG_CNT)];
|
||||
unsigned long jack_bits[BITS_TO_LONGS(EXTCON_PROP_JACK_CNT)];
|
||||
unsigned long disp_bits[BITS_TO_LONGS(EXTCON_PROP_DISP_CNT)];
|
||||
DECLARE_BITMAP(usb_bits, EXTCON_PROP_USB_CNT);
|
||||
DECLARE_BITMAP(chg_bits, EXTCON_PROP_CHG_CNT);
|
||||
DECLARE_BITMAP(jack_bits, EXTCON_PROP_JACK_CNT);
|
||||
DECLARE_BITMAP(disp_bits, EXTCON_PROP_DISP_CNT);
|
||||
};
|
||||
|
||||
static struct class *extcon_class;
|
||||
|
Loading…
Reference in New Issue
Block a user