Re: [PATCH] staging: comedi: hwdrv_apci1500: use dev->class_dev in calls to dev_warn()

2014-09-04 Thread Ian Abbott
On 2014-09-04 00:58, Chase Southwood wrote: git-grep reveals that hwdrv_apci1500.c is the only file in comedi that uses dev->hw_dev in calls to dev_{err,warn}(). The rest of the drivers pass dev->class_dev to these macros instead. Switch the dev_warn() calls in this driver to use dev->class_dev

[PATCH] [next-20140903] staging: emxx_udc: remove check for CONFIG_MACH_EMGR

2014-09-04 Thread Paul Bolle
There's a check for CONFIG_MACH_EMGR. But the Kconfig symbol MACH_EMGR doesn't exist. Remove that check and the single #define it hides. Note that this macro isn't used by this driver anyway. Signed-off-by: Paul Bolle --- Compile tested only (on x86_64). drivers/staging/emxx_udc/emxx_udc.h | 4

staging: android: uapi: binder.h: Used __packed instead of __attribute__((packed))

2014-09-04 Thread Dipak Zope
Signed-off-by: Dipak Zope --- drivers/staging/android/uapi/binder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/android/uapi/binder.h b/drivers/staging/android/uapi/binder.h index 904adb7..dba4cef 100644 --- a/drivers/staging/android/uapi/binder.h +++ b/dr

[patch -next] hyperv: NULL dereference on error

2014-09-04 Thread Dan Carpenter
We try to call free_netvsc_device(net_device) when "net_device" is NULL. It leads to an Oops. Fixes: f90251c8a6d0 ('hyperv: Increase the buffer length for netvsc_channel_cb()') Signed-off-by: Dan Carpenter diff --git a/drivers/net/hyperv/netvsc.c b/drivers/net/hyperv/netvsc.c index 5b5644a..977

Re: staging: android: uapi: binder.h: Used __packed instead of __attribute__((packed))

2014-09-04 Thread Sudip Mukherjee
On Mon, Sep 01, 2014 at 08:47:12AM -0400, Dipak Zope wrote: you have not mentioned any commit message . thanks sudip > Signed-off-by: Dipak Zope > --- > drivers/staging/android/uapi/binder.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/android/uapi

[PATCH] staging: lustre: Annotate user buffer with __user

2014-09-04 Thread LABBE Corentin
Fix the warning reported by sparse on drivers/staging/lustre/lnet/lnet/router_proc.c warning: incorrect type in argument 4 (different address spaces) The correction is to annotate all user buffer variable by __user Signed-off-by: LABBE Corentin --- .../staging/lustre/include/linux/libcfs/libcfs

[PATCH] Staging: rtl8192u: fix brace style coding issue in r819xU_firmware.c

2014-09-04 Thread Chaitra Ramaiah
*** BLURB HERE *** root (1): Staging: rtl8192u: fix brace style coding issue in r819xU_firmware.c This is a patch to the file r819xU_firmware.c that fixes a brace warning found by checkpatch.pl tool drivers/staging/rtl8192u/r819xU_firmware.c |5 ++--- 1 file changed, 2 insertio

[PATCH] Staging: rtl8192u: fix brace style coding issue in r819xU_firmware.c This is a patch to the file r819xU_firmware.c that fixes a brace warning found by checkpatch.pl tool

2014-09-04 Thread Chaitra Ramaiah
From: root Signed-off-by: Chaitra Ramaiah --- drivers/staging/rtl8192u/r819xU_firmware.c |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl8192u/r819xU_firmware.c b/drivers/staging/rtl8192u/r819xU_firmware.c index 671cbe6..40e1ef5 100644 --- a/drive

Re: [PATCH] Staging: rtl8192u: fix brace style coding issue in r819xU_firmware.c

2014-09-04 Thread Greg KH
On Thu, Sep 04, 2014 at 07:39:11PM +0530, Chaitra Ramaiah wrote: > *** BLURB HERE *** No blurb??? :) ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH] Staging: rtl8192u: fix brace style coding issue in r819xU_firmware.c This is a patch to the file r819xU_firmware.c that fixes a brace warning found by checkpatch.pl tool

2014-09-04 Thread Greg KH
On Thu, Sep 04, 2014 at 07:39:12PM +0530, Chaitra Ramaiah wrote: > From: root I don't think that is your email address... ALso, look at your subject, something went wrong here :( Care to try again? thanks, greg k-h ___ devel mailing list de...@linux

Re: [PATCH] Staging: rtl8192u: fix brace style coding issue in r819xU_firmware.c This is a patch to the file r819xU_firmware.c that fixes a brace warning found by checkpatch.pl tool

