Re: [PATCH] USB: serial: cp210x: Cleaned up USB access functions.

2015-12-06 Thread Johan Hovold
On Mon, Nov 30, 2015 at 04:50:38PM -0600, Konstantin Shkolnyy wrote: > cp210x_get_config and cp210x_set_config were hard to use. They required > the buffer as an array of 32-bit values even for smaller values, and did > endian conversions on per-32-bit value basis, which is wrong for some > cp210x

[PATCH] USB: serial: cp210x: Cleaned up USB access functions.

2015-11-30 Thread Konstantin Shkolnyy
cp210x_get_config and cp210x_set_config were hard to use. They required the buffer as an array of 32-bit values even for smaller values, and did endian conversions on per-32-bit value basis, which is wrong for some cp210x data structures (although not for any that were actually used.) This change i