mirror of https://github.com/torvalds/linux.git
spi: gpio: Use explicit 'unsigned int' for parameter types
The C standard allows 'unsigned' as a shorthand for 'unsigned int'. For improved code clarity and consistency with the prevailing kernel coding style, replace the shorthand with the more explicit 'unsigned int' type for function parameters. This is a purely stylistic cleanup and has no functional impact on the generated code. Signed-off-by: Darshan Rathod <darshanrathod475@gmail.com> Link: https://patch.msgid.link/20250716095906.21812-1-darshanrathod475@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
d5255ae7ec
commit
d929cc75e9
|
|
@ -104,7 +104,7 @@ static inline int getmiso(const struct spi_device *spi)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static u32 spi_gpio_txrx_word_mode0(struct spi_device *spi,
|
static u32 spi_gpio_txrx_word_mode0(struct spi_device *spi,
|
||||||
unsigned nsecs, u32 word, u8 bits, unsigned flags)
|
unsigned int nsecs, u32 word, u8 bits, unsigned int flags)
|
||||||
{
|
{
|
||||||
if (unlikely(spi->mode & SPI_LSB_FIRST))
|
if (unlikely(spi->mode & SPI_LSB_FIRST))
|
||||||
return bitbang_txrx_le_cpha0(spi, nsecs, 0, flags, word, bits);
|
return bitbang_txrx_le_cpha0(spi, nsecs, 0, flags, word, bits);
|
||||||
|
|
@ -113,7 +113,7 @@ static u32 spi_gpio_txrx_word_mode0(struct spi_device *spi,
|
||||||
}
|
}
|
||||||
|
|
||||||
static u32 spi_gpio_txrx_word_mode1(struct spi_device *spi,
|
static u32 spi_gpio_txrx_word_mode1(struct spi_device *spi,
|
||||||
unsigned nsecs, u32 word, u8 bits, unsigned flags)
|
unsigned int nsecs, u32 word, u8 bits, unsigned int flags)
|
||||||
{
|
{
|
||||||
if (unlikely(spi->mode & SPI_LSB_FIRST))
|
if (unlikely(spi->mode & SPI_LSB_FIRST))
|
||||||
return bitbang_txrx_le_cpha1(spi, nsecs, 0, flags, word, bits);
|
return bitbang_txrx_le_cpha1(spi, nsecs, 0, flags, word, bits);
|
||||||
|
|
@ -122,7 +122,7 @@ static u32 spi_gpio_txrx_word_mode1(struct spi_device *spi,
|
||||||
}
|
}
|
||||||
|
|
||||||
static u32 spi_gpio_txrx_word_mode2(struct spi_device *spi,
|
static u32 spi_gpio_txrx_word_mode2(struct spi_device *spi,
|
||||||
unsigned nsecs, u32 word, u8 bits, unsigned flags)
|
unsigned int nsecs, u32 word, u8 bits, unsigned int flags)
|
||||||
{
|
{
|
||||||
if (unlikely(spi->mode & SPI_LSB_FIRST))
|
if (unlikely(spi->mode & SPI_LSB_FIRST))
|
||||||
return bitbang_txrx_le_cpha0(spi, nsecs, 1, flags, word, bits);
|
return bitbang_txrx_le_cpha0(spi, nsecs, 1, flags, word, bits);
|
||||||
|
|
@ -131,7 +131,7 @@ static u32 spi_gpio_txrx_word_mode2(struct spi_device *spi,
|
||||||
}
|
}
|
||||||
|
|
||||||
static u32 spi_gpio_txrx_word_mode3(struct spi_device *spi,
|
static u32 spi_gpio_txrx_word_mode3(struct spi_device *spi,
|
||||||
unsigned nsecs, u32 word, u8 bits, unsigned flags)
|
unsigned int nsecs, u32 word, u8 bits, unsigned int flags)
|
||||||
{
|
{
|
||||||
if (unlikely(spi->mode & SPI_LSB_FIRST))
|
if (unlikely(spi->mode & SPI_LSB_FIRST))
|
||||||
return bitbang_txrx_le_cpha1(spi, nsecs, 1, flags, word, bits);
|
return bitbang_txrx_le_cpha1(spi, nsecs, 1, flags, word, bits);
|
||||||
|
|
@ -150,7 +150,7 @@ static u32 spi_gpio_txrx_word_mode3(struct spi_device *spi,
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static u32 spi_gpio_spec_txrx_word_mode0(struct spi_device *spi,
|
static u32 spi_gpio_spec_txrx_word_mode0(struct spi_device *spi,
|
||||||
unsigned nsecs, u32 word, u8 bits, unsigned flags)
|
unsigned int nsecs, u32 word, u8 bits, unsigned int flags)
|
||||||
{
|
{
|
||||||
flags = spi->controller->flags;
|
flags = spi->controller->flags;
|
||||||
if (unlikely(spi->mode & SPI_LSB_FIRST))
|
if (unlikely(spi->mode & SPI_LSB_FIRST))
|
||||||
|
|
@ -160,7 +160,7 @@ static u32 spi_gpio_spec_txrx_word_mode0(struct spi_device *spi,
|
||||||
}
|
}
|
||||||
|
|
||||||
static u32 spi_gpio_spec_txrx_word_mode1(struct spi_device *spi,
|
static u32 spi_gpio_spec_txrx_word_mode1(struct spi_device *spi,
|
||||||
unsigned nsecs, u32 word, u8 bits, unsigned flags)
|
unsigned int nsecs, u32 word, u8 bits, unsigned int flags)
|
||||||
{
|
{
|
||||||
flags = spi->controller->flags;
|
flags = spi->controller->flags;
|
||||||
if (unlikely(spi->mode & SPI_LSB_FIRST))
|
if (unlikely(spi->mode & SPI_LSB_FIRST))
|
||||||
|
|
@ -170,7 +170,7 @@ static u32 spi_gpio_spec_txrx_word_mode1(struct spi_device *spi,
|
||||||
}
|
}
|
||||||
|
|
||||||
static u32 spi_gpio_spec_txrx_word_mode2(struct spi_device *spi,
|
static u32 spi_gpio_spec_txrx_word_mode2(struct spi_device *spi,
|
||||||
unsigned nsecs, u32 word, u8 bits, unsigned flags)
|
unsigned int nsecs, u32 word, u8 bits, unsigned int flags)
|
||||||
{
|
{
|
||||||
flags = spi->controller->flags;
|
flags = spi->controller->flags;
|
||||||
if (unlikely(spi->mode & SPI_LSB_FIRST))
|
if (unlikely(spi->mode & SPI_LSB_FIRST))
|
||||||
|
|
@ -180,7 +180,7 @@ static u32 spi_gpio_spec_txrx_word_mode2(struct spi_device *spi,
|
||||||
}
|
}
|
||||||
|
|
||||||
static u32 spi_gpio_spec_txrx_word_mode3(struct spi_device *spi,
|
static u32 spi_gpio_spec_txrx_word_mode3(struct spi_device *spi,
|
||||||
unsigned nsecs, u32 word, u8 bits, unsigned flags)
|
unsigned int nsecs, u32 word, u8 bits, unsigned int flags)
|
||||||
{
|
{
|
||||||
flags = spi->controller->flags;
|
flags = spi->controller->flags;
|
||||||
if (unlikely(spi->mode & SPI_LSB_FIRST))
|
if (unlikely(spi->mode & SPI_LSB_FIRST))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue