]> git.baikalelectronics.ru Git - uboot.git/commit
spi: ich: Add mmio_base to struct ich_spi_platdata
authorSimon Glass <sjg@chromium.org>
Sat, 7 Dec 2019 04:42:42 +0000 (21:42 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Sun, 15 Dec 2019 03:44:22 +0000 (11:44 +0800)
commit657d4f13f95c6b505b2043a77075c9ca6e7cc1f4
tree7f5482d4229c448a2d6d8b2fbffea7f4298cb7ae
parent6e545e8098741f135f3daccec8a483795bef8540
spi: ich: Add mmio_base to struct ich_spi_platdata

It is useful to store the mmio base in platdata. It reduces the amount of
casting needed. Update the code and move the struct to the C file at the
same time, as we will need to use with of-platdata.

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