2014-09-04 Thread Dan Carpenter
Read the first paragraph of Documentation/email-clients.txt. regards, dan carpenter ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[PATCH 06/18] staging: xillybus: Improved error handling

2014-09-04 Thread Eli Billauer
xilly_scan_idt() now returns an error status code, rather than being a void function and hint the status through an entry in a data structure. Suggested-by: Dan Carpenter Signed-off-by: Eli Billauer --- drivers/staging/xillybus/xillybus_core.c | 20 1 files changed, 8 ins

[PATCH 02/18] staging: xillybus: Use SEEK_* predefined constants

2014-09-04 Thread Eli Billauer
Suggested-by: Dan Carpenter Signed-off-by: Eli Billauer --- drivers/staging/xillybus/xillybus_core.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/xillybus/xillybus_core.c b/drivers/staging/xillybus/xillybus_core.c index cacd560..61699fa 100644 --

[PATCH 09/18] staging: xillybus: Fixes related to "rc" variable

2014-09-04 Thread Eli Billauer
"rc" is often used to hold the return value of a function call. This patch removes unnecessary assignments to this variable, and makes a few related execution flow improvements. Suggested-by: Dan Carpenter Signed-off-by: Eli Billauer --- drivers/staging/xillybus/xillybus_core.c | 32 +++--

[PATCH 10/18] staging: xillybus: Use the return value of wait_event_interruptible

2014-09-04 Thread Eli Billauer
Rather than checking the wait condition, the return value of wait_event_interruptible() and wait_event_interruptible_timeout() is used. Suggested-by: Dan Carpenter Signed-off-by: Eli Billauer --- drivers/staging/xillybus/xillybus_core.c | 38 +++--- 1 files changed, 19

[PATCH 00/18] staging: xillybus: Coding style fixes

2014-09-04 Thread Eli Billauer
These patches are a result of Dan Carpenter's remarks after looking at the driver. A huge thanks goes to him for taking the time to review the code, and his clear and helpful comments. A significant part of the corrections is my extrapolation of Dan's remarks on similar cases. If something silly s

[PATCH 07/18] staging: xillybus: Improved goto flow for error handling

2014-09-04 Thread Eli Billauer
Suggested-by: Dan Carpenter Signed-off-by: Eli Billauer --- drivers/staging/xillybus/xillybus_core.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/xillybus/xillybus_core.c b/drivers/staging/xillybus/xillybus_core.c index fc14b14..45dbf07 100

[PATCH 08/18] staging: xillybus: EAGAIN status handling improvement

2014-09-04 Thread Eli Billauer
The -EAGAIN status is passed through an "rc" variable instead of a less common flow. Suggested-by: Dan Carpenter Signed-off-by: Eli Billauer --- drivers/staging/xillybus/xillybus_core.c | 16 +++- 1 files changed, 11 insertions(+), 5 deletions(-) diff --git a/drivers/staging/xill

[PATCH 03/18] staging: xillybus: Non-interruptible mutex_lock() on release method

2014-09-04 Thread Eli Billauer
Responding to an interrupt while handling the "release" method can't end well anyhow. In practical cases, this can force the user to wait up to one second while flushing remaining data is attempted (a timeout on the flush mechanism limits the time for flushing). Suggested-by: Dan Carpenter Signed

[PATCH 01/18] staging: xillybus: Use devm_kcalloc() for arrays

2014-09-04 Thread Eli Billauer
Replace devm_kzalloc where it applies. Suggested-by: Dan Carpenter Signed-off-by: Eli Billauer --- drivers/staging/xillybus/xillybus_core.c | 16 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/staging/xillybus/xillybus_core.c b/drivers/staging/xillybu

[PATCH 05/18] staging: xillybus: Removed unnecessary error message

2014-09-04 Thread Eli Billauer
Suggested-by: Dan Carpenter Signed-off-by: Eli Billauer --- drivers/staging/xillybus/xillybus_core.c | 13 - 1 files changed, 4 insertions(+), 9 deletions(-) diff --git a/drivers/staging/xillybus/xillybus_core.c b/drivers/staging/xillybus/xillybus_core.c index 3050815..222457f 10

[PATCH 04/18] staging: xillybus: Removed unnecessary warning message

2014-09-04 Thread Eli Billauer
Suggested-by: Dan Carpenter Signed-off-by: Eli Billauer --- drivers/staging/xillybus/xillybus_core.c | 10 ++ 1 files changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/staging/xillybus/xillybus_core.c b/drivers/staging/xillybus/xillybus_core.c index 3e14198..3050815 10064

[PATCH 16/18] staging: xillybus: Trivial coding style fixes

