HID: hid-input: allow input_configured callback return errors
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 29 Sep 2015 22:52:59 +0000 (15:52 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 5 Nov 2015 17:51:50 +0000 (09:51 -0800)
commit9154301a47b33bdc273d8254c407792524367558
treecab76001d278f5a7fd6cd4cc648d1a3fd86d5960
parent84a73014d86fd660822a20c032625e3afe99ca58
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 <jaikumarg@android.com>
Signed-off-by: Arve Hjønnevåg <arve@android.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Acked-by: Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com>
Acked-by: Andrew Duggan <aduggan@synaptics.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
12 files changed:
drivers/hid/hid-appleir.c
drivers/hid/hid-elo.c
drivers/hid/hid-input.c
drivers/hid/hid-lenovo.c
drivers/hid/hid-logitech-hidpp.c
drivers/hid/hid-magicmouse.c
drivers/hid/hid-multitouch.c
drivers/hid/hid-ntrig.c
drivers/hid/hid-rmi.c
drivers/hid/hid-sony.c
drivers/hid/hid-uclogic.c
include/linux/hid.h