Home
last modified time | relevance | path

Searched refs:wp_gpio (Results 1 – 7 of 7) sorted by relevance

/linux/drivers/iio/potentiometer/
H A Dx9250.c28 struct gpio_desc *wp_gpio; member
127 gpiod_set_value_cansleep(x9250->wp_gpio, 0); in x9250_write_raw()
129 gpiod_set_value_cansleep(x9250->wp_gpio, 1); in x9250_write_raw()
180 x9250->wp_gpio = devm_gpiod_get_optional(&spi->dev, "wp", GPIOD_OUT_LOW); in x9250_probe()
181 if (IS_ERR(x9250->wp_gpio)) in x9250_probe()
182 return dev_err_probe(&spi->dev, PTR_ERR(x9250->wp_gpio), in x9250_probe()
/linux/drivers/mtd/nand/raw/
H A Dlpc32xx_mlc.c179 struct gpio_desc *wp_gpio; member
374 if (host->wp_gpio) in lpc32xx_wp_enable()
375 gpiod_set_value_cansleep(host->wp_gpio, 1); in lpc32xx_wp_enable()
383 if (host->wp_gpio) in lpc32xx_wp_disable()
384 gpiod_set_value_cansleep(host->wp_gpio, 0); in lpc32xx_wp_disable()
720 host->wp_gpio = gpiod_get_optional(&pdev->dev, NULL, GPIOD_OUT_LOW); in lpc32xx_nand_probe()
721 res = PTR_ERR_OR_ZERO(host->wp_gpio); in lpc32xx_nand_probe()
729 gpiod_set_consumer_name(host->wp_gpio, "NAND WP"); in lpc32xx_nand_probe()
826 gpiod_put(host->wp_gpio); in lpc32xx_nand_probe()
852 gpiod_put(host->wp_gpio); in lpc32xx_nand_remove()
H A Dstm32_fmc2_nand.c236 struct gpio_desc *wp_gpio; member
1789 if (nand->wp_gpio) in stm32_fmc2_nfc_wp_enable()
1790 gpiod_set_value(nand->wp_gpio, 1); in stm32_fmc2_nfc_wp_enable()
1795 if (nand->wp_gpio) in stm32_fmc2_nfc_wp_disable()
1796 gpiod_set_value(nand->wp_gpio, 0); in stm32_fmc2_nfc_wp_disable()
1837 nand->wp_gpio = devm_fwnode_gpiod_get(nfc->dev, of_fwnode_handle(dn), in stm32_fmc2_nfc_parse_child()
1839 if (IS_ERR(nand->wp_gpio)) { in stm32_fmc2_nfc_parse_child()
1840 ret = PTR_ERR(nand->wp_gpio); in stm32_fmc2_nfc_parse_child()
1845 nand->wp_gpio = NULL; in stm32_fmc2_nfc_parse_child()
H A Dtegra_nand.c184 struct gpio_desc *wp_gpio; member
1105 nand->wp_gpio = devm_gpiod_get_optional(dev, "wp", GPIOD_OUT_LOW); in tegra_nand_chips_init()
1107 if (IS_ERR(nand->wp_gpio)) { in tegra_nand_chips_init()
1108 ret = PTR_ERR(nand->wp_gpio); in tegra_nand_chips_init()
/linux/drivers/nvmem/
H A Dinternals.h32 struct gpio_desc *wp_gpio; member
H A Dcore.c70 gpiod_set_value_cansleep(nvmem->wp_gpio, 0); in __nvmem_reg_write()
72 gpiod_set_value_cansleep(nvmem->wp_gpio, 1); in __nvmem_reg_write()
539 gpiod_put(nvmem->wp_gpio); in nvmem_release()
933 nvmem->wp_gpio = gpiod_get_optional(config->dev, "wp", in nvmem_register()
935 if (IS_ERR(nvmem->wp_gpio)) { in nvmem_register()
936 rval = PTR_ERR(nvmem->wp_gpio); in nvmem_register()
937 nvmem->wp_gpio = NULL; in nvmem_register()
/linux/drivers/mtd/nand/raw/ingenic/
H A Dingenic_nand_drv.c57 struct gpio_desc *wp_gpio; member
383 nand->wp_gpio = devm_gpiod_get_optional(dev, "wp", GPIOD_OUT_LOW); in ingenic_nand_init_chip()
385 if (IS_ERR(nand->wp_gpio)) { in ingenic_nand_init_chip()
386 ret = PTR_ERR(nand->wp_gpio); in ingenic_nand_init_chip()