2014-09-04 Thread Eli Billauer
Suggested-by: Dan Carpenter Signed-off-by: Eli Billauer --- drivers/staging/xillybus/xillybus_core.c |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/staging/xillybus/xillybus_core.c b/drivers/staging/xillybus/xillybus_core.c index 65bbebb..c678b6c 100644 -

[PATCH 12/18] staging: xillybus: Added curly brackets as required

2014-09-04 Thread Eli Billauer
Suggested-by: Dan Carpenter Signed-off-by: Eli Billauer --- drivers/staging/xillybus/xillybus_core.c |8 +--- drivers/staging/xillybus/xillybus_pcie.c |4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/staging/xillybus/xillybus_core.c b/drivers/staging/x

[PATCH 13/18] staging: xillybus: Fix comments

2014-09-04 Thread Eli Billauer
Trivial comments removed, and one comment clarified Suggested-by: Dan Carpenter Signed-off-by: Eli Billauer --- drivers/staging/xillybus/xillybus_core.c | 15 --- 1 files changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/staging/xillybus/xillybus_core.c b/drivers/sta

[PATCH 15/18] staging: xillybus: Reorganize line breaks for clarity

2014-09-04 Thread Eli Billauer
Suggested-by: Dan Carpenter Signed-off-by: Eli Billauer --- drivers/staging/xillybus/xillybus_core.c | 29 + 1 files changed, 13 insertions(+), 16 deletions(-) diff --git a/drivers/staging/xillybus/xillybus_core.c b/drivers/staging/xillybus/xillybus_core.c index 5

[PATCH 17/18] staging: xillybus: Fix indentations

2014-09-04 Thread Eli Billauer
Signed-off-by: Eli Billauer --- drivers/staging/xillybus/xillybus_core.c | 58 +++--- drivers/staging/xillybus/xillybus_pcie.c |2 +- 2 files changed, 30 insertions(+), 30 deletions(-) diff --git a/drivers/staging/xillybus/xillybus_core.c b/drivers/staging/xillybu

[PATCH 18/18] staging: xillybus: Blank lines add/remove

2014-09-04 Thread Eli Billauer
* Blank lines between a function call and its return status check were removed. * Double blank lines were removed. * Blank lines were added and removed as to silence checkpatch.pl --strict Suggested-by: Dan Carpenter Signed-off-by: Eli Billauer --- drivers/staging/xillybus/xillybus.h |

[PATCH 14/18] staging: xillybus: Fix incorrect cast

2014-09-04 Thread Eli Billauer
Suggested-by: Dan Carpenter Signed-off-by: Eli Billauer --- drivers/staging/xillybus/xillybus_core.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/staging/xillybus/xillybus_core.c b/drivers/staging/xillybus/xillybus_core.c index 04c60c6..5ed89ce 100644 --- a/

[PATCH 11/18] staging: xillybus: Clarified the stop condition for a loop

2014-09-04 Thread Eli Billauer
Suggested-by: Dan Carpenter Signed-off-by: Eli Billauer --- drivers/staging/xillybus/xillybus_core.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/xillybus/xillybus_core.c b/drivers/staging/xillybus/xillybus_core.c index 63c2c14..1b63197 100644 ---

[PATCH] Staging: rtl8192u: fix brace style coding issue in r819xU_firmware.c

2014-09-04 Thread Chaitra Ramaiah
This is a patch to the file r819xU_firmware.c that fixes a brace warning found by checkpatch.pl tool drivers/staging/rtl8192u/r819xU_firmware.c |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) -- 1.7.9.5 ___ devel mailing list de

[PATCH] Staging: rtl8192u: fix brace style coding issue in r819xU_firmware.c

2014-09-04 Thread Chaitra Ramaiah
Signed-off-by: Chaitra Ramaiah --- drivers/staging/rtl8192u/r819xU_firmware.c |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl8192u/r819xU_firmware.c b/drivers/staging/rtl8192u/r819xU_firmware.c index 671cbe6..40e1ef5 100644 --- a/drivers/staging/rt

Re: [PATCH] staging: xillybus: Move out of staging

2014-09-04 Thread Eli Billauer
Hello Dan. I've just submitted the patches for the staging git tree (yourself Cc'ed). I didn't have any objections on your comments, so there isn't much to add -- except for thank you. :) Regards, Eli On 01/09/14 15:13, Dan Carpenter wrote: Pretty nice. This is very special purpose hard

Re: [PATCH] Staging: rtl8192u: fix brace style coding issue in r819xU_firmware.c

2014-09-04 Thread Joe Perches
On Thu, 2014-09-04 at 20:41 +0530, Chaitra Ramaiah wrote: [] > diff --git a/drivers/staging/rtl8192u/r819xU_firmware.c > b/drivers/staging/rtl8192u/r819xU_firmware.c [] > @@ -153,11 +153,10 @@ static bool CPUcheck_maincodeok_turnonCPU(struct > net_device *dev) > break; >

