]> git.baikalelectronics.ru Git - kernel.git/commit
HID: hid-sony.c: Use devm_ api to simplify sony_register_touchpad()
authorHanno Zulla <abos@hanno.de>
Thu, 14 Jun 2018 14:29:08 +0000 (16:29 +0200)
committerJiri Kosina <jkosina@suse.cz>
Mon, 9 Jul 2018 13:14:07 +0000 (15:14 +0200)
commit96cccbb24f9c1692820eea27d26fee9f6aac7632
tree34052578d1dd7be2643ee61de70d246e0538859a
parent20c31d30afa4e0be4cca43b98945f0de59b3dc17
HID: hid-sony.c: Use devm_ api to simplify sony_register_touchpad()

HID: hid-sony.c: Use devm_ api to simplify sony_register_touchpad()

Using devm_ calls, the resources of the Sony game devices's features are
tied to the main device handle, making it easier to handle errors and
teardown inside the device driver. Altogether, this reduces complexity
of the driver source.

Signed-off-by: Hanno Zulla <kontakt@hanno.de>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-sony.c