Searched refs:gpio_defaults (Results 1 – 13 of 13) sorted by relevance
272 if (of_property_read_u32_array(np, "wlf,gpio-cfg", pdata->gpio_defaults, in wm8994_set_pdata_from_of()273 ARRAY_SIZE(pdata->gpio_defaults)) >= 0) { in wm8994_set_pdata_from_of()274 for (i = 0; i < ARRAY_SIZE(pdata->gpio_defaults); i++) { in wm8994_set_pdata_from_of()275 if (wm8994->pdata.gpio_defaults[i] == 0) in wm8994_set_pdata_from_of()276 pdata->gpio_defaults[i] in wm8994_set_pdata_from_of()544 for (i = 0; i < ARRAY_SIZE(pdata->gpio_defaults); i++) { in wm8994_device_init()545 if (pdata->gpio_defaults[i]) { in wm8994_device_init()547 0xffff, pdata->gpio_defaults[i]); in wm8994_device_init()
837 pdata->gpio_defaults, in arizona_of_get_core_pdata()838 ARRAY_SIZE(pdata->gpio_defaults)); in arizona_of_get_core_pdata()846 for (i = 0; i < ARRAY_SIZE(pdata->gpio_defaults); i++) { in arizona_of_get_core_pdata()847 if (pdata->gpio_defaults[i] > 0xffff) in arizona_of_get_core_pdata()848 pdata->gpio_defaults[i] = 0; in arizona_of_get_core_pdata()849 else if (pdata->gpio_defaults[i] == 0) in arizona_of_get_core_pdata()850 pdata->gpio_defaults[i] = 0x10000; in arizona_of_get_core_pdata()1332 for (i = 0; i < ARRAY_SIZE(arizona->pdata.gpio_defaults); i++) { in arizona_dev_init()1333 if (!arizona->pdata.gpio_defaults[i]) in arizona_dev_init()1337 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 = {226 .gpio_defaults = {263 .gpio_defaults = {313 .gpio_defaults = {
559 .gpio_defaults = {700 .gpio_defaults = {
53 int gpio_defaults[6]; member
49 int gpio_defaults[4]; member
96 unsigned int gpio_defaults[ARIZONA_MAX_GPIO]; member
124 int gpio_defaults[WM831X_GPIO_NUM]; member
132 int gpio_defaults[WM8994_NUM_GPIO]; member
2327 for (i = 0; i < ARRAY_SIZE(wm2200->pdata.gpio_defaults); i++) { in wm2200_i2c_probe()2328 if (!wm2200->pdata.gpio_defaults[i]) in wm2200_i2c_probe()2332 wm2200->pdata.gpio_defaults[i]); in wm2200_i2c_probe()
2535 for (i = 0; i < ARRAY_SIZE(wm5100->pdata.gpio_defaults); i++) { in wm5100_i2c_probe()2536 if (!wm5100->pdata.gpio_defaults[i]) in wm5100_i2c_probe()2540 wm5100->pdata.gpio_defaults[i]); in wm5100_i2c_probe()
274 for (i = 0; i < ARRAY_SIZE(arizona->pdata.gpio_defaults); i++) { in arizona_init_gpio()275 switch (arizona->pdata.gpio_defaults[i] & ARIZONA_GPN_FN_MASK) { in arizona_init_gpio()