[PATCH] staging/lustre: Different prototypes between the declaration and the definition

2014-09-04 Thread Loïc Pellegrino
Align the prototype of lprocfs_wr_uint() in the declaration with the one used in the definition. The prototype is: int lprocfs_wr_uint(struct file *file, const char __user *buffer, unsigned long count, void *data) In obdclass/lprocfs_status.c But in lustre/include/lp

Re: [PATCH] Staging: rtl8192u: fix brace style coding issue in r819xU_firmware.c

2014-09-04 Thread Joe Perches
On Thu, 2014-09-04 at 20:41 +0530, Chaitra Ramaiah wrote: > Signed-off-by: Chaitra Ramaiah Please put the commit log description from your cover letter into this patch submission and only send 1 email instead of than 2. Rather than add these one-line-at-a-time type changes, I'd just as soon see

Re: [PATCH v4] staging: unisys: uislib: uisqueue.c: rewrite of do_locked_client_insert

2014-09-04 Thread Sudip Mukherjee
On Wed, Sep 03, 2014 at 12:59:50PM +0300, Dan Carpenter wrote: > On Wed, Sep 03, 2014 at 02:59:21PM +0530, Sudip Mukherjee wrote: > > 1) removed unused variables > > 2) fixed sparse warning of context imbalance in 'do_locked_client_insert' > > different lock contexts for ba

[PATCH] staging: iio: adc: mxs-lradc.c: sparse warning of incorrect type

2014-09-04 Thread Sudip Mukherjee
fixed sparse warning : incorrect type in argument 1 (different address spaces) Signed-off-by: Sudip Mukherjee --- drivers/staging/iio/adc/mxs-lradc.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/staging/iio/adc/mxs-lradc.c b/driver

Re: [PATCH] staging: iio: adc: mxs-lradc.c: sparse warning of incorrect type

2014-09-04 Thread Lars-Peter Clausen
On 09/04/2014 06:45 PM, Sudip Mukherjee wrote: fixed sparse warning : incorrect type in argument 1 (different address spaces) Signed-off-by: Sudip Mukherjee --- drivers/staging/iio/adc/mxs-lradc.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --g

Re: [PATCH] staging: iio: adc: mxs-lradc.c: sparse warning of incorrect type

2014-09-04 Thread Sudip Mukherjee
please discard the patch. It generates additional sparse warning. sorry for it. thanks sudip ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH] staging: iio: adc: mxs-lradc.c: sparse warning of incorrect type

2014-09-04 Thread Sudip Mukherjee
On Thu, Sep 04, 2014 at 06:50:05PM +0200, Lars-Peter Clausen wrote: > On 09/04/2014 06:45 PM, Sudip Mukherjee wrote: > >fixed sparse warning : incorrect type in argument 1 > >(different address spaces) > > > >Signed-off-by: Sudip Mukherjee > >--- > > drivers/staging/iio/adc/mx

[PATCH] rtl8188eu: rtw_xmit: Replace rcu_dereference() with rcu_access_pointer()

2014-09-04 Thread Andreea-Cristina Bernat
The "br_port" local variables obtained through the rcu_dereference() calls are not dereferenced in the rest of their function. Therefore, it is recommended to use rcu_access_pointer() instead of rcu_dereference(). This patch makes the replacements. The first step to detect this was made with the f

Re: [PATCH] staging: iio: adc: mxs-lradc.c: sparse warning of incorrect type

2014-09-04 Thread Lars-Peter Clausen
On 09/04/2014 07:12 PM, Sudip Mukherjee wrote: On Thu, Sep 04, 2014 at 06:50:05PM +0200, Lars-Peter Clausen wrote: On 09/04/2014 06:45 PM, Sudip Mukherjee wrote: fixed sparse warning : incorrect type in argument 1 (different address spaces) Signed-off-by: Sudip Mukherjee

[PATCH 06/21] staging: comedi: adl_pci9118: remove 'n_aichanlist' boardinfo

2014-09-04 Thread H Hartley Sweeten
This member of the boardinfo is the same for all entries. Remove it. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9118.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/staging/comedi/drivers/a

[PATCH 03/21] staging: comedi: adl_pci9118: remove 'ao_maxdata' boardinfo

2014-09-04 Thread H Hartley Sweeten
This member of the boardinfo is the same for all entries. Remove it. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9118.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/staging/comedi/drivers/a

[PATCH 05/21] staging: comedi: adl_pci9118: remove 'half_fifo_size' boardinfo

