From: Jeremiah Mahler <jmmahler@gmail.com>
To: Sage Vaillancourt <sagev9000@gmail.com>
Cc: abbotti@mev.co.uk, hsweeten@visionengravers.com,
gregkh@linuxfoundation.org, chase.southwood@gmail.com,
ebru.akagunduz@gmail.com, devel@driverdev.osuosl.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Staging: comedi: fix spacing issues in ni_stc.h
Date: Sat, 20 Dec 2014 23:12:13 -0800 [thread overview]
Message-ID: <20141221071213.GA10123@hudson.localdomain> (raw)
In-Reply-To: <1419127314-5743-1-git-send-email-sagev9000@gmail.com>
Sage,
On Sat, Dec 20, 2014 at 09:01:54PM -0500, Sage Vaillancourt wrote:
> Patch to the ni_stc.h file that removes spaces before tabs, and adds blank lines
> after declarations.
> Signed-off-by: Sage Vaillancourt <sagev9000@gmail.com>
Format your log message so it is no more than 80 characters wide (I like
72) and remove the gratuitous spacing on the second line.
Put a blank line between your log message and your Signed-off-by:
This patch is doing two things: adding blank lines and fixing
spaces/tabs in a line. Break it up in to two patches.
> ---
> drivers/staging/comedi/drivers/ni_stc.h | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/staging/comedi/drivers/ni_stc.h b/drivers/staging/comedi/drivers/ni_stc.h
> index bd69c3f..3b8b3c5 100644
> --- a/drivers/staging/comedi/drivers/ni_stc.h
> +++ b/drivers/staging/comedi/drivers/ni_stc.h
> @@ -166,7 +166,7 @@ enum Interrupt_B_Ack_Bits {
> #define AI_SCAN_IN_PROG_Pulse _bit4
> #define AI_EXTMUX_CLK_Pulse _bit3
> #define AI_LOCALMUX_CLK_Pulse _bit2
> -#define AI_SC_TC_Pulse _bit1
> +#define AI_SC_TC_Pulse _bit1
> #define AI_CONVERT_Pulse _bit0
>
> #define AO_Command_1_Register 9
> @@ -326,6 +326,7 @@ static inline unsigned RTSI_Output_Bit(unsigned channel, int is_mseries)
> {
> unsigned max_channel;
> unsigned base_bit_shift;
> +
> if (is_mseries) {
> base_bit_shift = 8;
> max_channel = 7;
> @@ -642,7 +643,7 @@ static unsigned AO_UPDATE_Output_Select(enum ao_update_output_selection
> #define G_Load_Source_Select _bit7
> #define G_Reload_Source_Switching _bit15
> #define G_Loading_On_Gate _bit14
> -#define G_Gate_Polarity _bit13
> +#define G_Gate_Polarity _bit13
>
> #define G_Counting_Once(a) (((a)&0x03)<<10)
> #define G_Stop_Mode(a) (((a)&0x03)<<5)
> @@ -1142,6 +1143,7 @@ static inline unsigned MSeries_AI_Config_Bank_Bits(enum ni_reg_type reg_type,
> unsigned channel)
> {
> unsigned bits = channel & 0x30;
> +
> if (reg_type == ni_reg_622x) {
> if (channel & 0x40)
> bits |= 0x400;
> @@ -1191,6 +1193,7 @@ enum MSeries_PLL_Control_Bits {
> static inline unsigned MSeries_PLL_Divisor_Bits(unsigned divisor)
> {
> static const unsigned max_divisor = 0x10;
> +
> if (divisor < 1 || divisor > max_divisor) {
> pr_err("%s: bug, invalid divisor=%i\n", __func__, divisor);
> return 0;
> @@ -1201,6 +1204,7 @@ static inline unsigned MSeries_PLL_Divisor_Bits(unsigned divisor)
> static inline unsigned MSeries_PLL_Multiplier_Bits(unsigned multiplier)
> {
> static const unsigned max_multiplier = 0x100;
> +
> if (multiplier < 1 || multiplier > max_multiplier) {
> pr_err("%s: bug, invalid multiplier=%i\n", __func__,
> multiplier);
> --
> 2.2.0
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
--
- Jeremiah Mahler
next prev parent reply other threads:[~2014-12-21 7:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-21 2:01 Sage Vaillancourt
2014-12-21 7:12 ` Jeremiah Mahler [this message]
[not found] ` <CAO0vjfQ7NqH-c2CjerFk0S=06FjKcdZNd2igTuwmGo0Y+x_XCw@mail.gmail.com>
2014-12-21 8:21 ` Jeremiah Mahler
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=20141221071213.GA10123@hudson.localdomain \
--to=jmmahler@gmail.com \
--cc=abbotti@mev.co.uk \
--cc=chase.southwood@gmail.com \
--cc=devel@driverdev.osuosl.org \
--cc=ebru.akagunduz@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=hsweeten@visionengravers.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sagev9000@gmail.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
all inboxes | Powered by JetHome®