diff options
author | Hanno Zulla <abos@hanno.de> | 2018-06-14 16:32:16 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2018-07-09 15:14:08 +0200 |
commit | ea58c33d4d85504b4255dd74999603a6793bc56a (patch) | |
tree | 058de49a79d18e88fb9aa9de59f45c836163050e /drivers/hid/usbhid | |
parent | 8082d3f02261adbdc4eb3301fb99960162c3d142 (diff) | |
download | linux-ea58c33d4d85504b4255dd74999603a6793bc56a.tar.bz2 |
HID: hid-sony.c: Use devm_ api to simplify sc->output_report_dmabuf
HID: hid-sony.c: Use devm_ api to simplify sc->output_report_dmabuf
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>
Diffstat (limited to 'drivers/hid/usbhid')
0 files changed, 0 insertions, 0 deletions