diff options
author | Hanno Zulla <abos@hanno.de> | 2018-06-14 17:31:36 +0300 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2018-07-09 16:14:07 +0300 |
commit | 8082d3f02261adbdc4eb3301fb99960162c3d142 (patch) | |
tree | 4a8c4bb2ca57522d8a349885e43af6614dfe51d9 /drivers/ata/sata_fsl.c | |
parent | f2d98e2c020e8f33813a746ac8a92a4582ac416a (diff) | |
download | linux-8082d3f02261adbdc4eb3301fb99960162c3d142.tar.xz |
HID: hid-sony.c: Use devm_ api to simplify sony_battery_probe()
HID: hid-sony.c: Use devm_ api to simplify sony_battery_probe()
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/ata/sata_fsl.c')
0 files changed, 0 insertions, 0 deletions