Skip to contentSkip to conversation

serial: ns16550: Remove unused fields from NS16550_plat structure

PATCH Applied Alexander Shiyan 2 participants 3 messages Oct 30, 2014 – Nov 3, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 serial: ns16550: Remove unused fields from NS16550_plat structure

---
 include/ns16550.h | 3 ---
 1 file changed, 3 deletions(-)
include/ns16550.h +0 -3
index 876bb04..ccf950b 100644
@@ -34,9 +34,6 @@ struct NS16550_plat {
 	/** Clock speed */
 	unsigned int clock;
 	int shift;
-	unsigned int flags;
-	int mmio;
-#define NS16650_FLAG_DISABLE_FIFO	1
 };
 
 #endif				/* __NS16650_PLATFORM_H_ */
Signature · 7 lines
2.0.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#1 lore raw
Quoted 4 lines · Alexander Shiyan
---
 include/ns16550.h | 3 ---
 1 file changed, 3 deletions(-)

Applied, thanks

Sascha

Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#2 lore raw
In reply to Alexander Shiyan

Hi Alexander,

Quoted 10 lines · Alexander Shiyan
---
 include/ns16550.h | 3 ---
 1 file changed, 3 deletions(-)
include/ns16550.h +0 -0
index 876bb04..ccf950b 100644

include/ns16550.h struct NS16550_plat { · line 37

Quoted 7 lines
include/ns16550.h +0 -3
@@ -34,9 +34,6 @@ struct NS16550_plat {
 	/** Clock speed */
 	unsigned int clock;
 	int shift;
-	unsigned int flags;
-	int mmio;
-#define NS16650_FLAG_DISABLE_FIFO	1
 };

This patch removes flags but not its usage in the driver itself.

Squashed this into the commit:

From 668db8bea2c201c3cbdb096cac58287d7b38f396 Mon Sep 17 00:00:00 2001
From: Sascha Hauer <[email protected]>
Date: Mon, 3 Nov 2014 13:24:15 +0100
Subject: [PATCH] fixup! serial: ns16550: Remove unused fields from
NS16550_plat structure

---
 drivers/serial/serial_ns16550.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/serial/serial_ns16550.c +1 -4
index 4ca7444..53d48a0 100644
@@ -441,10 +441,7 @@ static int ns16550_probe(struct device_d *dev)
 	cdev->setbrg = ns16550_setbaudrate;
 	cdev->linux_console_name = devtype->linux_console_name;
 
-	if (plat && (plat->flags & NS16650_FLAG_DISABLE_FIFO))
-		priv->fcrval = FCRVAL & ~FCR_FIFO_EN;
-	else
-		priv->fcrval = FCRVAL;
+	priv->fcrval = FCRVAL;
 
 	devtype->init_port(cdev);
 
Signature · 12 lines
2.1.1

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox