Lines Matching refs:nwp
40 struct gpio_desc *nwp; /* Optional write protection */
279 if (gpiomtd->nwp && !IS_ERR(gpiomtd->nwp))
280 gpiod_set_value(gpiomtd->nwp, 0);
327 gpiomtd->nwp = devm_gpiod_get_optional(dev, "nwp", GPIOD_OUT_LOW);
328 if (IS_ERR(gpiomtd->nwp)) {
329 ret = PTR_ERR(gpiomtd->nwp);
364 if (gpiomtd->nwp && !IS_ERR(gpiomtd->nwp))
365 gpiod_direction_output(gpiomtd->nwp, 1);
387 if (gpiomtd->nwp && !IS_ERR(gpiomtd->nwp))
388 gpiod_set_value(gpiomtd->nwp, 0);