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()556 for (i = 0; i < ARRAY_SIZE(pdata->gpio_defaults); i++) { in wm8994_device_init()557 if (pdata->gpio_defaults[i]) { in wm8994_device_init()559 0xffff, pdata->gpio_defaults[i]); in wm8994_device_init()
844 pdata->gpio_defaults, in arizona_of_get_core_pdata()845 ARRAY_SIZE(pdata->gpio_defaults)); in arizona_of_get_core_pdata()853 for (i = 0; i < ARRAY_SIZE(pdata->gpio_defaults); i++) { in arizona_of_get_core_pdata()854 if (pdata->gpio_defaults[i] > 0xffff) in arizona_of_get_core_pdata()855 pdata->gpio_defaults[i] = 0; in arizona_of_get_core_pdata()856 else if (pdata->gpio_defaults[i] == 0) in arizona_of_get_core_pdata()857 pdata->gpio_defaults[i] = 0x10000; in arizona_of_get_core_pdata()1339 for (i = 0; i < ARRAY_SIZE(arizona->pdata.gpio_defaults); i++) { in arizona_dev_init()1340 if (!arizona->pdata.gpio_defaults[i]) in arizona_dev_init()1344 arizona->pdata.gpio_defaults[i]); in arizona_dev_init()
1777 for (i = 0; i < ARRAY_SIZE(pdata->gpio_defaults); i++) { in wm831x_device_init()1778 if (!pdata->gpio_defaults[i]) in wm831x_device_init()1783 pdata->gpio_defaults[i] & 0xffff); in wm831x_device_init()
88 .gpio_defaults = {193 .gpio_defaults = {214 .gpio_defaults = {251 .gpio_defaults = {301 .gpio_defaults = {
563 .gpio_defaults = {686 .gpio_defaults = {
56 int gpio_defaults[6]; member
52 int gpio_defaults[4]; member
99 unsigned int gpio_defaults[ARIZONA_MAX_GPIO]; member
131 int gpio_defaults[WM831X_GPIO_NUM]; member
140 int gpio_defaults[WM8994_NUM_GPIO]; member
2330 for (i = 0; i < ARRAY_SIZE(wm2200->pdata.gpio_defaults); i++) { in wm2200_i2c_probe()2331 if (!wm2200->pdata.gpio_defaults[i]) in wm2200_i2c_probe()2335 wm2200->pdata.gpio_defaults[i]); in wm2200_i2c_probe()
2538 for (i = 0; i < ARRAY_SIZE(wm5100->pdata.gpio_defaults); i++) { in wm5100_i2c_probe()2539 if (!wm5100->pdata.gpio_defaults[i]) in wm5100_i2c_probe()2543 wm5100->pdata.gpio_defaults[i]); in wm5100_i2c_probe()
277 for (i = 0; i < ARRAY_SIZE(arizona->pdata.gpio_defaults); i++) { in arizona_init_gpio()278 switch (arizona->pdata.gpio_defaults[i] & ARIZONA_GPN_FN_MASK) { in arizona_init_gpio()