/* Set write enable latch with Write Enable command. Returns negative if error occurred.  */
static int write_enable(struct m25p *flash)
/* Set write enable latch with Write Enable command. Returns negative if error occurred.  */
static int write_enable(struct m25p *flash)
{
	u8	code = OPCODE_WREN;
	return spi_write_then_read(flash->spi, &code, 1, NULL, 0);
}