summaryrefslogtreecommitdiffstats
path: root/drivers/input/tablet
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2014-05-14 20:58:55 +0200
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2014-05-15 01:40:08 +0200
commit70a26071f8552a0f193cf442f424decfe0f2e569 (patch)
treed6002f935f3727ad52fd7928a46c87a71c6d0d7f /drivers/input/tablet
parentInput: wacom - add support for 0x116 sensor on Win8 Panasonic CF-H2 (diff)
downloadlinux-70a26071f8552a0f193cf442f424decfe0f2e569.tar.xz
linux-70a26071f8552a0f193cf442f424decfe0f2e569.zip
Input: pmic8xxx-pwrkey - set sane default for debounce time
If the debounce time is 0 our usage of ilog2() later on in this driver will cause undefined behavior. If CONFIG_OF=n this fact is evident to the compiler, and it emits a call to ____ilog2_NaN() which doesn't exist. Fix this by setting a sane default for debounce and failing to probe if debounce is 0 in the DT. Reported-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/tablet')
0 files changed, 0 insertions, 0 deletions