Skip to content

Commit c3c25ea

Browse files
Aravind Thokalabroonie
authored andcommitted
spi/bcm63xx-hspi: Fix checkpatch warnings
This patch fixes the checkpatch.pl warnings on the driver file. Signed-off-by: Aravind Thokala <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent 5771a8c commit c3c25ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/spi/spi-bcm63xx-hsspi.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ struct bcm63xx_hsspi {
108108
u8 cs_polarity;
109109
};
110110

111-
static void bcm63xx_hsspi_set_cs(struct bcm63xx_hsspi *bs, unsigned cs,
111+
static void bcm63xx_hsspi_set_cs(struct bcm63xx_hsspi *bs, unsigned int cs,
112112
bool active)
113113
{
114114
u32 reg;
@@ -127,7 +127,7 @@ static void bcm63xx_hsspi_set_cs(struct bcm63xx_hsspi *bs, unsigned cs,
127127
static void bcm63xx_hsspi_set_clk(struct bcm63xx_hsspi *bs,
128128
struct spi_device *spi, int hz)
129129
{
130-
unsigned profile = spi->chip_select;
130+
unsigned int profile = spi->chip_select;
131131
u32 reg;
132132

133133
reg = DIV_ROUND_UP(2048, DIV_ROUND_UP(bs->speed_hz, hz));
@@ -154,7 +154,7 @@ static void bcm63xx_hsspi_set_clk(struct bcm63xx_hsspi *bs,
154154
static int bcm63xx_hsspi_do_txrx(struct spi_device *spi, struct spi_transfer *t)
155155
{
156156
struct bcm63xx_hsspi *bs = spi_master_get_devdata(spi->master);
157-
unsigned chip_select = spi->chip_select;
157+
unsigned int chip_select = spi->chip_select;
158158
u16 opcode = 0;
159159
int pending = t->len;
160160
int step_size = HSSPI_BUFFER_LEN;

0 commit comments

Comments
 (0)