]> git.baikalelectronics.ru Git - kernel.git/commit
Input: hil_kbd - fix error return code in hil_dev_connect()
authorZhen Lei <thunder.leizhen@huawei.com>
Mon, 24 May 2021 18:52:42 +0000 (11:52 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 25 May 2021 03:57:04 +0000 (20:57 -0700)
commit47969e17d7d0d3a1cb5d62691dba18044c0d004c
tree0ea44030ccded7a008e0f76fb08774cd7a9be3ee
parent6da9175fed670f35221f130e631a56dc95c0a5f4
Input: hil_kbd - fix error return code in hil_dev_connect()

Return error code -EINVAL rather than '0' when the combo devices are not
supported.

Fixes: 5b101989296a ("Input: combine hil_kbd and hil_ptr drivers")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Link: https://lore.kernel.org/r/20210515030053.6824-1-thunder.leizhen@huawei.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/hil_kbd.c