]> git.baikalelectronics.ru Git - kernel.git/commit
Input: max8997_haptic - add error handling for regulator and pwm
authorSachin Kamat <sachin.kamat@linaro.org>
Sun, 8 Jun 2014 06:10:25 +0000 (23:10 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 8 Jun 2014 06:20:24 +0000 (23:20 -0700)
commit2f7918f2c5296bbed7784b64b639c37c256e44b6
tree05cfee4e127538ddf1f892adf5d6278836681ac3
parent67ff49e5684a58c5b1c7e2ce27f26739bf589c11
Input: max8997_haptic - add error handling for regulator and pwm

Let's start checking return value of regulator_enable and pwm_enable to
avoid errors. Fixes the following warning:

drivers/input/misc/max8997_haptic.c:185:19: warning: ignoring return value of ‘regulator_enable’, declared with attribute warn_unused_result [-Wunused-result]

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/max8997_haptic.c