diff options
author | Stephen Boyd <swboyd@chromium.org> | 2018-06-22 04:27:16 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2018-06-25 15:12:42 +0200 |
commit | d6f83894110de247a81392ab7ef89e5498df7e80 (patch) | |
tree | 6eaa205278dc4b6cc198cd9eae45b23f3579e19c /tools/virtio/.gitignore | |
parent | Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jik... (diff) | |
download | linux-d6f83894110de247a81392ab7ef89e5498df7e80.tar.xz linux-d6f83894110de247a81392ab7ef89e5498df7e80.zip |
HID: i2c-hid: Use devm to allocate i2c_hid struct
Use devm here to save some lines and prepare for bulk regulator usage in
this driver. Otherwise, when we devm bulk get regulators we'll free the
containing i2c_hid structure and try to put regulator pointers from
freed memory.
Cc: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Cc: Hans de Goede <hdegoede@redhat.com>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Dmitry Torokhov <dtor@chromium.org>
Cc: Doug Anderson <dianders@chromium.org>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Acked-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'tools/virtio/.gitignore')
0 files changed, 0 insertions, 0 deletions