Message ID | 1291142663-1011-5-git-send-email-juhosg@openwrt.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/input/keyboard/gpio_keys_polled.c b/drivers/input/keyboard/gpio_keys_polled.c index 9636c2f..c9e0d1c 100644 --- a/drivers/input/keyboard/gpio_keys_polled.c +++ b/drivers/input/keyboard/gpio_keys_polled.c @@ -75,9 +75,8 @@ static void gpio_keys_polled_poll(struct input_polled_dev *dev) struct gpio_keys_button *button = &pdata->buttons[i]; struct gpio_keys_button_data *bdata = &bdev->data[i]; - threshold = round_up(button->debounce_interval, - pdata->poll_interval) / - pdata->poll_interval; + threshold = DIV_ROUND_UP(button->debounce_interval, + pdata->poll_interval); if (bdata->count < threshold) bdata->count++; else