projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
327f538
)
spi: txx9: Fix checkpatch issue
author
Jingoo Han
<jg1.han@samsung.com>
Tue, 2 Sep 2014 02:53:54 +0000
(11:53 +0900)
committer
Mark Brown
<broonie@kernel.org>
Wed, 3 Sep 2014 18:30:27 +0000
(19:30 +0100)
Fix the following checkpatch warnings.
Missing a blank line after declarations.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-txx9.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/spi/spi-txx9.c
b/drivers/spi/spi-txx9.c
index 5f183baa91a98bb343747eced81ae6f4e09c4536..2501a8373e890dec1896a50d8b18fda05295d0d0 100644
(file)
--- a/
drivers/spi/spi-txx9.c
+++ b/
drivers/spi/spi-txx9.c
@@
-97,6
+97,7
@@
static void txx9spi_cs_func(struct spi_device *spi, struct txx9spi *c,
int on, unsigned int cs_delay)
{
int val = (spi->mode & SPI_CS_HIGH) ? on : !on;
+
if (on) {
/* deselect the chip with cs_change hint in last transfer */
if (c->last_chipselect >= 0)
@@
-188,6
+189,7
@@
static void txx9spi_work_one(struct txx9spi *c, struct spi_message *m)
if (prev_speed_hz != speed_hz
|| prev_bits_per_word != bits_per_word) {
int n = DIV_ROUND_UP(c->baseclk, speed_hz) - 1;
+
n = clamp(n, SPI_MIN_DIVIDER, SPI_MAX_DIVIDER);
/* enter config mode */
txx9spi_wr(c, mcr | TXx9_SPMCR_CONFIG | TXx9_SPMCR_BCLR,