Lines Matching refs:nau8315
34 struct nau8315_priv *nau8315 = in nau8315_daiops_trigger() local
37 if (!nau8315->enable) in nau8315_daiops_trigger()
44 if (nau8315->enpin_switch) { in nau8315_daiops_trigger()
45 gpiod_set_value(nau8315->enable, 1); in nau8315_daiops_trigger()
52 gpiod_set_value(nau8315->enable, 0); in nau8315_daiops_trigger()
65 struct nau8315_priv *nau8315 = in nau8315_enpin_event() local
69 nau8315->enpin_switch = 1; in nau8315_enpin_event()
71 nau8315->enpin_switch = 0; in nau8315_enpin_event()
119 struct nau8315_priv *nau8315; in nau8315_platform_probe() local
121 nau8315 = devm_kzalloc(&pdev->dev, sizeof(*nau8315), GFP_KERNEL); in nau8315_platform_probe()
122 if (!nau8315) in nau8315_platform_probe()
125 nau8315->enable = devm_gpiod_get_optional(&pdev->dev, in nau8315_platform_probe()
127 if (IS_ERR(nau8315->enable)) in nau8315_platform_probe()
128 return PTR_ERR(nau8315->enable); in nau8315_platform_probe()
130 dev_set_drvdata(&pdev->dev, nau8315); in nau8315_platform_probe()