Commit e8e0c023 authored by Roel Kluin's avatar Roel Kluin Committed by Dmitry Torokhov

Input: bf54x-keys - fix debounce time validation

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Acked-by: default avatarMichael Hennerich <michael.hennerich@analog.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 27f23336
...@@ -209,8 +209,8 @@ static int __devinit bfin_kpad_probe(struct platform_device *pdev) ...@@ -209,8 +209,8 @@ static int __devinit bfin_kpad_probe(struct platform_device *pdev)
goto out; goto out;
} }
if (!pdata->debounce_time || !pdata->debounce_time > MAX_MULT || if (!pdata->debounce_time || pdata->debounce_time > MAX_MULT ||
!pdata->coldrive_time || !pdata->coldrive_time > MAX_MULT) { !pdata->coldrive_time || pdata->coldrive_time > MAX_MULT) {
printk(KERN_ERR DRV_NAME printk(KERN_ERR DRV_NAME
": Invalid Debounce/Columdrive Time from pdata\n"); ": Invalid Debounce/Columdrive Time from pdata\n");
bfin_write_KPAD_MSEL(0xFF0); /* Default MSEL */ bfin_write_KPAD_MSEL(0xFF0); /* Default MSEL */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment