[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20111023202008.GB27802@n2100.arm.linux.org.uk>
Date: Sun, 23 Oct 2011 21:20:08 +0100
From: Russell King - ARM Linux <linux@....linux.org.uk>
To: Paul Schilling <paul.s.schilling@...il.com>
Cc: Ben Dooks <ben-linux@...ff.org>,
Kukjin Kim <kgene.kim@...sung.com>,
Alan Cox <alan@...ux.intel.com>,
Greg Kroah-Hartman <gregkh@...e.de>,
Boojin Kim <boojin.kim@...sung.com>,
Nicolas Pitre <nicolas.pitre@...aro.org>,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
linux-serial@...r.kernel.org
Subject: Re: [PATCH 02/14] ARM : SAMSUNG : Add RS485 support.
On Sun, Oct 23, 2011 at 12:12:13PM -0500, Paul Schilling wrote:
> On Sat, Oct 22, 2011 at 8:47 AM, Russell King - ARM Linux
> <linux@....linux.org.uk> wrote:
> >> + } else {
> >> + /* Set a short timer to toggle RTS */
> >> + mod_timer(
> >> + &(ourport->rs485_tx_timer),
> >> + jiffies + usecs_to_jiffies(
> >> + ourport->char_time_usec
> >> + / 10));
> >
> > This could do with being better formatted. Also, & doesn't need following
> > parens.
>
> when I ran checkpatch it complained that it exceeded 80 characters. I
> had trouble keeping this line
> under 80 characters.
} else {
mod_timer(&our_port->rs485_tx_timer, jiffies +
usecs_to_jiffies(ourport->char_time_usec
/ 10));
is probably a better way to format it.
> >> - if (port->flags & UPF_CONS_FLOW)
> >> + if (port->flags & UPF_CONS_FLOW) {
> >> s3c24xx_serial_rx_enable(port);
> >> + }
> >
> > Why are you reformatting code?
>
> I will remove the reformatting of the code.
If you wish to reformat the code to clean up checkpatch warnings, then that
needs to be a separate patch from any other changes.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists