Re: [PATCH] i2c: mux: pinctrl: use flexible-array member and struct_size() helper

2019-06-11 Thread Peter Rosin
On 2019-06-03 16:53, Gustavo A. R. Silva wrote: > Update the code to use a flexible array member instead of a pointer in > structure i2c_mux_pinctrl and use the struct_size() helper. > > Also, make use of the struct_size() helper instead of an open-coded > version in order to avoid any potential

[PATCH] i2c: mux: pinctrl: use flexible-array member and struct_size() helper

2019-06-03 Thread Gustavo A. R. Silva
Update the code to use a flexible array member instead of a pointer in structure i2c_mux_pinctrl and use the struct_size() helper. Also, make use of the struct_size() helper instead of an open-coded version in order to avoid any potential type mistakes, in particular in the context in which this