From: Nishanth Menon <nm@ti.com>
To: "Pandita, Vikram" <vikram.pandita@ti.com>
Cc: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: [PATCH] omap: serial: fix coding style indentaion
Date: Thu, 7 Jan 2010 13:06:59 -0600 [thread overview]
Message-ID: <4B4630D3.4010100@ti.com> (raw)
In-Reply-To: <1262890159-22878-1-git-send-email-vikram.pandita@ti.com>
Pandita, Vikram had written, on 01/07/2010 12:49 PM, the following:
> Just fix coding style indentaion as per checkpatch
> No logical code change.
>
> Signed-off-by: Vikram Pandita <vikram.pandita@ti.com>
> ---
> arch/arm/mach-omap2/serial.c | 18 +++++++++---------
> 1 files changed, 9 insertions(+), 9 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c
> index 8c964be..467e5de 100644
> --- a/arch/arm/mach-omap2/serial.c
> +++ b/arch/arm/mach-omap2/serial.c
> @@ -694,15 +694,15 @@ void __init omap_serial_init_port(int port)
> DEV_CREATE_FILE(dev, &dev_attr_sleep_timeout);
> }
>
> - /* omap44xx: Never read empty UART fifo
> - * omap3xxx: Never read empty UART fifo on UARTs
> - * with IP rev >=0x52
> - */
> - if (cpu_is_omap44xx())
> - uart->p->serial_in = serial_in_override;
> - else if ((serial_read_reg(uart->p, UART_OMAP_MVER) & 0xFF)
> - >= UART_OMAP_NO_EMPTY_FIFO_READ_IP_REV)
> - uart->p->serial_in = serial_in_override;
> + /* omap44xx: Never read empty UART fifo
> + * omap3xxx: Never read empty UART fifo on UARTs
> + * with IP rev >=0x52
> + */
Since you are fixing the coding style, ;) multiline comment goes:
/*
* tada tada
*/
Ref: Documentation/CodingStyle Chapter 8: Commenting
> + if (cpu_is_omap44xx())
> + uart->p->serial_in = serial_in_override;
> + else if ((serial_read_reg(uart->p, UART_OMAP_MVER) & 0xFF)
> + >= UART_OMAP_NO_EMPTY_FIFO_READ_IP_REV)
> + uart->p->serial_in = serial_in_override;
> }
>
> /**
--
Regards,
Nishanth Menon
prev parent reply other threads:[~2010-01-07 19:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-07 18:49 [PATCH] omap: serial: fix coding style indentaion Vikram Pandita
2010-01-07 19:06 ` Nishanth Menon [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B4630D3.4010100@ti.com \
--to=nm@ti.com \
--cc=linux-omap@vger.kernel.org \
--cc=vikram.pandita@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox