Re: [PATCH v2 1/2] spi: add DM_SPI_FLASH compatibility inline functions

2024-10-10 Thread Mattijs Korpershoek
Hi Jagan, Vignesh, On mar., oct. 01, 2024 at 18:06, Neil Armstrong wrote: > To smoothly handle the transition from the legacy SPI FLASH > API to the the driver model API, add the DM functions > as dummy inline functions. > > Today, client code uses #if/#else conditionals, but it's better > to u

Re: [PATCH v2 1/2] spi: add DM_SPI_FLASH compatibility inline functions

2024-10-02 Thread Mattijs Korpershoek
Hi Neil, Thank you for the patch. On mar., oct. 01, 2024 at 18:06, Neil Armstrong wrote: > To smoothly handle the transition from the legacy SPI FLASH > API to the the driver model API, add the DM functions > as dummy inline functions. > > Today, client code uses #if/#else conditionals, but it

[PATCH v2 1/2] spi: add DM_SPI_FLASH compatibility inline functions

2024-10-01 Thread Neil Armstrong
To smoothly handle the transition from the legacy SPI FLASH API to the the driver model API, add the DM functions as dummy inline functions. Today, client code uses #if/#else conditionals, but it's better to use if(IS_ENABLED()) to make sure all code builds fine and avoid configuration hell, leavi