Lines Matching refs:gf
57 static struct gemini_flash *gf; variable
63 if (IS_ERR(gf->enabled_state)) in gemini_flash_enable_pins()
65 ret = pinctrl_select_state(gf->p, gf->enabled_state); in gemini_flash_enable_pins()
67 dev_err(gf->dev, "failed to enable pins\n"); in gemini_flash_enable_pins()
74 if (IS_ERR(gf->disabled_state)) in gemini_flash_disable_pins()
76 ret = pinctrl_select_state(gf->p, gf->disabled_state); in gemini_flash_disable_pins()
78 dev_err(gf->dev, "failed to disable pins\n"); in gemini_flash_disable_pins()
133 gf = devm_kzalloc(dev, sizeof(*gf), GFP_KERNEL); in of_flash_probe_gemini()
134 if (!gf) in of_flash_probe_gemini()
136 gf->dev = dev; in of_flash_probe_gemini()
172 gf->p = devm_pinctrl_get(dev); in of_flash_probe_gemini()
173 if (IS_ERR(gf->p)) { in of_flash_probe_gemini()
175 ret = PTR_ERR(gf->p); in of_flash_probe_gemini()
179 gf->enabled_state = pinctrl_lookup_state(gf->p, "enabled"); in of_flash_probe_gemini()
180 if (IS_ERR(gf->enabled_state)) in of_flash_probe_gemini()
183 gf->disabled_state = pinctrl_lookup_state(gf->p, "disabled"); in of_flash_probe_gemini()
184 if (IS_ERR(gf->enabled_state)) { in of_flash_probe_gemini()
187 ret = pinctrl_select_state(gf->p, gf->disabled_state); in of_flash_probe_gemini()
189 dev_err(gf->dev, "failed to disable pins\n"); in of_flash_probe_gemini()