diff options
author | Benjamin Tissoires <benjamin.tissoires@gmail.com> | 2012-12-05 15:02:54 +0100 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2012-12-06 10:55:15 +0100 |
commit | 29b45787d1f57f82a1c37ff5a47786c6a9dbedd8 (patch) | |
tree | f274b7f44c266934d25265841ad15df0502cfd8e /drivers/iio/industrialio-core.c | |
parent | 27174cff8fcfcb3a60a3e7225cc627f6a4b7f827 (diff) | |
download | blackbird-op-linux-29b45787d1f57f82a1c37ff5a47786c6a9dbedd8.tar.gz blackbird-op-linux-29b45787d1f57f82a1c37ff5a47786c6a9dbedd8.zip |
HID: i2c-hid: reorder allocation/free of buffers
Simplifies i2c_hid_alloc_buffers tests, and makes this function
responsible of the assignment of ihid->bufsize.
The condition for the reallocation in i2c_hid_start is then simpler.
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Reviewed-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/iio/industrialio-core.c')
0 files changed, 0 insertions, 0 deletions