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);
324 gpiomtd->nwp = devm_gpiod_get_optional(dev, "nwp", GPIOD_OUT_LOW);
325 if (IS_ERR(gpiomtd->nwp)) {
326 ret = PTR_ERR(gpiomtd->nwp);
361 if (gpiomtd->nwp && !IS_ERR(gpiomtd->nwp))
362 gpiod_direction_output(gpiomtd->nwp, 1);
384 if (gpiomtd->nwp && !IS_ERR(gpiomtd->nwp))
385 gpiod_set_value(gpiomtd->nwp, 0);