From: Ian Abbott <abbotti@mev.co.uk>
To: Ranjith Thangavel <ranjithece24@gmail.com>, gregkh@linuxfoundation.org
Cc: hsweeten@visionengravers.com, hgujulan@visteon.com,
devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] comedi: gsc_hpdi: Fix coding style - use kernel type definitions for variables
Date: Wed, 18 Nov 2015 15:53:13 +0000 [thread overview]
Message-ID: <564C9EE9.9070809@mev.co.uk> (raw)
In-Reply-To: <1447521673-23985-1-git-send-email-ranjithece24@gmail.com>
On 14/11/15 17:21, Ranjith Thangavel wrote:
> kernel type definitions are preferred for variables over
> standard type definitions
>
> Signed-off-by: Ranjith Thangavel <ranjithece24@gmail.com>
> ---
> drivers/staging/comedi/drivers/gsc_hpdi.c | 20 ++++++++++----------
> 1 file changed, 10 insertions(+), 10 deletions(-)
>
> diff --git a/drivers/staging/comedi/drivers/gsc_hpdi.c b/drivers/staging/comedi/drivers/gsc_hpdi.c
> index e929618..cc67a07 100644
> --- a/drivers/staging/comedi/drivers/gsc_hpdi.c
> +++ b/drivers/staging/comedi/drivers/gsc_hpdi.c
> @@ -125,7 +125,7 @@
>
> struct hpdi_private {
> void __iomem *plx9080_mmio;
> - uint32_t *dio_buffer[NUM_DMA_BUFFERS]; /* dma buffers */
> + u32 *dio_buffer[NUM_DMA_BUFFERS]; /* dma buffers */
> /* physical addresses of dma buffers */
> dma_addr_t dio_buffer_phys_addr[NUM_DMA_BUFFERS];
> /*
> @@ -137,7 +137,7 @@ struct hpdi_private {
> dma_addr_t dma_desc_phys_addr;
> unsigned int num_dma_descriptors;
> /* pointer to start of buffers indexed by descriptor */
> - uint32_t *desc_dio_buffer[NUM_DMA_DESCRIPTORS];
> + u32 *desc_dio_buffer[NUM_DMA_DESCRIPTORS];
> /* index of the dma descriptor that is currently being used */
> unsigned int dma_desc_index;
> unsigned int tx_fifo_size;
> @@ -192,10 +192,10 @@ static irqreturn_t gsc_hpdi_interrupt(int irq, void *d)
> struct hpdi_private *devpriv = dev->private;
> struct comedi_subdevice *s = dev->read_subdev;
> struct comedi_async *async = s->async;
> - uint32_t hpdi_intr_status, hpdi_board_status;
> - uint32_t plx_status;
> - uint32_t plx_bits;
> - uint8_t dma0_status, dma1_status;
> + u32 hpdi_intr_status, hpdi_board_status;
> + u32 plx_status;
> + u32 plx_bits;
> + u8 dma0_status, dma1_status;
> unsigned long flags;
>
> if (!dev->attached)
> @@ -290,7 +290,7 @@ static int gsc_hpdi_cmd(struct comedi_device *dev,
> struct comedi_async *async = s->async;
> struct comedi_cmd *cmd = &async->cmd;
> unsigned long flags;
> - uint32_t bits;
> + u32 bits;
>
> if (s->io_bits)
> return -EINVAL;
> @@ -424,7 +424,7 @@ static int gsc_hpdi_setup_dma_descriptors(struct comedi_device *dev,
> {
> struct hpdi_private *devpriv = dev->private;
> dma_addr_t phys_addr = devpriv->dma_desc_phys_addr;
> - uint32_t next_bits = PLX_DESC_IN_PCI_BIT | PLX_INTR_TERM_COUNT |
> + u32 next_bits = PLX_DESC_IN_PCI_BIT | PLX_INTR_TERM_COUNT |
> PLX_XFER_LOCAL_TO_PCI;
> unsigned int offset = 0;
> unsigned int idx = 0;
> @@ -516,7 +516,7 @@ static void gsc_hpdi_free_dma(struct comedi_device *dev)
> static int gsc_hpdi_init(struct comedi_device *dev)
> {
> struct hpdi_private *devpriv = dev->private;
> - uint32_t plx_intcsr_bits;
> + u32 plx_intcsr_bits;
>
> /* wait 10usec after reset before accessing fifos */
> writel(BOARD_RESET_BIT, dev->mmio + BOARD_CONTROL_REG);
> @@ -546,7 +546,7 @@ static int gsc_hpdi_init(struct comedi_device *dev)
> static void gsc_hpdi_init_plx9080(struct comedi_device *dev)
> {
> struct hpdi_private *devpriv = dev->private;
> - uint32_t bits;
> + u32 bits;
> void __iomem *plx_iobase = devpriv->plx9080_mmio;
>
> #ifdef __BIG_ENDIAN
>
Thanks!
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
--
-=( Ian Abbott @ MEV Ltd. E-mail: <abbotti@mev.co.uk> )=-
-=( Web: http://www.mev.co.uk/ )=-
prev parent reply other threads:[~2015-11-18 15:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-14 17:21 [PATCH] comedi: gsc_hpdi: Fix coding style - use kernel type definitions for variables Ranjith Thangavel
2015-11-18 15:53 ` Ian Abbott [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=564C9EE9.9070809@mev.co.uk \
--to=abbotti@mev.co.uk \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=hgujulan@visteon.com \
--cc=hsweeten@visionengravers.com \
--cc=linux-kernel@vger.kernel.org \
--cc=ranjithece24@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