]> git.baikalelectronics.ru Git - uboot.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)
commit9baa076c9b9f36e3a98c2361fc93a867f258fd13
tree057ea73d5869bc76928d810e44f1f9c6d89f8cd3
parent055e8702d1ae1eccf2a1c5dff087e08901b5ed01
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