X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/0c8c774424e6e8a95187cdd254189a7e7ab05738..f5da7045b2ace1946e2d9179a2d64d93ce978c3f:/package/button-hotplug/src/button-hotplug.c diff --git a/package/button-hotplug/src/button-hotplug.c b/package/button-hotplug/src/button-hotplug.c index f76b9277f..4bdf36435 100644 --- a/package/button-hotplug/src/button-hotplug.c +++ b/package/button-hotplug/src/button-hotplug.c @@ -46,6 +46,10 @@ #define BH_ERR(fmt, args...) printk(KERN_ERR "%s: " fmt, DRV_NAME, ##args ) +#ifndef BIT_MASK +#define BIT_MASK(nr) (1UL << ((nr) % BITS_PER_LONG)) +#endif + struct bh_priv { unsigned long seen[BH_BTN_COUNT]; struct input_handle handle;