Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1bfa91e9 authored by Sudip Mukherjee's avatar Sudip Mukherjee Committed by Mark Brown
Browse files

spi: butterfly: remove multiple blank lines



checkpatch complains about multiple blank lines.

Signed-off-by: default avatarSudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 8005c49d
Loading
Loading
Loading
Loading
+0 −9
Original line number Original line Diff line number Diff line
@@ -27,7 +27,6 @@


#include <linux/mtd/partitions.h>
#include <linux/mtd/partitions.h>



/*
/*
 * This uses SPI to talk with an "AVR Butterfly", which is a $US20 card
 * This uses SPI to talk with an "AVR Butterfly", which is a $US20 card
 * with a battery powered AVR microcontroller and lots of goodies.  You
 * with a battery powered AVR microcontroller and lots of goodies.  You
@@ -37,7 +36,6 @@
 * and use this custom parallel port cable.
 * and use this custom parallel port cable.
 */
 */



/* DATA output bits (pins 2..9 == D0..D7) */
/* DATA output bits (pins 2..9 == D0..D7) */
#define	butterfly_nreset (1 << 1)		/* pin 3 */
#define	butterfly_nreset (1 << 1)		/* pin 3 */


@@ -52,14 +50,11 @@
/* CONTROL output bits */
/* CONTROL output bits */
#define	spi_cs_bit	PARPORT_CONTROL_SELECT	/* pin 17 */
#define	spi_cs_bit	PARPORT_CONTROL_SELECT	/* pin 17 */




static inline struct butterfly *spidev_to_pp(struct spi_device *spi)
static inline struct butterfly *spidev_to_pp(struct spi_device *spi)
{
{
	return spi->controller_data;
	return spi->controller_data;
}
}



struct butterfly {
struct butterfly {
	/* REVISIT ... for now, this must be first */
	/* REVISIT ... for now, this must be first */
	struct spi_bitbang	bitbang;
	struct spi_bitbang	bitbang;
@@ -140,7 +135,6 @@ static void butterfly_chipselect(struct spi_device *spi, int value)
	parport_frob_control(pp->port, spi_cs_bit, value ? spi_cs_bit : 0);
	parport_frob_control(pp->port, spi_cs_bit, value ? spi_cs_bit : 0);
}
}



/* we only needed to implement one mode here, and choose SPI_MODE_0 */
/* we only needed to implement one mode here, and choose SPI_MODE_0 */


#define spidelay(X)	do { } while (0)
#define spidelay(X)	do { } while (0)
@@ -186,7 +180,6 @@ static struct flash_platform_data flash = {
	.nr_parts	= ARRAY_SIZE(partitions),
	.nr_parts	= ARRAY_SIZE(partitions),
};
};



/* REVISIT remove this ugly global and its "only one" limitation */
/* REVISIT remove this ugly global and its "only one" limitation */
static struct butterfly *butterfly;
static struct butterfly *butterfly;


@@ -262,7 +255,6 @@ static void butterfly_attach(struct parport *p)
	parport_write_data(pp->port, pp->lastbyte);
	parport_write_data(pp->port, pp->lastbyte);
	msleep(100);
	msleep(100);



	/*
	/*
	 * Start SPI ... for now, hide that we're two physical busses.
	 * Start SPI ... for now, hide that we're two physical busses.
	 */
	 */
@@ -334,7 +326,6 @@ static struct parport_driver butterfly_driver = {
	.detach =	butterfly_detach,
	.detach =	butterfly_detach,
};
};



static int __init butterfly_init(void)
static int __init butterfly_init(void)
{
{
	return parport_register_driver(&butterfly_driver);
	return parport_register_driver(&butterfly_driver);