MT7621-SPI: spi-mt7621: Fix alignment and style problems Fixed Coding function and style issues
Subsystems (2)
PATCH 1/1 MT7621-SPI: spi-mt7621: Fix alignment and style problems Fixed Coding function and style issues
Fix checkpatch issues: "CHECK: Alignment should match open parenthesis"
Signed-off-by Nilesh Hase <[email protected]>
--- drivers/staging/mt7621-spi/spi-mt7621.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/mt7621-spi/spi-mt7621.c +1 -1
@@ -303,7 +303,7 @@ static int mt7621_spi_setup(struct spi_device *spi)struct mt7621_spi *rs =spidev_to_mt7621_spi (spi);if ((spi->max_speed_hz ==0 ) || - (spi->max_speed_hz > (rs->sys_freq /2 ))) + (spi->max_speed_hz > (rs->sys_freq /2 ))) spi->max_speed_hz = (rs->sys_freq /2 );if (spi->max_speed_hz < (rs->sys_freq /4097 )) {
Signature · 1 line
2.20.1
Hi!
drivers/staging/mt7621-spi/spi-mt7621.c
Quoted 12 lines · Nilesh Hase
Fix checkpatch issues: "CHECK: Alignment should match open parenthesis"
Signed-off-by Nilesh Hase <[email protected]>--- drivers/staging/mt7621-spi/spi-mt7621.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/mt7621-spi/spi-mt7621.c +0
-0
FYI This file doesn't exist now. The driver has been moved into drivers/spi by this commit:cbd66c626e16 spi: mt7621: Move SPI driver out of staging
It's in linux-next-20190329 and later tags.
Quoted 10 lines
drivers/staging/mt7621-spi/spi-mt7621.c +1
-2@@ -303,7 +303,7 @@ static int mt7621_spi_setup(struct spi_device *spi)struct mt7621_spi *rs =spidev_to_mt7621_spi (spi);if ((spi->max_speed_hz ==0 ) || - (spi->max_speed_hz > (rs->sys_freq /2 ))) + (spi->max_speed_hz > (rs->sys_freq /2 ))) spi->max_speed_hz = (rs->sys_freq /2 );if (spi->max_speed_hz < (rs->sys_freq /4097 )) { --
Quoted 2 lines
2.20.1
Regards,
Chuanhong Guo