diff options
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2015-12-03 13:59:54 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-12-04 13:17:21 +0100 |
commit | 832329d75a854863c99724193d9619aec1e68368 (patch) | |
tree | c4c6e7d2c3be34804a3b9fa65f1984f3db3357a4 /drivers/spi/spi-lm70llp.c | |
parent | spi: lm70llp: remove multiple blank lines (diff) | |
download | linux-832329d75a854863c99724193d9619aec1e68368.tar.xz linux-832329d75a854863c99724193d9619aec1e68368.zip |
spi: lm70llp: add blank line after declaration
checkpatch complains about missing blank line after declaration.
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-lm70llp.c')
-rw-r--r-- | drivers/spi/spi-lm70llp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/spi/spi-lm70llp.c b/drivers/spi/spi-lm70llp.c index eb4b4218ee7d..70370288dfed 100644 --- a/drivers/spi/spi-lm70llp.c +++ b/drivers/spi/spi-lm70llp.c @@ -119,12 +119,14 @@ static inline void assertCS(struct spi_lm70llp *pp) static inline void clkHigh(struct spi_lm70llp *pp) { u8 data = parport_read_data(pp->port); + parport_write_data(pp->port, data | SCLK); } static inline void clkLow(struct spi_lm70llp *pp) { u8 data = parport_read_data(pp->port); + parport_write_data(pp->port, data & ~SCLK); } @@ -163,8 +165,10 @@ static inline void setmosi(struct spi_device *s, int is_on) static inline int getmiso(struct spi_device *s) { struct spi_lm70llp *pp = spidev_to_pp(s); + return ((SIO == (parport_read_status(pp->port) & SIO)) ? 0 : 1 ); } + /*--------------------------------------------------------------------*/ #include "spi-bitbang-txrx.h" |