x86: ich-spi: Convert driver to spi-mem ops
authorBernhard Messerklinger <bernhard.messerklinger@br-automation.com>
Fri, 2 Aug 2019 06:38:34 +0000 (08:38 +0200)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 9 Aug 2019 14:24:02 +0000 (22:24 +0800)
commit0709ddb68fed4dbeae09d919fc54d7235918d47b
treea732a4faec3c008ae224edee1e5a1bd8a5a0c317
parentfd95e1017897474b18ac1a4a7915bf8e59ec204f
x86: ich-spi: Convert driver to spi-mem ops

With the introduction of the new spi-mem model operations changed
slightly. The new spi-mem operations make things a bit easier to
handle for ich-spi flash interface. This patch converts the ich-spi
driver by using spi-mem operations.

Signed-off-by: Bernhard Messerklinger <bernhard.messerklinger@br-automation.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested on Intel CrownBay and MinnowMax
Tested-by: Bin Meng <bmeng.cn@gmail.com>
[bmeng: fix compiler warnings when building the driver for 64-bit]
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
drivers/spi/ich.c
drivers/spi/ich.h