30 Oct
2013
30 Oct
'13
1:31 a.m.
On Tue, Oct 29, 2013 at 09:35:56AM -0700, Mark Brown wrote:
- for (i = 0; i < ARRAY_SIZE(pdata->gpio_init); i++)
if (pdata->gpio_init[i]) {
- for (i = 0; i < ARRAY_SIZE(wm8962->pdata.gpio_init); i++)
if (wm8962->pdata.gpio_init[i]) {
...it'd be neater to just ensure that pdata is always initialised.
I considered about that, and the patch could be neater. But then I just found the code around this part are all using wm8962>pdata.* pattern. So I stick the modification to it.
Thank you, Nicolin Chen