projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f96c19f
)
spi: jcore: Fix trailing statements should be on next line
author
Jay Fang
<f.fangjian@huawei.com>
Wed, 24 Mar 2021 06:16:39 +0000
(14:16 +0800)
committer
Mark Brown
<broonie@kernel.org>
Wed, 24 Mar 2021 19:51:09 +0000
(19:51 +0000)
Fix checkpatch error:
ERROR: trailing statements should be on next line
#85: FILE: spi-jcore.c:85:
+ if (speed == hw->speed_hz) return;
Signed-off-by: Jay Fang <f.fangjian@huawei.com>
Link:
https://lore.kernel.org/r/1616566602-13894-9-git-send-email-f.fangjian@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-jcore.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-jcore.c
b/drivers/spi/spi-jcore.c
index bba10f030e33daa4b7e404582ff86ed3b18b01df..74c8319c29f1706aef9e4b2bea9b7956d4c937f6 100644
(file)
--- a/
drivers/spi/spi-jcore.c
+++ b/
drivers/spi/spi-jcore.c
@@
-82,7
+82,8
@@
static void jcore_spi_chipsel(struct spi_device *spi, bool value)
static void jcore_spi_baudrate(struct jcore_spi *hw, int speed)
{
- if (speed == hw->speed_hz) return;
+ if (speed == hw->speed_hz)
+ return;
hw->speed_hz = speed;
if (speed >= hw->clock_freq / 2)
hw->speed_reg = 0;