Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1411014 > unrolled thread

[PATCH 2649/2649] Staging: comedi : fixed a camel case style issue

Started byAshwin Ravichandran <ashwinravichandran24@gmail.com>
First post2016-06-01 11:30 +0200
Last post2016-06-01 11:40 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH 2649/2649] Staging: comedi :  fixed a camel case style issue Ashwin Ravichandran <ashwinravichandran24@gmail.com> - 2016-06-01 11:30 +0200
    Re: [PATCH 2649/2649] Staging: comedi : fixed a camel case style  issue Ian Abbott <abbotti@mev.co.uk> - 2016-06-01 11:40 +0200

#1411014 — [PATCH 2649/2649] Staging: comedi : fixed a camel case style issue

FromAshwin Ravichandran <ashwinravichandran24@gmail.com>
Date2016-06-01 11:30 +0200
Subject[PATCH 2649/2649] Staging: comedi : fixed a camel case style issue
Message-ID<rFaDn-6Ci-11@gated-at.bofh.it>
Fixed a coding style issue.

Signed-off-by: Ashwin Ravichandran <ashwinravichandran24@gmail.com>
---
 drivers/staging/comedi/drivers/addi-data/hwdrv_apci3501.c | 2 +-
 drivers/staging/comedi/drivers/addi_apci_3501.c           | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/comedi/drivers/addi-data/hwdrv_apci3501.c b/drivers/staging/comedi/drivers/addi-data/hwdrv_apci3501.c
index 3757074..9c27999 100644
--- a/drivers/staging/comedi/drivers/addi-data/hwdrv_apci3501.c
+++ b/drivers/staging/comedi/drivers/addi-data/hwdrv_apci3501.c
@@ -28,7 +28,7 @@ static int apci3501_config_insn_timer(struct comedi_device *dev,
 	    data[0] != ADDIDATA_TIMER)
 		return -EINVAL;
 
-	devpriv->tsk_Current = current;
+	devpriv->tsk_current = current;
 
 	devpriv->timer_mode = data[0];
 
diff --git a/drivers/staging/comedi/drivers/addi_apci_3501.c b/drivers/staging/comedi/drivers/addi_apci_3501.c
index 40ff914..b2f6712 100644
--- a/drivers/staging/comedi/drivers/addi_apci_3501.c
+++ b/drivers/staging/comedi/drivers/addi_apci_3501.c
@@ -68,7 +68,7 @@
 struct apci3501_private {
 	unsigned long amcc;
 	unsigned long tcw;
-	struct task_struct *tsk_Current;
+	struct task_struct *tsk_current;
 	unsigned char timer_mode;
 };
 
@@ -273,7 +273,7 @@ static irqreturn_t apci3501_interrupt(int irq, void *d)
 	}
 
 	/* Enable Interrupt Send a signal to from kernel to user space */
-	send_sig(SIGIO, devpriv->tsk_Current, 0);
+	send_sig(SIGIO, devpriv->tsk_current, 0);
 	ctrl = inl(devpriv->tcw + ADDI_TCW_CTRL_REG);
 	ctrl &= ~(ADDI_TCW_CTRL_GATE | ADDI_TCW_CTRL_TRIG |
 		  ADDI_TCW_CTRL_IRQ_ENA);
-- 
2.7.4

[toc] | [next] | [standalone]


#1411033 — Re: [PATCH 2649/2649] Staging: comedi : fixed a camel case style issue

FromIan Abbott <abbotti@mev.co.uk>
Date2016-06-01 11:40 +0200
SubjectRe: [PATCH 2649/2649] Staging: comedi : fixed a camel case style issue
Message-ID<rFaN4-6FG-37@gated-at.bofh.it>
In reply to#1411014
On 01/06/16 10:19, Ashwin Ravichandran wrote:
> Fixed a coding style issue.
>
> Signed-off-by: Ashwin Ravichandran <ashwinravichandran24@gmail.com>
> ---
>   drivers/staging/comedi/drivers/addi-data/hwdrv_apci3501.c | 2 +-
>   drivers/staging/comedi/drivers/addi_apci_3501.c           | 4 ++--
>   2 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/staging/comedi/drivers/addi-data/hwdrv_apci3501.c b/drivers/staging/comedi/drivers/addi-data/hwdrv_apci3501.c
> index 3757074..9c27999 100644
> --- a/drivers/staging/comedi/drivers/addi-data/hwdrv_apci3501.c
> +++ b/drivers/staging/comedi/drivers/addi-data/hwdrv_apci3501.c
> @@ -28,7 +28,7 @@ static int apci3501_config_insn_timer(struct comedi_device *dev,
>   	    data[0] != ADDIDATA_TIMER)
>   		return -EINVAL;
>
> -	devpriv->tsk_Current = current;
> +	devpriv->tsk_current = current;
>
>   	devpriv->timer_mode = data[0];
>
> diff --git a/drivers/staging/comedi/drivers/addi_apci_3501.c b/drivers/staging/comedi/drivers/addi_apci_3501.c
> index 40ff914..b2f6712 100644
> --- a/drivers/staging/comedi/drivers/addi_apci_3501.c
> +++ b/drivers/staging/comedi/drivers/addi_apci_3501.c
> @@ -68,7 +68,7 @@
>   struct apci3501_private {
>   	unsigned long amcc;
>   	unsigned long tcw;
> -	struct task_struct *tsk_Current;
> +	struct task_struct *tsk_current;
>   	unsigned char timer_mode;
>   };
>
> @@ -273,7 +273,7 @@ static irqreturn_t apci3501_interrupt(int irq, void *d)
>   	}
>
>   	/* Enable Interrupt Send a signal to from kernel to user space */
> -	send_sig(SIGIO, devpriv->tsk_Current, 0);
> +	send_sig(SIGIO, devpriv->tsk_current, 0);
>   	ctrl = inl(devpriv->tcw + ADDI_TCW_CTRL_REG);
>   	ctrl &= ~(ADDI_TCW_CTRL_GATE | ADDI_TCW_CTRL_TRIG |
>   		  ADDI_TCW_CTRL_IRQ_ENA);
>

The patch looks fine (although this odd-ball Comedi driver shouldn't 
really be sending signals to a user-space task!).

Is this really PATCH 2649/2649?

Reviewed-by: Ian Abbott <abbotti@mev.co.uk>

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

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web