Re: [PATCH 2/4] cp210x: Unify code for set/get config control messages

2015-07-30 Thread Johan Hovold
On Fri, Jul 24, 2015 at 08:48:09AM +0200, Petr Tesarik wrote: > From: Petr Tesarik > > There is a lot of overlap between the two functions (e.g. calculation > of the buffer size), so this removes a bit of code duplication, but > most importantly, a more generic function can be easily reused for >

[PATCH 2/4] cp210x: Unify code for set/get config control messages

2015-07-23 Thread Petr Tesarik
From: Petr Tesarik There is a lot of overlap between the two functions (e.g. calculation of the buffer size), so this removes a bit of code duplication, but most importantly, a more generic function can be easily reused for other message types. Signed-off-by: Petr Tesarik --- drivers/usb/seria