diff options
author | Simon Glass <sjg@chromium.org> | 2020-07-08 09:02:14 -0600 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2020-07-09 12:33:24 +0800 |
commit | 324ec5d7b4fcc52804cd9dd1091b884b1012e979 (patch) | |
tree | c205d0201d7f2594629d0d21a055aa1b32e1f879 /arch/x86/cpu | |
parent | dafde79ddbc0a711706db188638512ee0644caf9 (diff) |
spi: Remove unnecessary #ifdefs in header file
These prevent use of compile-time checks such as:
if (CONFIG_IS_ENABLED(DM_SPI))
since, for example, if CONFIG_SPL_DM_SPI is not enabled then the
definitions are not included by spi.h and the C code will not build.
The #ifdefs are unnecessary since there are no conflicts with the pre-DM
code. In any case we have almost switched over to driver model for SPI.
Drop these #ifdefs from spi.h to fix a build warning on chromebook_coral
in the following patch.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86/cpu')
0 files changed, 0 insertions, 0 deletions