Skip to content

Commit da470d6

Browse files
Aravind Thokalabroonie
authored andcommitted
spi/ath79: 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 da470d6

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

drivers/spi/spi-ath79.c

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ struct ath79_spi {
3939
u32 reg_ctrl;
4040
void __iomem *base;
4141
struct clk *clk;
42-
unsigned rrw_delay;
42+
unsigned int rrw_delay;
4343
};
4444

45-
static inline u32 ath79_spi_rr(struct ath79_spi *sp, unsigned reg)
45+
static inline u32 ath79_spi_rr(struct ath79_spi *sp, unsigned int reg)
4646
{
4747
return ioread32(sp->base + reg);
4848
}
4949

50-
static inline void ath79_spi_wr(struct ath79_spi *sp, unsigned reg, u32 val)
50+
static inline void ath79_spi_wr(struct ath79_spi *sp, unsigned int reg, u32 val)
5151
{
5252
iowrite32(val, sp->base + reg);
5353
}
@@ -57,7 +57,7 @@ static inline struct ath79_spi *ath79_spidev_to_sp(struct spi_device *spi)
5757
return spi_master_get_devdata(spi->master);
5858
}
5959

60-
static inline void ath79_spi_delay(struct ath79_spi *sp, unsigned nsecs)
60+
static inline void ath79_spi_delay(struct ath79_spi *sp, unsigned int nsecs)
6161
{
6262
if (nsecs > sp->rrw_delay)
6363
ndelay(nsecs - sp->rrw_delay);
@@ -148,9 +148,8 @@ static int ath79_spi_setup_cs(struct spi_device *spi)
148148

149149
static void ath79_spi_cleanup_cs(struct spi_device *spi)
150150
{
151-
if (gpio_is_valid(spi->cs_gpio)) {
151+
if (gpio_is_valid(spi->cs_gpio))
152152
gpio_free(spi->cs_gpio);
153-
}
154153
}
155154

156155
static int ath79_spi_setup(struct spi_device *spi)
@@ -176,7 +175,7 @@ static void ath79_spi_cleanup(struct spi_device *spi)
176175
spi_bitbang_cleanup(spi);
177176
}
178177

179-
static u32 ath79_spi_txrx_mode0(struct spi_device *spi, unsigned nsecs,
178+
static u32 ath79_spi_txrx_mode0(struct spi_device *spi, unsigned int nsecs,
180179
u32 word, u8 bits)
181180
{
182181
struct ath79_spi *sp = ath79_spidev_to_sp(spi);

0 commit comments

Comments
 (0)