Searched refs:gpio_defaults (Results 1 – 13 of 13) sorted by relevance
278 if (of_property_read_u32_array(np, "wlf,gpio-cfg", pdata->gpio_defaults, in wm8994_set_pdata_from_of()279 ARRAY_SIZE(pdata->gpio_defaults)) >= 0) { in wm8994_set_pdata_from_of()280 for (i = 0; i < ARRAY_SIZE(pdata->gpio_defaults); i++) { in wm8994_set_pdata_from_of()281 if (wm8994->pdata.gpio_defaults[i] == 0) in wm8994_set_pdata_from_of()282 pdata->gpio_defaults[i] in wm8994_set_pdata_from_of()546 for (i = 0; i < ARRAY_SIZE(pdata->gpio_defaults); i++) { in wm8994_device_init()547 if (pdata->gpio_defaults[i]) { in wm8994_device_init()549 0xffff, pdata->gpio_defaults[i]); in wm8994_device_init()
816 pdata->gpio_defaults, in arizona_of_get_core_pdata()817 ARRAY_SIZE(pdata->gpio_defaults)); in arizona_of_get_core_pdata()825 for (i = 0; i < ARRAY_SIZE(pdata->gpio_defaults); i++) { in arizona_of_get_core_pdata()826 if (pdata->gpio_defaults[i] > 0xffff) in arizona_of_get_core_pdata()827 pdata->gpio_defaults[i] = 0; in arizona_of_get_core_pdata()828 else if (pdata->gpio_defaults[i] == 0) in arizona_of_get_core_pdata()829 pdata->gpio_defaults[i] = 0x10000; in arizona_of_get_core_pdata()1255 for (i = 0; i < ARRAY_SIZE(arizona->pdata.gpio_defaults); i++) { in arizona_dev_init()1256 if (!arizona->pdata.gpio_defaults[i]) in arizona_dev_init()1260 arizona->pdata.gpio_defaults[i]); in arizona_dev_init()
1765 for (i = 0; i < ARRAY_SIZE(pdata->gpio_defaults); i++) { in wm831x_device_init()1766 if (!pdata->gpio_defaults[i]) in wm831x_device_init()1771 pdata->gpio_defaults[i] & 0xffff); in wm831x_device_init()
87 .gpio_defaults = {192 .gpio_defaults = {214 .gpio_defaults = {243 .gpio_defaults = {284 .gpio_defaults = {
567 .gpio_defaults = {690 .gpio_defaults = {
56 int gpio_defaults[6]; member
52 int gpio_defaults[4]; member
97 unsigned int gpio_defaults[ARIZONA_MAX_GPIO]; member
131 int gpio_defaults[WM831X_GPIO_NUM]; member
140 int gpio_defaults[WM8994_NUM_GPIO]; member
2331 for (i = 0; i < ARRAY_SIZE(wm2200->pdata.gpio_defaults); i++) { in wm2200_i2c_probe()2332 if (!wm2200->pdata.gpio_defaults[i]) in wm2200_i2c_probe()2336 wm2200->pdata.gpio_defaults[i]); in wm2200_i2c_probe()
2545 for (i = 0; i < ARRAY_SIZE(wm5100->pdata.gpio_defaults); i++) { in wm5100_i2c_probe()2546 if (!wm5100->pdata.gpio_defaults[i]) in wm5100_i2c_probe()2550 wm5100->pdata.gpio_defaults[i]); in wm5100_i2c_probe()
296 for (i = 0; i < ARRAY_SIZE(arizona->pdata.gpio_defaults); i++) { in arizona_init_gpio()297 switch (arizona->pdata.gpio_defaults[i] & ARIZONA_GPN_FN_MASK) { in arizona_init_gpio()