diff options
author | Hanno Zulla <[email protected]> | 2018-06-14 16:30:02 +0200 |
---|---|---|
committer | Jiri Kosina <[email protected]> | 2018-07-09 15:14:07 +0200 |
commit | ea4a5fdc8d07df9115881f698c14bcfd7046a846 (patch) | |
tree | 2a7ddee6df53c23013066c883179a57efcf7a9b3 /drivers/fpga | |
parent | cc070a847bc0b6fb66e4c05b5bd036d2ea80fb9a (diff) |
HID: hid-sony.c: Use devm_ api to simplify sony_register_sensors()
[PATCH 2/5] HID: hid-sony.c: Use devm_ api to simplify sony_register_sensors()
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 <[email protected]>
Reviewed-by: Benjamin Tissoires <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'drivers/fpga')
0 files changed, 0 insertions, 0 deletions