Skip to content

Commit 6e4e867

Browse files
andy-shevchanwoochoi
authored andcommitted
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>
1 parent 73346b9 commit 6e4e867

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/extcon/extcon.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -230,10 +230,10 @@ struct extcon_cable {
230230
union extcon_property_value jack_propval[EXTCON_PROP_JACK_CNT];
231231
union extcon_property_value disp_propval[EXTCON_PROP_DISP_CNT];
232232

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);
237237
};
238238

239239
static struct class *extcon_class;

0 commit comments

Comments
 (0)