From: Greg Kroah-Hartman <greg@kroah.com>
To: Conrad Meyer <cemeyer@uw.edu>
Cc: Ian Abbott <abbotti@mev.co.uk>,
H Hartley Sweeten <hsweeten@visionengravers.com>,
devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Staging: comedi: Fix 80-char line limit style issue in addi_apci_1500.c
Date: Sat, 8 Mar 2014 12:25:23 -0800 [thread overview]
Message-ID: <20140308202523.GA11367@kroah.com> (raw)
In-Reply-To: <20140308143838.19e2a640@m>
On Sat, Mar 08, 2014 at 02:38:38PM -0500, Conrad Meyer wrote:
> Fix minor checkpatch.pl style issues (80-char line limits) in
> addi_apci_1500.c.
>
> Signed-off-by: Conrad Meyer <cse.cem@gmail.com>
> ---
> drivers/staging/comedi/drivers/addi_apci_1500.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/staging/comedi/drivers/addi_apci_1500.c b/drivers/staging/comedi/drivers/addi_apci_1500.c
> index 74f7ace..f23ca3d 100644
> --- a/drivers/staging/comedi/drivers/addi_apci_1500.c
> +++ b/drivers/staging/comedi/drivers/addi_apci_1500.c
> @@ -26,11 +26,13 @@ static const struct addi_board apci1500_boardtypes[] = {
> .di_read = i_APCI1500_Initialisation,
> .di_write = i_APCI1500_StartStopInputEvent,
> .di_bits = apci1500_di_insn_bits,
> - .do_config = i_APCI1500_ConfigDigitalOutputErrorInterrupt,
> + .do_config =
> + i_APCI1500_ConfigDigitalOutputErrorInterrupt,
No, as horrible as too long of a line it might be, this is worse. How
about renaming the function to be more "sane" which would cause it to be
shorter here, fixing the line limit.
Something like config_output() would be better, right?
> .do_write = i_APCI1500_WriteDigitalOutput,
> .do_bits = i_APCI1500_ConfigureInterrupt,
> .timer_config = i_APCI1500_ConfigCounterTimerWatchdog,
> - .timer_write = i_APCI1500_StartStopTriggerTimerCounterWatchdog,
> + .timer_write =
> + i_APCI1500_StartStopTriggerTimerCounterWatchdog,
Same here, "timer_watchdog()"?
thanks,
greg k-h
prev parent reply other threads:[~2014-03-08 20:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-08 19:38 [PATCH] Staging: comedi: Fix 80-char line limit style issue in addi_apci_1500.c Conrad Meyer
2014-03-08 20:25 ` Greg Kroah-Hartman [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=20140308202523.GA11367@kroah.com \
--to=greg@kroah.com \
--cc=abbotti@mev.co.uk \
--cc=cemeyer@uw.edu \
--cc=devel@driverdev.osuosl.org \
--cc=hsweeten@visionengravers.com \
--cc=linux-kernel@vger.kernel.org \
/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