summaryrefslogtreecommitdiff
path: root/drivers/spi/ich.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-12-07 07:42:42 +0300
committerBin Meng <bmeng.cn@gmail.com>2019-12-15 06:44:22 +0300
commit75214b051bfbbdafa5134b4320b9e4ae6ee9b22d (patch)
tree7f5482d4229c448a2d6d8b2fbffea7f4298cb7ae /drivers/spi/ich.h
parenta550662c270eb66b373498dae0cea2456fb30e22 (diff)
downloadu-boot-75214b051bfbbdafa5134b4320b9e4ae6ee9b22d.tar.xz
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>
Diffstat (limited to 'drivers/spi/ich.h')
-rw-r--r--drivers/spi/ich.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/spi/ich.h b/drivers/spi/ich.h
index 77057878a5..623b2c547a 100644
--- a/drivers/spi/ich.h
+++ b/drivers/spi/ich.h
@@ -168,11 +168,6 @@ enum ich_version {
ICHV_9,
};
-struct ich_spi_platdata {
- enum ich_version ich_version; /* Controller version, 7 or 9 */
- bool lockdown; /* lock down controller settings? */
-};
-
struct ich_spi_priv {
int opmenu;
int menubytes;