]> git.baikalelectronics.ru Git - kernel.git/commit
Input: melfas_mip4 - fix return value check in mip4_probe()
authorYang Yingliang <yangyingliang@huawei.com>
Sat, 24 Sep 2022 03:07:15 +0000 (11:07 +0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 25 Sep 2022 05:09:49 +0000 (22:09 -0700)
commita0bf49be1f3f8f6cb6a974ae9e545245b80734e5
tree01c876e291fd2de956ca42fa3ae6bd436e2bc4da
parent3b6ebba4720cea46faf66f121a0fdbe8b6f839cc
Input: melfas_mip4 - fix return value check in mip4_probe()

devm_gpiod_get_optional() may return ERR_PTR(-EPROBE_DEFER),
add a minus sign to fix it.

Fixes: d8391bdcdc4f ("Input: add MELFAS MIP4 Touchscreen driver")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20220924030715.1653538-1-yangyingliang@huawei.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/melfas_mip4.c