Signed-off-by: Gabor Juhos <juhosg@xxxxxxxxxxx> --- drivers/input/keyboard/gpio_keys_polled.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) 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 -- 1.7.2.1 -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html