aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>2015-12-02 08:47:48 -0500
committerMark Brown <broonie@kernel.org>2015-12-02 14:38:16 -0500
commit1bfa91e9255065e8f5b8aef869eee57b8badf61e (patch)
tree4cd75e31173319a4c133181914d021dbd6f9c06d
parent8005c49d9aea74d382f474ce11afbbc7d7130bec (diff)
spi: butterfly: remove multiple blank lines
checkpatch complains about multiple blank lines. Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--drivers/spi/spi-butterfly.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/spi/spi-butterfly.c b/drivers/spi/spi-butterfly.c
index 9a95862986c8..f520eaa193c5 100644
--- a/drivers/spi/spi-butterfly.c
+++ b/drivers/spi/spi-butterfly.c
@@ -27,7 +27,6 @@
27 27
28#include <linux/mtd/partitions.h> 28#include <linux/mtd/partitions.h>
29 29
30
31/* 30/*
32 * This uses SPI to talk with an "AVR Butterfly", which is a $US20 card 31 * This uses SPI to talk with an "AVR Butterfly", which is a $US20 card
33 * with a battery powered AVR microcontroller and lots of goodies. You 32 * with a battery powered AVR microcontroller and lots of goodies. You
@@ -37,7 +36,6 @@
37 * and use this custom parallel port cable. 36 * and use this custom parallel port cable.
38 */ 37 */
39 38
40
41/* DATA output bits (pins 2..9 == D0..D7) */ 39/* DATA output bits (pins 2..9 == D0..D7) */
42#define butterfly_nreset (1 << 1) /* pin 3 */ 40#define butterfly_nreset (1 << 1) /* pin 3 */
43 41
@@ -52,14 +50,11 @@
52/* CONTROL output bits */ 50/* CONTROL output bits */
53#define spi_cs_bit PARPORT_CONTROL_SELECT /* pin 17 */ 51#define spi_cs_bit PARPORT_CONTROL_SELECT /* pin 17 */
54 52
55
56
57static inline struct butterfly *spidev_to_pp(struct spi_device *spi) 53static inline struct butterfly *spidev_to_pp(struct spi_device *spi)
58{ 54{
59 return spi->controller_data; 55 return spi->controller_data;
60} 56}
61 57
62
63struct butterfly { 58struct butterfly {
64 /* REVISIT ... for now, this must be first */ 59 /* REVISIT ... for now, this must be first */
65 struct spi_bitbang bitbang; 60 struct spi_bitbang bitbang;
@@ -140,7 +135,6 @@ static void butterfly_chipselect(struct spi_device *spi, int value)
140 parport_frob_control(pp->port, spi_cs_bit, value ? spi_cs_bit : 0); 135 parport_frob_control(pp->port, spi_cs_bit, value ? spi_cs_bit : 0);
141} 136}
142 137
143
144/* we only needed to implement one mode here, and choose SPI_MODE_0 */ 138/* we only needed to implement one mode here, and choose SPI_MODE_0 */
145 139
146#define spidelay(X) do { } while (0) 140#define spidelay(X) do { } while (0)
@@ -186,7 +180,6 @@ static struct flash_platform_data flash = {
186 .nr_parts = ARRAY_SIZE(partitions), 180 .nr_parts = ARRAY_SIZE(partitions),
187}; 181};
188 182
189
190/* REVISIT remove this ugly global and its "only one" limitation */ 183/* REVISIT remove this ugly global and its "only one" limitation */
191static struct butterfly *butterfly; 184static struct butterfly *butterfly;
192 185
@@ -262,7 +255,6 @@ static void butterfly_attach(struct parport *p)
262 parport_write_data(pp->port, pp->lastbyte); 255 parport_write_data(pp->port, pp->lastbyte);
263 msleep(100); 256 msleep(100);
264 257
265
266 /* 258 /*
267 * Start SPI ... for now, hide that we're two physical busses. 259 * Start SPI ... for now, hide that we're two physical busses.
268 */ 260 */
@@ -334,7 +326,6 @@ static struct parport_driver butterfly_driver = {
334 .detach = butterfly_detach, 326 .detach = butterfly_detach,
335}; 327};
336 328
337
338static int __init butterfly_init(void) 329static int __init butterfly_init(void)
339{ 330{
340 return parport_register_driver(&butterfly_driver); 331 return parport_register_driver(&butterfly_driver);