Re: [PATCH v2 1/2] spi: Remove unnecessary #ifdefs in header file

2020-07-09 Thread Bin Meng
On Wed, Jul 8, 2020 at 11:02 PM Simon Glass wrote: > > 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 #ifdef

[PATCH v2 1/2] spi: Remove unnecessary #ifdefs in header file

2020-07-08 Thread Simon Glass
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