Searched refs:wp_read (Results 1 – 2 of 2) sorted by relevance
80 bool wp_read; in spi_flash_chip_mxic_opi_set_write_protect() local81 err = chip->chip_drv->get_chip_write_protect(chip, &wp_read); in spi_flash_chip_mxic_opi_set_write_protect()82 if (err == ESP_OK && wp_read != write_protect) { in spi_flash_chip_mxic_opi_set_write_protect()
317 bool wp_read; in spi_flash_chip_generic_set_write_protect() local318 err = chip->chip_drv->get_chip_write_protect(chip, &wp_read); in spi_flash_chip_generic_set_write_protect()319 if (err == ESP_OK && wp_read != write_protect) { in spi_flash_chip_generic_set_write_protect()