public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] spi: Remove unused definitions
@ 2014-08-06 17:53 Nick Krause
  2014-08-06 18:27 ` Valdis.Kletnieks
  2014-08-06 18:33 ` Greg KH
  0 siblings, 2 replies; 10+ messages in thread
From: Nick Krause @ 2014-08-06 17:53 UTC (permalink / raw)
  To: Richard Weinberger, Mark Brown, open list:SPI SUBSYSTEM,
	open list

Remove unused definition which cause the following warnings

drivers/spi/spi-omap-100k.c:73:0: warning: "WRITE" redefined [enabled by default]
include/linux/fs.h:193:0: note: this is the location of the previous definition
drivers/spi/spi-omap-100k.c:74:0: warning: "READ" redefined [enabled by default]
include/linux/fs.h:192:0: note: this is the location of the previous definition

Signed-off-by: Nick Krause <xerofoiffy@gmail.com>
---
 drivers/spi/spi-omap-100k.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/drivers/spi/spi-omap-100k.c b/drivers/spi/spi-omap-100k.c
index 5e91858..fb52276 100644
--- a/drivers/spi/spi-omap-100k.c
+++ b/drivers/spi/spi-omap-100k.c
@@ -70,10 +70,6 @@
 #define SPI_STATUS_WE                   (1UL << 1)
 #define SPI_STATUS_RD                   (1UL << 0)
 
-#define WRITE 0
-#define READ  1
-
-
 /* use PIO for small transfers, avoiding DMA setup/teardown overhead and
  * cache operations; better heuristics consider wordsize and bitrate.
  */
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-08-20 21:56 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-06 17:53 [PATCH 1/1] spi: Remove unused definitions Nick Krause
2014-08-06 18:27 ` Valdis.Kletnieks
2014-08-06 18:35   ` Ilia Mirkin
2014-08-06 18:50   ` Geert Uytterhoeven
2014-08-06 19:34     ` Mark Brown
2014-08-20 20:26   ` Pavel Machek
2014-08-20 21:12     ` Valdis.Kletnieks
2014-08-20 21:56       ` Pavel Machek
2014-08-06 18:33 ` Greg KH
2014-08-06 19:14   ` Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox