From: Angus Clark Date: Wed, 26 Mar 2014 16:39:18 +0000 (+0000) Subject: mtd: st_spi_fsm: Refactor status register operations X-Git-Tag: omap-for-v3.16/fixes-against-rc1~57^2~43^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d0bddab397ff705d66e6f87b61ea8abc3c62948;p=pandora-kernel.git mtd: st_spi_fsm: Refactor status register operations This patch refactors the fsm_read_status() and fsm_write_status() code to support 1 or 2 byte operations, with a specified command. This allows us to remove device/register specific code, such as the N25Q fsm_wrvcr() function. The 'QE' configuration code is updated accordingly, with minor tweaks to ensure the register values are only written if actually required. One notable change in this area is that the 'W25Q_STATUS_QE' bit-field is now defined with respect to the 'SR2' register, rather than the combined 'SR1+SR2' register which is only used for write operations. Signed-off-by: Angus Clark Signed-off-by: Lee Jones Signed-off-by: Brian Norris --- Reading git-diff-tree failed