2014-09-04 Thread H Hartley Sweeten
This member of the boardinfo is the same for all entries. Remove it. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9118.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/drivers/staging/comedi/

[PATCH 04/21] staging: comedi: adl_pci9118: remove 'n_aochan' boardinfo

2014-09-04 Thread H Hartley Sweeten
This member of the boardinfo is the same for all entries. Remove it. Also, remove the initialization of the subdevice 'len_chanlist'. This member is only used if the subdevice supports async commands. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/c

[PATCH 02/21] staging: comedi: adl_pci9118: remove 'rangelist_ao' boardinfo

2014-09-04 Thread H Hartley Sweeten
This member of the boardinfo is the same for all entries. Remove it. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9118.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/staging/comedi/drivers/a

[PATCH 01/21] staging: comedi: adl_pci9118: remove unused boardinfo

2014-09-04 Thread H Hartley Sweeten
Remove all the boardinfo members that are not used by the driver. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9118.c | 15 --- 1 file changed, 15 deletions(-) diff --git a/drivers/staging/comedi/drivers/adl_pci91

[PATCH 00/21] staging: comedi: adl_pci9118: cleanup the boardinfo and attach

2014-09-04 Thread H Hartley Sweeten
Remove all the unused information in the boardinfo and tidy it up. Clenaup the attach of this driver a bit. H Hartley Sweeten (21): staging: comedi: adl_pci9118: remove unused boardinfo staging: comedi: adl_pci9118: remove 'rangelist_ao' boardinfo staging: comedi: adl_pci9118: remove 'ao_ma

[PATCH 09/21] staging: comedi: adl_pci9118: remove 'ai_ns_min' from boardinfo

2014-09-04 Thread H Hartley Sweeten
The minimum convert time 'ai_ns_min' is based on the sampling rate of the A/D converter. This driver supports boards that use different ADC chips for 16-bit and 12-bit analog inputs. These chips have different sampling rates. For aesthetics, move the 'ai_ns_min' member from the boardinfo to the pr

[PATCH 13/21] staging: comedi: adl_pci9118: use 'context' in (*auto_attach)

2014-09-04 Thread H Hartley Sweeten
The pci_device_id 'driver_data' is passed as the 'context' when the (*auto_attach) mechanism is used to attach this driver. Add a boardid enum and index the boardinfo so that the "pci9118dg" boardinfo is automatically selected. This allow removing the pci9118_find_boardinfo() helper. Unfortunate

[PATCH 18/21] staging: comedi: adl_pci9118: tidy up digital output subdevice init

2014-09-04 Thread H Hartley Sweeten
For aesthetics, add some whitespace to the digital output subdevice init. Remove the SDF_GROUND and SDF_COMMON subdev_flags. These flags only apply to analog subdevices. Remove the 'len_chanlist' init, this subdevice member is only used with subdevices that support async commands. Signed-off-by:

[PATCH 20/21] staging: comedi: adl_pci9118: tidy up analog output subdevice init

2014-09-04 Thread H Hartley Sweeten
For aesthetics, add some whitespace to the analog output subdevice init. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9118.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/staging/c

[PATCH 17/21] staging: comedi: adl_pci9118: allocate private data in pci9118_common_attach()

2014-09-04 Thread H Hartley Sweeten
The (*auto_attach) and legacy (*attach) both allocate the private data but don't use it. For aesthetics, move the allocation into the common attach code. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9118.c | 16 +--

[PATCH 10/21] staging: comedi: adl_pci9118: remove 'ai_pacer_min' from boardinfo

2014-09-04 Thread H Hartley Sweeten
This value can easily be calculated based on the minimum sampling rate, 'ai_ns_min', and the base clock speed of the timers. Do that instead and remove the boardinfo. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9118.c | 14 ++

[PATCH 14/21] staging: comedi: adl_pci9118: remove 'device_id' from boardinfo

2014-09-04 Thread H Hartley Sweeten
This member of the boardinfo is the same for all entries. Remove it. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9118.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/staging/comedi/drivers/

[PATCH 16/21] staging: comedi: adl_pci9118: rename boardinfo struct

2014-09-04 Thread H Hartley Sweeten
For aesthetics, rename the struct used for the boardinfo so it has namespace associated with the driver. Also, rename the local variable used for the boardinfo pointer to simply 'board'. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/a

[PATCH 11/21] staging: comedi: adl_pci9118: refactor 'rangelist_ai' in boardinfo

2014-09-04 Thread H Hartley Sweeten
The boards supported by this driver either have "normal" or "high gain" analog input ranges. For aesthetics, replace the 'rangelist_ai' member in the boardinfo with a bit-field flag 'is_hg' to indicate the "high gain" range is used. Refactor the subdevice init to use the flag to set the correct ra

