All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Abbott <abbotti@mev.co.uk>
To: Ravishankar Karkala Mallikarjunayya <ravishankarkm32@gmail.com>,
	hsweeten@visionengravers.com, gregkh@linuxfoundation.org
Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 3/4] Staging: comedi: fix type issue in s626.c
Date: Mon, 16 May 2016 11:07:51 +0100	[thread overview]
Message-ID: <57399BF7.50105@mev.co.uk> (raw)
In-Reply-To: <1463036375-13527-3-git-send-email-ravishankarkm32@gmail.com>

On 12/05/16 07:59, Ravishankar Karkala Mallikarjunayya wrote:
> This is a patch to the s626.c file that fixes up a type issues
> found by the checkpatch.pl tool.
>
> i.e Prefer kernel type 'u8' over 'uint8_t'
>      Prefer kernel type 'u16' over 'uint16_t'
>      Prefer kernel type 'u32' over 'uint32_t'
>      Prefer kernel type 's16' over 'int16_t'
>      Prefer kernel type 's32' over 'int32_t'
>
> Signed-off-by: Ravishankar Karkala Mallikarjunayya <ravishankarkm32@gmail.com>
> ---
>   drivers/staging/comedi/drivers/s626.c | 150 +++++++++++++++++-----------------
>   1 file changed, 75 insertions(+), 75 deletions(-)
>
> diff --git a/drivers/staging/comedi/drivers/s626.c b/drivers/staging/comedi/drivers/s626.c
> index 13f302d..fb27089 100644
> --- a/drivers/staging/comedi/drivers/s626.c
> +++ b/drivers/staging/comedi/drivers/s626.c
> @@ -75,7 +75,7 @@ struct s626_buffer_dma {
>   };
>
>   struct s626_private {
> -	uint8_t ai_cmd_running;		/* ai_cmd is running */
> +	u8 ai_cmd_running;		/* ai_cmd is running */
>   	unsigned int ai_sample_timer;	/* time between samples in
>   					 * units of the timer
>   					 */
> @@ -83,22 +83,22 @@ struct s626_private {
>   	unsigned int ai_convert_timer;	/* time between conversion in
>   					 * units of the timer
>   					 */
> -	uint16_t counter_int_enabs;	/* counter interrupt enable mask
> +	u16 counter_int_enabs;		/* counter interrupt enable mask
>   					 * for MISC2 register
>   					 */
> -	uint8_t adc_items;		/* number of items in ADC poll list */
> +	u8 adc_items;		/* number of items in ADC poll list */
>   	struct s626_buffer_dma rps_buf;	/* DMA buffer used to hold ADC (RPS1)
>   					 * program
>   					 */
>   	struct s626_buffer_dma ana_buf;	/* DMA buffer used to receive ADC data
>   					 * and hold DAC data
>   					 */
> -	uint32_t *dac_wbuf;		/* pointer to logical adrs of DMA buffer
> +	u32 *dac_wbuf;		/* pointer to logical adrs of DMA buffer
>   					 * used to hold DAC data
>   					 */
> -	uint16_t dacpol;		/* image of DAC polarity register */
> -	uint8_t trim_setpoint[12];	/* images of TrimDAC setpoints */
> -	uint32_t i2c_adrs;		/* I2C device address for onboard EEPROM
> +	u16 dacpol;		/* image of DAC polarity register */
> +	u8 trim_setpoint[12];	/* images of TrimDAC setpoints */
> +	u32 i2c_adrs;		/* I2C device address for onboard EEPROM
>   					 * (board rev dependent)
>   					 */
>   };

The patch is reasonable, but messes up the alignment of those comments, 
especially the multi-line comments.

-- 
-=( Ian Abbott @ MEV Ltd.    E-mail: <abbotti@mev.co.uk> )=-
-=(                          Web: http://www.mev.co.uk/  )=-

  reply	other threads:[~2016-05-16 10:16 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-12  6:59 [PATCH 1/4] Staging: comedi: Fix WARNING issue in s626.c Ravishankar Karkala Mallikarjunayya
2016-05-12  6:59 ` [PATCH 2/4] Staging: comedi:Fix checkpatch " Ravishankar Karkala Mallikarjunayya
2016-05-16 10:02   ` Ian Abbott
2016-05-12  6:59 ` [PATCH 3/4] Staging: comedi: fix type " Ravishankar Karkala Mallikarjunayya
2016-05-16 10:07   ` Ian Abbott [this message]
2016-05-12  6:59 ` [PATCH 4/4] Staging: comedi: fix line over 80 characters " Ravishankar Karkala Mallikarjunayya
2016-05-16 10:09   ` Ian Abbott
2016-05-16 10:02 ` [PATCH 1/4] Staging: comedi: Fix WARNING " Ian Abbott

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=57399BF7.50105@mev.co.uk \
    --to=abbotti@mev.co.uk \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=hsweeten@visionengravers.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ravishankarkm32@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.