can: mcp251x: use u8 instead of uint8_t

This patch changes all the uint8_t in the arguments in several function
to u8.

Acked-by: Sean Nyekjaer <sean@geanix.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
This commit is contained in:
Marc Kleine-Budde 2019-08-13 14:26:45 +02:00
parent d344c6d6c3
commit af669cd26e
1 changed files with 4 additions and 5 deletions

View File

@ -319,7 +319,7 @@ static int mcp251x_spi_trans(struct spi_device *spi, int len)
return ret; return ret;
} }
static u8 mcp251x_read_reg(struct spi_device *spi, uint8_t reg) static u8 mcp251x_read_reg(struct spi_device *spi, u8 reg)
{ {
struct mcp251x_priv *priv = spi_get_drvdata(spi); struct mcp251x_priv *priv = spi_get_drvdata(spi);
u8 val = 0; u8 val = 0;
@ -333,8 +333,7 @@ static u8 mcp251x_read_reg(struct spi_device *spi, uint8_t reg)
return val; return val;
} }
static void mcp251x_read_2regs(struct spi_device *spi, uint8_t reg, static void mcp251x_read_2regs(struct spi_device *spi, u8 reg, u8 *v1, u8 *v2)
uint8_t *v1, uint8_t *v2)
{ {
struct mcp251x_priv *priv = spi_get_drvdata(spi); struct mcp251x_priv *priv = spi_get_drvdata(spi);
@ -347,7 +346,7 @@ static void mcp251x_read_2regs(struct spi_device *spi, uint8_t reg,
*v2 = priv->spi_rx_buf[3]; *v2 = priv->spi_rx_buf[3];
} }
static void mcp251x_write_reg(struct spi_device *spi, u8 reg, uint8_t val) static void mcp251x_write_reg(struct spi_device *spi, u8 reg, u8 val)
{ {
struct mcp251x_priv *priv = spi_get_drvdata(spi); struct mcp251x_priv *priv = spi_get_drvdata(spi);
@ -359,7 +358,7 @@ static void mcp251x_write_reg(struct spi_device *spi, u8 reg, uint8_t val)
} }
static void mcp251x_write_bits(struct spi_device *spi, u8 reg, static void mcp251x_write_bits(struct spi_device *spi, u8 reg,
u8 mask, uint8_t val) u8 mask, u8 val)
{ {
struct mcp251x_priv *priv = spi_get_drvdata(spi); struct mcp251x_priv *priv = spi_get_drvdata(spi);