public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] serial: mxs_auart: Staticize local functions
@ 2013-10-15  2:52 Axel Lin
  2013-10-15 13:44 ` Marek Vasut
  2013-11-08 22:27 ` [U-Boot] " Tom Rini
  0 siblings, 2 replies; 4+ messages in thread
From: Axel Lin @ 2013-10-15  2:52 UTC (permalink / raw)
  To: u-boot

Staticize local functions in mxs_auart driver.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 drivers/serial/mxs_auart.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/serial/mxs_auart.c b/drivers/serial/mxs_auart.c
index 7cfe5bc..fc0fa96 100644
--- a/drivers/serial/mxs_auart.c
+++ b/drivers/serial/mxs_auart.c
@@ -40,7 +40,7 @@ static struct mxs_uartapp_regs *get_uartapp_registers(void)
  * Sets the baud rate and settings.
  * The settings are: 8 data bits, no parit and 1 stop bit.
  */
-void mxs_auart_setbrg(void)
+static void mxs_auart_setbrg(void)
 {
 	u32 div;
 	u32 linectrl = 0;
@@ -77,7 +77,7 @@ void mxs_auart_setbrg(void)
 	writel(linectrl, &regs->hw_uartapp_linectrl);
 }
 
-int mxs_auart_init(void)
+static int mxs_auart_init(void)
 {
 	struct mxs_uartapp_regs *regs = get_uartapp_registers();
 	/* Reset everything */
@@ -99,7 +99,7 @@ int mxs_auart_init(void)
 	return 0;
 }
 
-void mxs_auart_putc(const char c)
+static void mxs_auart_putc(const char c)
 {
 	struct mxs_uartapp_regs *regs = get_uartapp_registers();
 	/* Wait in loop while the transmit FIFO is full */
@@ -112,14 +112,14 @@ void mxs_auart_putc(const char c)
 		mxs_auart_putc('\r');
 }
 
-int mxs_auart_tstc(void)
+static int mxs_auart_tstc(void)
 {
 	struct mxs_uartapp_regs *regs = get_uartapp_registers();
 	/* Checks if receive FIFO is empty */
 	return !(readl(&regs->hw_uartapp_stat) & UARTAPP_STAT_RXFE_MASK);
 }
 
-int mxs_auart_getc(void)
+static int mxs_auart_getc(void)
 {
 	struct mxs_uartapp_regs *regs = get_uartapp_registers();
 	/* Wait until a character is available to read */
-- 
1.8.1.2

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

* [U-Boot] [PATCH] serial: mxs_auart: Staticize local functions
  2013-10-15  2:52 [U-Boot] [PATCH] serial: mxs_auart: Staticize local functions Axel Lin
@ 2013-10-15 13:44 ` Marek Vasut
  2013-10-16  0:51   ` Axel Lin
  2013-11-08 22:27 ` [U-Boot] " Tom Rini
  1 sibling, 1 reply; 4+ messages in thread
From: Marek Vasut @ 2013-10-15 13:44 UTC (permalink / raw)
  To: u-boot

Dear Axel Lin,

> Staticize local functions in mxs_auart driver.
> 
> Signed-off-by: Axel Lin <axel.lin@ingics.com>

Acked-by: Marek Vasut <marex@denx.de>

Just curious, how did you find this? Did you lint the files with some tool?

> ---
>  drivers/serial/mxs_auart.c | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/drivers/serial/mxs_auart.c b/drivers/serial/mxs_auart.c
> index 7cfe5bc..fc0fa96 100644
> --- a/drivers/serial/mxs_auart.c
> +++ b/drivers/serial/mxs_auart.c
> @@ -40,7 +40,7 @@ static struct mxs_uartapp_regs
> *get_uartapp_registers(void) * Sets the baud rate and settings.
>   * The settings are: 8 data bits, no parit and 1 stop bit.
>   */
> -void mxs_auart_setbrg(void)
> +static void mxs_auart_setbrg(void)
>  {
>  	u32 div;
>  	u32 linectrl = 0;
> @@ -77,7 +77,7 @@ void mxs_auart_setbrg(void)
>  	writel(linectrl, &regs->hw_uartapp_linectrl);
>  }
> 
> -int mxs_auart_init(void)
> +static int mxs_auart_init(void)
>  {
>  	struct mxs_uartapp_regs *regs = get_uartapp_registers();
>  	/* Reset everything */
> @@ -99,7 +99,7 @@ int mxs_auart_init(void)
>  	return 0;
>  }
> 
> -void mxs_auart_putc(const char c)
> +static void mxs_auart_putc(const char c)
>  {
>  	struct mxs_uartapp_regs *regs = get_uartapp_registers();
>  	/* Wait in loop while the transmit FIFO is full */
> @@ -112,14 +112,14 @@ void mxs_auart_putc(const char c)
>  		mxs_auart_putc('\r');
>  }
> 
> -int mxs_auart_tstc(void)
> +static int mxs_auart_tstc(void)
>  {
>  	struct mxs_uartapp_regs *regs = get_uartapp_registers();
>  	/* Checks if receive FIFO is empty */
>  	return !(readl(&regs->hw_uartapp_stat) & UARTAPP_STAT_RXFE_MASK);
>  }
> 
> -int mxs_auart_getc(void)
> +static int mxs_auart_getc(void)
>  {
>  	struct mxs_uartapp_regs *regs = get_uartapp_registers();
>  	/* Wait until a character is available to read */

Best regards,
Marek Vasut

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

* [U-Boot] [PATCH] serial: mxs_auart: Staticize local functions
  2013-10-15 13:44 ` Marek Vasut
@ 2013-10-16  0:51   ` Axel Lin
  0 siblings, 0 replies; 4+ messages in thread
From: Axel Lin @ 2013-10-16  0:51 UTC (permalink / raw)
  To: u-boot

2013/10/15 Marek Vasut <marex@denx.de>:
> Dear Axel Lin,
>
>> Staticize local functions in mxs_auart driver.
>>
>> Signed-off-by: Axel Lin <axel.lin@ingics.com>
>
> Acked-by: Marek Vasut <marex@denx.de>
>
> Just curious, how did you find this? Did you lint the files with some tool?
I just read the code.

Regards,
Axel

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

* [U-Boot] serial: mxs_auart: Staticize local functions
  2013-10-15  2:52 [U-Boot] [PATCH] serial: mxs_auart: Staticize local functions Axel Lin
  2013-10-15 13:44 ` Marek Vasut
@ 2013-11-08 22:27 ` Tom Rini
  1 sibling, 0 replies; 4+ messages in thread
From: Tom Rini @ 2013-11-08 22:27 UTC (permalink / raw)
  To: u-boot

On Tue, Oct 15, 2013 at 10:52:35AM +0800, Axel Lin wrote:
> Staticize local functions in mxs_auart driver.
> 
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
> Acked-by: Marek Vasut <marex@denx.de>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20131108/ba94798c/attachment.pgp>

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

end of thread, other threads:[~2013-11-08 22:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-15  2:52 [U-Boot] [PATCH] serial: mxs_auart: Staticize local functions Axel Lin
2013-10-15 13:44 ` Marek Vasut
2013-10-16  0:51   ` Axel Lin
2013-11-08 22:27 ` [U-Boot] " Tom Rini

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