aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAravind Thokala <aravind.thk@gmail.com>2017-06-27 12:07:10 -0400
committerMark Brown <broonie@kernel.org>2017-07-17 07:09:43 -0400
commitc3c25ea712c909e40d11024dcf6e4b19a2fc247b (patch)
tree702fdccb028ac2f73931ffb8b48fd0b38c95de5a
parent5771a8c08880cdca3bfb4a3fc6d309d6bba20877 (diff)
spi/bcm63xx-hspi: Fix checkpatch warnings
This patch fixes the checkpatch.pl warnings on the driver file. Signed-off-by: Aravind Thokala <aravind.thk@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--drivers/spi/spi-bcm63xx-hsspi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/spi/spi-bcm63xx-hsspi.c b/drivers/spi/spi-bcm63xx-hsspi.c
index 4da2d4a524ca..475a79015aa6 100644
--- a/drivers/spi/spi-bcm63xx-hsspi.c
+++ b/drivers/spi/spi-bcm63xx-hsspi.c
@@ -108,7 +108,7 @@ struct bcm63xx_hsspi {
108 u8 cs_polarity; 108 u8 cs_polarity;
109}; 109};
110 110
111static void bcm63xx_hsspi_set_cs(struct bcm63xx_hsspi *bs, unsigned cs, 111static void bcm63xx_hsspi_set_cs(struct bcm63xx_hsspi *bs, unsigned int cs,
112 bool active) 112 bool active)
113{ 113{
114 u32 reg; 114 u32 reg;
@@ -127,7 +127,7 @@ static void bcm63xx_hsspi_set_cs(struct bcm63xx_hsspi *bs, unsigned cs,
127static void bcm63xx_hsspi_set_clk(struct bcm63xx_hsspi *bs, 127static void bcm63xx_hsspi_set_clk(struct bcm63xx_hsspi *bs,
128 struct spi_device *spi, int hz) 128 struct spi_device *spi, int hz)
129{ 129{
130 unsigned profile = spi->chip_select; 130 unsigned int profile = spi->chip_select;
131 u32 reg; 131 u32 reg;
132 132
133 reg = DIV_ROUND_UP(2048, DIV_ROUND_UP(bs->speed_hz, hz)); 133 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,
154static int bcm63xx_hsspi_do_txrx(struct spi_device *spi, struct spi_transfer *t) 154static int bcm63xx_hsspi_do_txrx(struct spi_device *spi, struct spi_transfer *t)
155{ 155{
156 struct bcm63xx_hsspi *bs = spi_master_get_devdata(spi->master); 156 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;
158 u16 opcode = 0; 158 u16 opcode = 0;
159 int pending = t->len; 159 int pending = t->len;
160 int step_size = HSSPI_BUFFER_LEN; 160 int step_size = HSSPI_BUFFER_LEN;