Searched refs:wp_gpio (Results 1 – 6 of 6) sorted by relevance
| /linux/drivers/iio/potentiometer/ |
| H A D | x9250.c | 28 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 D | lpc32xx_mlc.c | 179 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 D | stm32_fmc2_nand.c | 236 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 D | tegra_nand.c | 184 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 D | internals.h | 32 struct gpio_desc *wp_gpio; member
|
| H A D | core.c | 70 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() 930 nvmem->wp_gpio = gpiod_get_optional(config->dev, "wp", in nvmem_register() 932 if (IS_ERR(nvmem->wp_gpio)) { in nvmem_register() 933 rval = PTR_ERR(nvmem->wp_gpio); in nvmem_register() 934 nvmem->wp_gpio = NULL; in nvmem_register()
|