Re: [PATCH v2] spi: stm32: update dev_dbg() print format for SPI params

2021-01-05 Thread Mark Brown
On Mon, 4 Jan 2021 16:31:03 +0200, Alexandru Ardelean wrote: > With the introduction of the 'include/uapi/linux/spi/spi.h' header, the > type of the macros are enforced to 'unsigned long int' via the _BITUL() > macro. > > This causes some -Wformat warnings in the spi-stm32 driver. > This patch add

Re: [PATCH v2] spi: stm32: update dev_dbg() print format for SPI params

2021-01-04 Thread Andy Shevchenko
On Mon, Jan 4, 2021 at 4:27 PM Alexandru Ardelean wrote: > > With the introduction of the 'include/uapi/linux/spi/spi.h' header, the > type of the macros are enforced to 'unsigned long int' via the _BITUL() > macro. > > This causes some -Wformat warnings in the spi-stm32 driver. > This patch adds

[PATCH v2] spi: stm32: update dev_dbg() print format for SPI params

2021-01-04 Thread Alexandru Ardelean
With the introduction of the 'include/uapi/linux/spi/spi.h' header, the type of the macros are enforced to 'unsigned long int' via the _BITUL() macro. This causes some -Wformat warnings in the spi-stm32 driver. This patch adds a double-negation operator to the bit-masks. Essentially, the important