[PATCH 08/21] staging: comedi: adl_pci9118: remove 'n_aichan' boardinfo

2014-09-04 Thread H Hartley Sweeten
This member of the boardinfo is the same for all entries. Remove it. Also, remove the initialization of the subdevice 'len_chanlist'. This member is only used if the subdevice supports async commands. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/c

[PATCH 12/21] staging: comedi: adl_pci9118: refactor 'ai_maxdata' in boardinfo

2014-09-04 Thread H Hartley Sweeten
The boards supported by this driver either have 12-bit or 16-bit analog inputs. For aesthetics, replace the 'ai_maxdata' member in the boardinfo with a bit-field flag, 'ai_is_16bit', and refactor the subdevice init to use the new member. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg K

[PATCH 07/21] staging: comedi: adl_pci9118: remove 'n_aichand' boardinfo

2014-09-04 Thread H Hartley Sweeten
This member of the boardinfo is the same for all entries. It's also half the subdevice 'n_chan'. Use that instead and remove the boardinfo. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9118.c | 7 +-- 1 file changed, 1 ins

[PATCH 19/21] staging: comedi: adl_pci9118: tidy up digital input subdevice init

2014-09-04 Thread H Hartley Sweeten
For aesthetics, add some whitespace to the digital input subdevice init. Remove the SDF_GROUND and SDF_COMMON subdev_flags. These flags only apply to analog subdevices. Remove the 'len_chanlist' init, this subdevice member is only used with subdevices that support async commands. Signed-off-by:

[PATCH 21/21] staging: comedi: adl_pci9118: tidy up analog input subdevice init

2014-09-04 Thread H Hartley Sweeten
For aesthetics, add some whitespace to the analog input subdevice init. Tidy up the subdevice n_chan initialization. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9118.c | 31 +--- 1 file changed, 14 ins

[PATCH 15/21] staging: comedi: adl_pci9118: remove unnecessary dev->board_name initialization

