Lines Matching refs:gpio_cfg
1953 if (of_property_read_u32_array(np, "gpio-cfg", pdata->gpio_cfg, in wm8903_set_pdata_from_of()
1954 ARRAY_SIZE(pdata->gpio_cfg)) >= 0) { in wm8903_set_pdata_from_of()
1967 for (i = 0; i < ARRAY_SIZE(pdata->gpio_cfg); i++) { in wm8903_set_pdata_from_of()
1968 if (pdata->gpio_cfg[i] == 0) { in wm8903_set_pdata_from_of()
1969 pdata->gpio_cfg[i] = WM8903_GPIO_CONFIG_ZERO; in wm8903_set_pdata_from_of()
1970 } else if (pdata->gpio_cfg[i] == 0xffffffff) { in wm8903_set_pdata_from_of()
1971 pdata->gpio_cfg[i] = 0; in wm8903_set_pdata_from_of()
1972 } else if (pdata->gpio_cfg[i] > 0x7fff) { in wm8903_set_pdata_from_of()
1974 i, pdata->gpio_cfg[i]); in wm8903_set_pdata_from_of()
2075 for (i = 0; i < ARRAY_SIZE(pdata->gpio_cfg); i++) { in wm8903_i2c_probe()
2076 if ((!pdata->gpio_cfg[i]) || in wm8903_i2c_probe()
2077 (pdata->gpio_cfg[i] > WM8903_GPIO_CONFIG_ZERO)) in wm8903_i2c_probe()
2081 pdata->gpio_cfg[i] & 0x7fff); in wm8903_i2c_probe()
2083 val = (pdata->gpio_cfg[i] & WM8903_GP1_FN_MASK) in wm8903_i2c_probe()