]> git.dujemihanovic.xyz Git - u-boot.git/commit
spi: Remove unnecessary #ifdefs in header file
authorSimon Glass <sjg@chromium.org>
Wed, 8 Jul 2020 15:02:14 +0000 (09:02 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Thu, 9 Jul 2020 04:33:24 +0000 (12:33 +0800)
commit324ec5d7b4fcc52804cd9dd1091b884b1012e979
treec205d0201d7f2594629d0d21a055aa1b32e1f879
parentdafde79ddbc0a711706db188638512ee0644caf9
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>
include/spi.h