2014-09-04 Thread H Hartley Sweeten
The (*auto_attach) in this driver will set the dev->board_name and the comedi core will set it when using the legacy (*attach). Remove the unnecessary initialization in pci9118_common_attach(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/

[PATCH v2] staging/lustre: Different prototypes between the declaration and the definition

2014-09-04 Thread Loïc Pellegrino
Align the prototype of lprocfs_wr_uint() in the declaration with the one used in the definition. The prototype is: int lprocfs_wr_uint(struct file *file, const char __user *buffer, unsigned long count, void *data) In obdclass/lprocfs_status.c But in lustre/include/lprocfs_sta

[PATCH 01/19] staging: comedi: adl_pci9118: all registers are 32-bit

2014-09-04 Thread H Hartley Sweeten
According to the PCI-9118 User's Manual, all registers are 32-bit. Fix a couple of read/write operations that use 16-bit access. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9118.c | 8 1 file changed, 4 insertions(+)

[PATCH 00/19] staging: comedi: adl_pci9118: tidy up register map

2014-09-04 Thread H Hartley Sweeten
Rename the register map defines and remove all the CamelCase. This series applies after: [PATCH 00/21] staging: comedi: adl_pci9118: cleanup the boardinfo and attach H Hartley Sweeten (19): staging: comedi: adl_pci9118: all registers are 32-bit staging: comedi: adl_pci9118: introduce pci9118_

[PATCH 10/19] staging: comedi: adl_pci9118: clarify the digital I/O register

2014-09-04 Thread H Hartley Sweeten
The same register is used for both the digital inputs and outputs. Reading the register returns the state of the 4 digtial input channels and the 4 digital output channels. Writing to the register updates the digital outputs. Add some comments to clarify this and use a single define for the regist

[PATCH 08/19] staging: comedi: adl_pci9118: rename PCI9118_ADCNTRL define

2014-09-04 Thread H Hartley Sweeten
For aesthetics, rename this define used for the analog input control register. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9118.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/driv

[PATCH 05/19] staging: comedi: adl_pci9118: tidy up analog output register defines

2014-09-04 Thread H Hartley Sweeten
Replace the current defines with a macro that calculates the correct register offset based on the channel. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9118.c | 24 +--- 1 file changed, 9 insertions(+), 15

[PATCH 02/19] staging: comedi: adl_pci9118: introduce pci9118_timer_write()

2014-09-04 Thread H Hartley Sweeten
This driver uses 32-bit instructions to write the 8254 timers so we can't use the helper functions provided by 8253.h. To clarify the code introduce a helper function to write to the timers. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/driv

[PATCH 04/19] staging: comedi: adl_pci9118: tidy up analog input fifo register define

2014-09-04 Thread H Hartley Sweeten
For aesthetics, rename the define used for the analog input fifo register and tidy up its use in the driver. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9118.c | 20 +--- 1 file changed, 9 insertions(+), 11 de

[PATCH 13/19] staging: comedi: adl_pci9118: rename PCI9118_BURST define

2014-09-04 Thread H Hartley Sweeten
For aesthetics, rename this define used for the analog input burst number register. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9118.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/stagi

[PATCH 07/19] staging: comedi: adl_pci9118: tidy up the ai status register bit defines

2014-09-04 Thread H Hartley Sweeten
Rename the CamelCase defines used for the analog input status register bits and convert them to bit shifts. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9118.c | 24 +++- 1 file changed, 11 insertions(+), 1

[PATCH 06/19] staging: comedi: adl_pci9118: rename PCI9118_ADSTAT define

2014-09-04 Thread H Hartley Sweeten
For aesthetics, rename this define used for the analog input status register. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9118.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drive

[PATCH 16/19] staging: comedi: adl_pci9118: tidy up the ai config register bit defines

2014-09-04 Thread H Hartley Sweeten
Rename the CamelCase defines used for the analog input config register bits and convert them to bit shifts. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9118.c | 68 +++- 1 file changed, 26 insertions(+

[PATCH 03/19] staging: comedi: adl_pci9118: introduce pci9118_timer_set_mode()

2014-09-04 Thread H Hartley Sweeten
This driver uses 32-bit instructions to write the 8254 timers so we can't use the helper functions provided by 8253.h. To clarify the code introduce a helper function to set the timer mode. Remove the unnecessary commented out timer mode programming. Signed-off-by: H Hartley Sweeten Cc: Ian Abb

[PATCH 12/19] staging: comedi: adl_pci9118: rename PCI9118_GAIN define

2014-09-04 Thread H Hartley Sweeten
For aesthetics, rename this define used for the analog input chanlist programming register. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9118.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/dri

[PATCH 09/19] staging: comedi: adl_pci9118: tidy up the ai control register bit defines

2014-09-04 Thread H Hartley Sweeten
Rename the CamelCase defines used for the analog input control register bits and convert them to bit shifts. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9118.c | 80 +++- 1 file changed, 31 insertions(

[PATCH 14/19] staging: comedi: adl_pci9118: rename PCI9118_SCANMOD define

2014-09-04 Thread H Hartley Sweeten
For aesthetics, rename this define used for the analog input auto scan mode register. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9118.c | 24 +--- 1 file changed, 13 insertions(+), 11 deletions(-) diff -

[PATCH 11/19] staging: comedi: adl_pci9118: introduce pci9118_ai_start_conv()

2014-09-04 Thread H Hartley Sweeten
Writing any value to the "software trigger" register generates a trigger pulse to start an A/D conversion. Introduce a helper function to clarify this. For aesthetics, rename the define used for the register. According to the datasheet the extra delay is not needed after starting the conversion. R

[PATCH 18/19] staging: comedi: adl_pci9118: tidy up the interrupt control/status register

2014-09-04 Thread H Hartley Sweeten
The register at offset 0x38 is the "interrupt control" register when written and the "interrupt status" register when read. Both registers use the same bit defines. For aesthetics, use a common define for this register. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman ---

[PATCH 15/19] staging: comedi: adl_pci9118: rename PCI9118_ADFUNC define

2014-09-04 Thread H Hartley Sweeten
For aesthetics, rename this define used for the analog input function config register. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9118.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff

[PATCH 19/19] staging: comedi: adl_pci9118: tidy up the interrupt control/status bit defines

2014-09-04 Thread H Hartley Sweeten
Rename the CamelCase defines used for the interrupt control/status register bits and convert them to bit shifts. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9118.c | 20 +--- 1 file changed, 9 insertions(+), 1

[PATCH 17/19] staging: comedi: adl_pci9118: introduce pci9118_ai_reset_fifo()

2014-09-04 Thread H Hartley Sweeten
Introduce a helper function to reset the analog input FIFO. For aesthetics, rename the register used to reset the FIFO. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9118.c | 20 +--- 1 file changed, 13 insertio

[PATCH] staging: gs_fpgaboot: remove unnecessary return statements

2014-09-04 Thread Michał Bartoszkiewicz
This fixes "void function return statements are not generally useful" warnings from checkpatch.pl. Signed-off-by: Michał Bartoszkiewicz --- drivers/staging/gs_fpgaboot/io.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/gs_fpgaboot/io.c b/drivers/staging/gs_fpgaboot/io.

Re: [PATCH v4] staging: unisys: uislib: uisqueue.c: rewrite of do_locked_client_insert

2014-09-04 Thread Dan Carpenter
On Thu, Sep 04, 2014 at 10:11:16PM +0530, Sudip Mukherjee wrote: > On Wed, Sep 03, 2014 at 12:59:50PM +0300, Dan Carpenter wrote: > > On Wed, Sep 03, 2014 at 02:59:21PM +0530, Sudip Mukherjee wrote: > > > 1) removed unused variables > > > 2) fixed sparse warning of context imbalance in 'do_locked_c

[PATCH] drivers: staging: rtl8192u: Fix "space required before that '*'" errors

2014-09-04 Thread Greg Donald
Fix checkpatch.pl "space required before that '*'" errors Signed-off-by: Greg Donald --- drivers/staging/rtl8192u/ieee80211/ieee80211.h | 6 +++--- drivers/staging/rtl8192u/ieee80211/rtl819x_HT.h | 2 +- drivers/staging/rtl8192u/ieee80211/rtl819x_Qos.h | 8 drivers/staging/rtl8192u/r

Re: [PATCH] rtl8188eu: Replace rcu_dereference() with rcu_access_pointer()

2014-09-04 Thread Andreea Bernat
Hello, I cloned this: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git and after moved to staging-next branch, but in both cases, in those files I don't find any use of rcu_dereference() call (the call which I am looking for to modify). Thank you, Andreea 2014-08-30 23:42 GMT+03

[PATCH] drivers: staging: rtl8821ae: Fix "space required before that '*'" errors

2014-09-04 Thread Greg Donald
Fix checkpatch.pl "space required before that '*'" errors Signed-off-by: Greg Donald --- drivers/staging/rtl8821ae/btcoexist/HalBtc8812a1Ant.h | 6 +++--- drivers/staging/rtl8821ae/btcoexist/habtc8723a1ant.h | 6 +++--- drivers/staging/rtl8821ae/btcoexist/halbtc8192e1ant.h | 8 drivers

Re: [PATCH] staging: gs_fpgaboot: remove unnecessary return statements

2014-09-04 Thread Insop Song
Okay, thank you. Reviewed-by: Insop Song On Thu, Sep 04, 2014 at 10:05:36PM +0200, Michał Bartoszkiewicz wrote: > This fixes "void function return statements are not generally useful" > warnings from checkpatch.pl. > > Signed-off-by: Michał Bartoszkiewicz > --- > drivers/staging/gs_fpgaboot/i

Re: [PATCH] rtl8188eu: Replace rcu_dereference() with rcu_access_pointer()

2014-09-04 Thread Larry Finger
On 09/04/2014 03:58 PM, Andreea Bernat wrote: Hello, I cloned this: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git and after moved to staging-next branch, but in both cases, in those files I don't find any use of rcu_dereference() call (the call which I am looking for to modif

Re: [PATCH] rtl8188eu: Replace rcu_dereference() with rcu_access_pointer()

2014-09-04 Thread Greg KH
On Thu, Sep 04, 2014 at 11:58:36PM +0300, Andreea Bernat wrote: > Hello, > > I cloned this: > git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git > > and after moved to staging-next branch, but in both cases, in > those files I don't find any use of rcu_dereference() call (the call >

Re: [GIT PULL] Staging driver patches for 3.15-rc1

2014-09-04 Thread Paul Bolle
> > > > However, actual fpga programming method is well contained in io.c with > > ifdef-ed CONFIG_B4860G100, now I think I might better to update > > Kconfig to include CONFIG_B4860G100. > > > > Greg, what do you think? Any harm to add custom board CON

Re: [GIT PULL] Staging driver patches for 3.15-rc1

2014-09-04 Thread Greg KH
clude CONFIG_B4860G100 in Kconfig in original patch set, > > > since programming FPGA method can vary in different system, and this > > > was discussed during the review with Greg as well. > > > > > > However, actual fpga programming method is well contained

Re: [PATCH 1/1] Drivers: scsi: storvsc: Get rid of warning messages

2014-09-04 Thread Christoph Hellwig
Looks good to me. Olaf, Hannes - can I get another review for this (and the older hyperv scanning patch set)? ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH] staging: iio: adc: mxs-lradc.c: sparse warning of incorrect type

2014-09-04 Thread Sudip Mukherjee
On Thu, Sep 04, 2014 at 07:16:11PM +0200, Lars-Peter Clausen wrote: > On 09/04/2014 07:12 PM, Sudip Mukherjee wrote: > >On Thu, Sep 04, 2014 at 06:50:05PM +0200, Lars-Peter Clausen wrote: > >>On 09/04/2014 06:45 PM, Sudip Mukherjee wrote: > >>>fixed sparse warning : incorrect type in argument 1 > >