diff options
| -rw-r--r-- | drivers/spi/spi-bcm63xx-hsspi.c | 6 |
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 | ||
| 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, |
| 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, | |||
| 127 | static void bcm63xx_hsspi_set_clk(struct bcm63xx_hsspi *bs, | 127 | static 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, | |||
| 154 | static int bcm63xx_hsspi_do_txrx(struct spi_device *spi, struct spi_transfer *t) | 154 | static 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; |
