UPSTREAM: HID: hid-input: allow input_configured callback return errors

When configuring input device via input_configured callback we may
encounter errors (for example input_mt_init_slots() may fail). Instead
of continuing with half-initialized input device let's allow driver
indicate failures.

Signed-off-by: Jaikumar Ganesh <>
Signed-off-by: Arve Hjønnevåg <>
Reviewed-by: Benjamin Tissoires <>
Reviewed-by: David Herrmann <>
Acked-by: Nikolai Kondrashov <>
Acked-by: Andrew Duggan <>
Signed-off-by: Dmitry Torokhov <>
Signed-off-by: Jiri Kosina <>

Change-Id: I3494c1937b84ff6cd654aef25b5c803aff69f61d
(cherry picked from commit 9154301a47b33bdc273d8254c407792524367558)
Signed-off-by: Amit Pundir <>
9 files changed