/* Write status register 1 byte Returns negative if error occurred.  */
static int write_sr(struct m25p_spifi *flash, u8 val)
/* Write status register 1 byte Returns negative if error occurred.  */
static int write_sr(struct m25p_spifi *flash, u8 val)
{
	return spifi_opcode_write(flash, OPCODE_WRSR, &val, 1);
}