]> git.dujemihanovic.xyz Git - u-boot.git/commit
spi: ich: Move the protection/lockdown code into a function
authorSimon Glass <sjg@chromium.org>
Sat, 7 Dec 2019 04:42:38 +0000 (21:42 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Sun, 15 Dec 2019 03:44:21 +0000 (11:44 +0800)
commit17e754492ffd3e308763f2543c9b8e4f85fac2f1
tree057ea73d5869bc76928d810e44f1f9c6d89f8cd3
parent674990c0dc21ecedaddb1f923455027bd489914c
spi: ich: Move the protection/lockdown code into a function

Reduce the size of the probe function but putting this code into its own
function.

Also remove the assumption that the PCH is always a parent of the SPI
controller, as this is not the case APL platforms. Use driver model to
find the PCH instead.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/spi/ich.c
drivers/spi/ich.h