commit | 29b45787d1f57f82a1c37ff5a47786c6a9dbedd8 | [log] [tgz] |
---|---|---|
author | Benjamin Tissoires <benjamin.tissoires@gmail.com> | Wed Dec 05 15:02:54 2012 +0100 |
committer | Jiri Kosina <jkosina@suse.cz> | Thu Dec 06 10:55:15 2012 +0100 |
tree | f274b7f44c266934d25265841ad15df0502cfd8e | |
parent | 27174cff8fcfcb3a60a3e7225cc627f6a4b7f827 [diff] |
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>