Re: [PATCH v2 1/6] staging: ft1000: spaces required around that '=', '<' and '=='

2014-10-31 Thread Sudip Mukherjee
it's pretty > > expected to have more checkpatch errors. > > > > It's a process, don't worry about most intermediate > > warnings when doing checkpatch cleanups. > > > > Adding trailing spaces is not good, nearly every > > other type of me

Re: [PATCH v2 1/6] staging: ft1000: spaces required around that '=', '<' and '=='

2014-10-31 Thread Sudip Mukherjee
it's pretty > > expected to have more checkpatch errors. > > > > It's a process, don't worry about most intermediate > > warnings when doing checkpatch cleanups. > > > > Adding trailing spaces is not good, nearly every > > other type of mess

Re: [PATCH v2 1/6] staging: ft1000: spaces required around that '=', '<' and '=='

2014-10-31 Thread Sudip Mukherjee
e > warnings when doing checkpatch cleanups. > > Adding trailing spaces is not good, nearly every > other type of message can be ignored. > ok, just to verify, i thought of trying to generate a similar patch which will not give checkpatch errors. but

Re: [PATCH v2 1/6] staging: ft1000: spaces required around that '=', '<' and '=='

2014-10-31 Thread Joe Perches
On Sat, 2014-11-01 at 10:35 +0530, Sudip Mukherjee wrote: > On Sat, Nov 01, 2014 at 10:47:22AM +0800, Chen Weixiang wrote: > > Remove following code style errors from ft1000/ft1000-usb/ft1000_debug.c > > and ft1000/ft1000-pcmcia/ft1000_hw.c: > > ERROR: spaces required around that '=' (ctx:VxV) > >

Re: [PATCH v2 6/6] staging: ft1000: space required after that ','

2014-10-31 Thread Sudip Mukherjee
On Sat, Nov 01, 2014 at 10:47:27AM +0800, Chen Weixiang wrote: > Remove following code style error from ft1000/ft1000-usb/ft1000_debug.c: > ERROR: space required after that ',' (ctx:VxV) > from checkpatch: total: 11 errors, 15 warnings, 46 lines checked NOTE: whitespace errors detected, you may w

Re: [PATCH v2 5/6] staging: ft1000: else should follow close brace '}'

2014-10-31 Thread Sudip Mukherjee
On Sat, Nov 01, 2014 at 10:47:26AM +0800, Chen Weixiang wrote: > Remove code style error from ft1000/ft1000-pcmcia/ft1000_hw.c: > ERROR: else should follow close brace '}' > from checkpatch: total: 1 errors, 2 warnings, 44 lines checked NOTE: whitespace errors detected, you may wish to use scrip

Re: [PATCH v2 2/6] staging: ft1000: space prohibited after '(', '&' and before ')'

2014-10-31 Thread Sudip Mukherjee
On Sat, Nov 01, 2014 at 10:47:23AM +0800, Chen Weixiang wrote: > Remove following code style errors from ft1000/ft1000-pcmcia/ft1000_hw.c: > ERROR: space prohibited after that open parenthesis '(' > ERROR: space prohibited before that close parenthesis ')' > ERROR: space prohibited after that '&' (

Re: [PATCH v2 3/6] staging: ft1000: "(foo*)" should be "(foo *)"

2014-10-31 Thread Sudip Mukherjee
On Sat, Nov 01, 2014 at 10:47:24AM +0800, Chen Weixiang wrote: > Remove following code style error from ft1000/ft1000-usb/ft1000_debug.c: > ERROR: "(foo*)" should be "(foo *)" > again checkpatch gives total: 4 errors, 3 warnings, 16 lines checked. this includes whitespace errors. thanks sudip >

Re: [PATCH v2 1/6] staging: ft1000: spaces required around that '=', '<' and '=='

2014-10-31 Thread Sudip Mukherjee
On Sat, Nov 01, 2014 at 10:47:22AM +0800, Chen Weixiang wrote: > Remove following code style errors from ft1000/ft1000-usb/ft1000_debug.c > and ft1000/ft1000-pcmcia/ft1000_hw.c: > ERROR: spaces required around that '=' (ctx:VxV) > ERROR: spaces required around that '<' (ctx:VxV) > ERROR: spaces req

Re: [PATCH v3] staging: panel: Remove outdated TODO tasks

2014-10-31 Thread Sudip Mukherjee
On Fri, Oct 31, 2014 at 11:08:34PM +0100, Konrad Zapalowicz wrote: > On 10/31, Mariusz Gorski wrote: > > Remove Lindent and checkpatch.pl tasks from TODO file as the first one > > is obsolete and the other one is already done. > > when i checked panel.c with checkpatch and with --strict option, i

Re: [PATCH] Remove outdated TODO tasks

2014-10-31 Thread Sudip Mukherjee
On Fri, Oct 31, 2014 at 10:06:46PM +0100, Mariusz Gorski wrote: > Remove Lindent and checkpatch.pl tasks from TODO file as the first one > is obsolete and the other one is already done. when i checked panel.c with checkpatch and with --strict option, i got 20 checks. thanks sudip > > Signed-of

[PATCH v2 5/6] staging: ft1000: else should follow close brace '}'

2014-10-31 Thread Chen Weixiang
Remove code style error from ft1000/ft1000-pcmcia/ft1000_hw.c: ERROR: else should follow close brace '}' Signed-off-by: Chen Weixiang --- drivers/staging/ft1000/ft1000-pcmcia/ft1000_hw.c | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/drivers/staging/ft1000/f

[PATCH v2 6/6] staging: ft1000: space required after that ','

2014-10-31 Thread Chen Weixiang
Remove following code style error from ft1000/ft1000-usb/ft1000_debug.c: ERROR: space required after that ',' (ctx:VxV) Signed-off-by: Chen Weixiang --- drivers/staging/ft1000/ft1000-usb/ft1000_debug.c | 22 +- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/dr

[PATCH v2 4/6] staging: ft1000: "foo * bar" should be "foo *bar"

2014-10-31 Thread Chen Weixiang
Remove following code style error from ft1000/ft1000-pcmcia/ft1000_hw.c: ERROR: "foo * bar" should be "foo *bar" Signed-off-by: Chen Weixiang --- drivers/staging/ft1000/ft1000-pcmcia/ft1000_hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/ft1000/ft1000-pcm

[PATCH v2 2/6] staging: ft1000: space prohibited after '(', '&' and before ')'

2014-10-31 Thread Chen Weixiang
Remove following code style errors from ft1000/ft1000-pcmcia/ft1000_hw.c: ERROR: space prohibited after that open parenthesis '(' ERROR: space prohibited before that close parenthesis ')' ERROR: space prohibited after that '&' (ctx:WxW) Signed-off-by: Chen Weixiang --- drivers/staging/ft1000/ft1

[PATCH v2 3/6] staging: ft1000: "(foo*)" should be "(foo *)"

2014-10-31 Thread Chen Weixiang
Remove following code style error from ft1000/ft1000-usb/ft1000_debug.c: ERROR: "(foo*)" should be "(foo *)" Signed-off-by: Chen Weixiang --- drivers/staging/ft1000/ft1000-usb/ft1000_debug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/ft1000/ft1000-usb

[PATCH v2 1/6] staging: ft1000: spaces required around that '=', '<' and '=='

2014-10-31 Thread Chen Weixiang
Remove following code style errors from ft1000/ft1000-usb/ft1000_debug.c and ft1000/ft1000-pcmcia/ft1000_hw.c: ERROR: spaces required around that '=' (ctx:VxV) ERROR: spaces required around that '<' (ctx:VxV) ERROR: spaces required around that '==' (ctx:VxV) Signed-off-by: Chen Weixiang --- driv

[PATCH v2 0/6] Remove checkpatch.pl errors from drivers/staging/ft1000

2014-10-31 Thread Chen Weixiang
This is the version 2 of the patch series. The following code style error is removed from the patch because it was already merged into Greg K-H staging.tree: ERROR: do not initialise statics to 0 or NULL This patch series are removing following code style errors from drivers/staging/ft1000: ERRO

[PATCH v2] Staging: android: ion: fix typos in comments

2014-10-31 Thread tristan
From: Tristan Lelong s/comming/coming/ in drivers/staging/android/ion/ion.c s/specfic/specific/ in drivers/staging/android/ion/ion.h s/peformance/performance/ in drivers/staging/android/ion/ion_priv.h Signed-off-by: Tristan Lelong --- v2: update changelog message per Randy Dunlap suggestion. --

Re: [PATCH 0/5] staging: comedi: split bus support into separate modules

2014-10-31 Thread Ian Abbott
On 31/10/14 22:53, Ian Abbott wrote: I like the idea of the core comedi module being separated from all the various buses. And other buses can be added easily without pulling extra dependencies into the core (e.g. for platform or spi devices). And if this get's accepted, I'd like to complete th

Re: [PATCH 0/5] staging: comedi: split bus support into separate modules

2014-10-31 Thread Ian Abbott
On 31/10/14 22:18, Hartley Sweeten wrote: On Friday, October 31, 2014 3:09 PM, Ian Abbott wrote: On 31/10/14 18:19, Hartley Sweeten wrote: On Friday, October 31, 2014 10:48 AM, Ian Abbott wrote: The Comedi core module doesn't need support for PCI, USB or PCMCIA. Only the low-level Comedi drive

RE: [PATCH 0/5] staging: comedi: split bus support into separate modules

2014-10-31 Thread Hartley Sweeten
On Friday, October 31, 2014 3:09 PM, Ian Abbott wrote: > On 31/10/14 18:19, Hartley Sweeten wrote: >> On Friday, October 31, 2014 10:48 AM, Ian Abbott wrote: >>> The Comedi core module doesn't need support for PCI, USB or PCMCIA. >>> Only the low-level Comedi drivers need it. Split the support for

Re: [PATCH v3] staging: panel: Remove outdated TODO tasks

2014-10-31 Thread Konrad Zapalowicz
On 10/31, Mariusz Gorski wrote: > Remove Lindent and checkpatch.pl tasks from TODO file as the first one > is obsolete and the other one is already done. > > Signed-off-by: Mariusz Gorski > --- > v3: Fixed commit summary Great. Thanks. regards, konrad > drivers/staging/panel/TODO | 2 -- > 1

Re: [PATCH 0/5] staging: comedi: split bus support into separate modules

2014-10-31 Thread Ian Abbott
On 31/10/14 18:19, Hartley Sweeten wrote: On Friday, October 31, 2014 10:48 AM, Ian Abbott wrote: The Comedi core module doesn't need support for PCI, USB or PCMCIA. Only the low-level Comedi drivers need it. Split the support for these bus types out of the core "comedi" module and into new mod

[PATCH v3] staging: panel: Remove outdated TODO tasks

2014-10-31 Thread Mariusz Gorski
Remove Lindent and checkpatch.pl tasks from TODO file as the first one is obsolete and the other one is already done. Signed-off-by: Mariusz Gorski --- v3: Fixed commit summary drivers/staging/panel/TODO | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/panel/TODO b/drivers/s

Re: [PATCH v2] staging: panel: Remove outdated TODO tasks

2014-10-31 Thread Konrad Zapalowicz
On 10/31, Mariusz Gorski wrote: > Remove Lindent and checkpatch.pl tasks from TODO file as the first one > is obsolete and the other one is already done. > > v2: Fixed commit summary This is something that should not be a part of the commit message. This kind of extra information shall be placed

[PATCH v2] staging: panel: Remove outdated TODO tasks

2014-10-31 Thread Mariusz Gorski
Remove Lindent and checkpatch.pl tasks from TODO file as the first one is obsolete and the other one is already done. v2: Fixed commit summary Signed-off-by: Mariusz Gorski --- drivers/staging/panel/TODO | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/panel/TODO b/drivers/s

Re: [PATCH] Remove outdated TODO tasks

2014-10-31 Thread Konrad Zapalowicz
On 10/31, Mariusz Gorski wrote: > Remove Lindent and checkpatch.pl tasks from TODO file as the first one > is obsolete and the other one is already done. Great however your topic is ill formated. It should contain the "staging: panel:" prefix. thanks, konrad > > Signed-off-by: Mariusz Gorski >

[PATCH] Remove outdated TODO tasks

2014-10-31 Thread Mariusz Gorski
Remove Lindent and checkpatch.pl tasks from TODO file as the first one is obsolete and the other one is already done. Signed-off-by: Mariusz Gorski --- drivers/staging/panel/TODO | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/panel/TODO b/drivers/staging/panel/TODO index a4

[PATCH 8/9] staging: comedi: hwdrv_apci3120: use sample manipulation helpers

2014-10-31 Thread H Hartley Sweeten
Use the recently added sample manipulation helpers to remove the hardcoded assumption of the sample size. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/addi-data/hwdrv_apci3120.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-

[PATCH 7/9] staging: comedi: adl_pci9111: use sample manipulation helpers

2014-10-31 Thread H Hartley Sweeten
Use the recently added sample manipulation helpers to remove the hardcoded assumption of the sample size. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9111.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --

[PATCH 2/9] staging: comedi: ni_mio_common: use sample manipulation helpers

2014-10-31 Thread H Hartley Sweeten
Use the recently added sample manipulation helpers to remove the hardcoded assumption of the sample size. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 37 +++--- 1 file changed, 21 insertions(+),

[PATCH 5/9] staging: comedi: adv_pci1710: use sample manipulation helpers

2014-10-31 Thread H Hartley Sweeten
Use the recently added sample manipulation helpers to remove the hardcoded assumption of the sample size. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adv_pci1710.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-

[PATCH 1/9] staging: comedi: remove use of 'bytes_per_sample()'

2014-10-31 Thread H Hartley Sweeten
This inline helper function has been replaced with comedi_bytes_per_sample(). The same commit (bf33eb4b4f57) introduced a couple other related helper functions a manipulate the sample size. Use the new helper functions to remove the use of 'bytes_per_sample()' and remove it. Signed-off-by: H Hart

[PATCH 9/9] staging: comedi: ni_at_a2150: use sample manipulation helpers

2014-10-31 Thread H Hartley Sweeten
Use the recently added sample manipulation helpers to remove the hardcoded assumption of the sample size. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_at_a2150.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) d

[PATCH 4/9] staging: comedi: das16: use sample manipulation helpers

2014-10-31 Thread H Hartley Sweeten
Use the recently added sample manipulation helpers to remove the hardcoded assumption of the sample size. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/das16.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/driv

[PATCH 0/9] staging: comedi: use new sample manipulation helpers

2014-10-31 Thread H Hartley Sweeten
Commit (bf33eb4b4f57) introduced a some new helper functions to manipulate the sample size. This series removes the old 'bytes_per_sample()' helper and updates some of the drivers to use the new helper functions to remove the hardcoded assumption of the sample size. H Hartley Sweeten (9): stag

[PATCH 6/9] staging: comedi: adl_pci9118: use sample manipulation helpers

2014-10-31 Thread H Hartley Sweeten
Use the recently added sample manipulation helpers to remove the hardcoded assumption of the sample size. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9118.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH 3/9] staging: comedi: das1800: use sample manipulation helpers

2014-10-31 Thread H Hartley Sweeten
Use the recently added sample manipulation helpers to remove the hardcoded assumption of the sample size. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/das1800.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driv

RE: [PATCH 0/5] staging: comedi: split bus support into separate modules

2014-10-31 Thread Hartley Sweeten
On Friday, October 31, 2014 10:48 AM, Ian Abbott wrote: > The Comedi core module doesn't need support for PCI, USB or PCMCIA. > Only the low-level Comedi drivers need it. Split the support for these > bus types out of the core "comedi" module and into new modules, > "comedi_pci", "comedi_usb", and

Re: [PATCH resent] staging: rtl8188eu: Deletion of unnecessary checks before three function calls

2014-10-31 Thread Julia Lawall
On Fri, 31 Oct 2014, SF Markus Elfring wrote: > >> The functions kfree(), rtw_free_netdev() and vfree() test whether their > >> argument is NULL and then return immediately. Thus the test around the call > >> is not needed. > >> > >> This issue was detected by using the Coccinelle software. > >> >

Re: [PATCH resent] staging: rtl8188eu: Deletion of unnecessary checks before three function calls

2014-10-31 Thread SF Markus Elfring
>> The functions kfree(), rtw_free_netdev() and vfree() test whether their >> argument is NULL and then return immediately. Thus the test around the call >> is not needed. >> >> This issue was detected by using the Coccinelle software. >> >> Signed-off-by: Markus Elfring >> --- >> drivers/staging

Re: [PATCH resent] staging: rtl8188eu: Deletion of unnecessary checks before three function calls

2014-10-31 Thread Julia Lawall
On Fri, 31 Oct 2014, SF Markus Elfring wrote: > The functions kfree(), rtw_free_netdev() and vfree() test whether their > argument is NULL and then return immediately. Thus the test around the call > is not needed. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Ma

[PATCH resent] staging: rtl8188eu: Deletion of unnecessary checks before three function calls

2014-10-31 Thread SF Markus Elfring
The functions kfree(), rtw_free_netdev() and vfree() test whether their argument is NULL and then return immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/staging/rtl8188eu/core/rtw_efuse

[PATCH 0/5] staging: comedi: split bus support into separate modules

2014-10-31 Thread Ian Abbott
The Comedi core module doesn't need support for PCI, USB or PCMCIA. Only the low-level Comedi drivers need it. Split the support for these bus types out of the core "comedi" module and into new modules, "comedi_pci", "comedi_usb", and "comedi_pcmcia". 1) staging: comedi: comedidev.h: remove dummy

[PATCH 4/5] staging: comedi: split out USB support into new module

2014-10-31 Thread Ian Abbott
Setting the `CONFIG_COMEDI_USB_DRIVERS` kernel configuration option makes the main "comedi" module depend on the "usbcore" module. But perhaps the machine has no USB controllers (or they have been disabled), in which case the "usbcore" module may have been pulled in unnecessarily. Only a few low-

[PATCH 3/5] staging: comedi: split out PCMCIA support into new module

2014-10-31 Thread Ian Abbott
Setting the `CONFIG_COMEDI_PCMCIA_DRIVERS` kernel configuration option makes the main "comedi" module depend on the "pcmcia" module, but many machines don't have PCMCIA slots and only a few low-level Comedi drivers need PCMCIA support. The Comedi PCMCIA support functions are all in "comedi_pcmcia.

[PATCH 2/5] staging: comedi: comedidev.h: remove some #ifdefs

2014-10-31 Thread Ian Abbott
Some declarations and macro definitions in "comedidev.h" are protected by various `#ifdef`s for kernel configuration options, but the header file compiles fine without the `#ifdef`s regardless of whether those config option macros are defined or not. Remove the `#ifdef`s and compile the affected c

[PATCH 1/5] staging: comedi: comedidev.h: remove dummy PCI support functions

2014-10-31 Thread Ian Abbott
Some low-level Comedi driver modules used to handle PCI devices and ISA devices in the same module with some conditional compilation. To reduce the amount of conditional compilation, some dummy inline versions of `comedi_to_pci_dev()`, `comedi_pci_enable()`, `comedi_pci_disable()`, and `comedi_pci

[PATCH 5/5] staging: comedi: split out PCI support into new module

2014-10-31 Thread Ian Abbott
Setting the `CONFIG_COMEDI_PCI_DRIVERS` kernel configuration option makes the main "comedi" module depend on the PCI support in the kernel. That's not that big a deal since PCI support in the kernel is either built into the kernel or is absent, and is not in a separate module. Still, not all low-le

Re: [PATCH] Staging: android: ion: fix typos in comments

2014-10-31 Thread Randy Dunlap
On 10/30/14 23:43, Tristan Lelong wrote: > Fix some coding style warnings detected by checkpatch.pl in ion. $Subject is correct but the changelog above is not -- needs to be changed. > > Signed-off-by: Tristan Lelong > --- > drivers/staging/android/ion/ion.c | 2 +- > drivers/staging/and

Re: [PATCH v2 3/3] staging: comedi: amplc_pci230: remove private data 'ai_scan_pos'

2014-10-31 Thread Ian Abbott
On 31/10/14 16:49, H Hartley Sweeten wrote: This member of the private data is replicating what the comedi_async 'cur_chan' member is used for. Use that instead and remove the private data member. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/com

Re: [PATCH v2 2/3] staging: comedi: drivers: move comedi_async 'cur_chan' tracking into the core

2014-10-31 Thread Ian Abbott
On 31/10/14 16:49, H Hartley Sweeten wrote: The commedi_async 'cur_chan' member is used to track the current position in the chanlist for a scan. Currently only a couple comedi drivers use this member. For aeshtetics, move the 'cur_chan' tracking into the core for non-SDF_PACKED subdevices. The

RE: [PATCH] staging: comedi: icp_multi: correct insn_bits returned data for DO

2014-10-31 Thread Hartley Sweeten
On Friday, October 31, 2014 7:32 AM, Ian Abbott wrote: > For some unfathomable reason, the Comedi `insn_bits` handler for the > digital output subdevice (`icp_multi_insn_bits_do()`) writes the digital > output register and reads back the unrelated digital input register. > Read back the current sta

[PATCH v2 1/3] staging: comedi: ni_mio_common: remove unused variable in ni_ao_fifo_load()

2014-10-31 Thread H Hartley Sweeten
The local variable 'range' is set but never used. Remove it. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/comedi/drivers/ni_mio_common.c

[PATCH v2 0/3] staging: comedi: make core track comedi_async 'cur_chan'

2014-10-31 Thread H Hartley Sweeten
Move the tracking of the comedi_async 'cur_chan' into the core. V2: fix patches 2 and 3 Ian Abbott pointed out that checking for the COMEDI_CB_EOS event when counting scans does not work when samples are added in a loop. H Hartley Sweeten (3): staging: comedi: ni_mio_common: remove unus

[PATCH v2 2/3] staging: comedi: drivers: move comedi_async 'cur_chan' tracking into the core

2014-10-31 Thread H Hartley Sweeten
The commedi_async 'cur_chan' member is used to track the current position in the chanlist for a scan. Currently only a couple comedi drivers use this member. For aeshtetics, move the 'cur_chan' tracking into the core for non-SDF_PACKED subdevices. The 'cur_chan' will be updated after reading or wr

[PATCH v2 3/3] staging: comedi: amplc_pci230: remove private data 'ai_scan_pos'

2014-10-31 Thread H Hartley Sweeten
This member of the private data is replicating what the comedi_async 'cur_chan' member is used for. Use that instead and remove the private data member. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/amplc_pci230.c | 15 ---

RE: [PATCH 0/2] staging: comedi: das16: fix some timer sync issues

2014-10-31 Thread Hartley Sweeten
On Wednesday, October 29, 2014 10:35 AM, Ian Abbott wrote: > "das16" uses a kernel timer but never removes it from the queue > synchronously at the moment. Patch 1 makes sure this is done before it > is destroyed. Patch 2 uses the comedi device's main spin-lock to ensure > some state shared with

[PATCH] staging: comedi: icp_multi: correct insn_bits returned data for DO

2014-10-31 Thread Ian Abbott
For some unfathomable reason, the Comedi `insn_bits` handler for the digital output subdevice (`icp_multi_insn_bits_do()`) writes the digital output register and reads back the unrelated digital input register. Read back the current state of the outputs (held in `s->state`) instead. Signed-off-by:

[PATCH 05/24] staging: unisys: refactor VISORCHIPSET_DEVICE_INFO

2014-10-31 Thread Benjamin Romer
Remove the typedef and use struct visorchipset_device_info instead. Fix CamelCase names: busNo => bus_no devNo => dev_no devInstGuid => dev_inst_guid chanInfo => chan_info Reserved1 => reserved1 Reserved2 => reserved2 switchNo => switch_no internalPortNo => internal_port_no pendingMsgHdr => pendin

[PATCH 10/24] staging: unisys: refactor VISORCHIPSET_SWITCH_INFO

2014-10-31 Thread Benjamin Romer
Remove the typedef and use struct visorchipset_switch_info instead. Fix all CamelCase member names: switchNo => switch_no switchTypeGuid => switch_type_uuid authService1 => authservice1 authService2 => authservice2 authService3 => authservice3 securityContext => security_context Reserved => reserv

[PATCH 21/24] staging: unisys: fix CamelCase in visorchipset_set_bus_context()

2014-10-31 Thread Benjamin Romer
Fix CamelCase parameter: busNo => bus_no Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorchipset/visorchipset.h | 2 +- drivers/staging/unisys/visorchipset/visorchipset_main.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/unisys/vi

[PATCH 24/24] staging: unisys: remove unused macros from visorchipset.h

2014-10-31 Thread Benjamin Romer
Delete the macros and related preprocessor code for DBG_GETFILE_PAYLOAD(), DBG_GETFILE(), and DBG_PUTFILE(). Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorchipset/visorchipset.h | 13 - 1 file changed, 13 deletions(-) diff --git a/drivers/staging/unisys/visorchipset/

[PATCH 18/24] staging: unisys: fix CamelCase in visorchipset_get_bus_info

2014-10-31 Thread Benjamin Romer
Fix CamelCase names: busNo => bus_no busInfo => bus_info Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorchipset/visorchipset.h | 4 ++-- drivers/staging/unisys/visorchipset/visorchipset_main.c | 8 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drive

[PATCH 19/24] staging: unisys: fix CamelCase in visorchipset_get_device_info()

2014-10-31 Thread Benjamin Romer
Fix CamelCase names: busNo => bus_no devNo => dev_no devInfo => dev_info Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorchipset/visorchipset.h | 4 ++-- drivers/staging/unisys/visorchipset/visorchipset_main.c | 10 +- 2 files changed, 7 insertions(+), 7 deletions(-)

[PATCH 12/24] staging: unisys: refactor VISORCHIPSET_INTERNALPORT_INFO

2014-10-31 Thread Benjamin Romer
Get rid of the typedef and use struct visorchipset_internalport_info and fix CamelCase member names: switchNo => switch_no internalPortNo => internal_port_no busNo => bus_no devNo => dev_no Reserved1 => reserved1 Reserved2 => reserved2 pendingMsgHdr => pending_msg_hdr procObject => proc_object Si

[PATCH 06/24] staging: unisys: fix CamelCase parameters in finddevice()

2014-10-31 Thread Benjamin Romer
Fix CamelCase names in finddevice(): busNo => bus_no devNo => dev_no Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorchipset/visorchipset.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/unisys/visorchipset/visorchipset.h b/drivers/stagi

[PATCH 20/24] staging: unisys: remove unused definitions from visorchipset.h

2014-10-31 Thread Benjamin Romer
Delete visorchipset_get_switch_info() and visorchipset_get_externalport_info() as these functions were declared but not defined, or used. Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorchipset/visorchipset.h | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/staging/u

[PATCH 04/24] staging: unisys: refactor VISORCHIPSET_CHANNEL_INFO

2014-10-31 Thread Benjamin Romer
Remove the typedef from this type and use struct visorchipset_channel_info instead. Fix CamelCase member names: addrType => addr_type channelAddr => channel_addr nChannelBytes => n_channel_bytes channelTypeGuid => channel_type_uuid channelInstGuid => channel_inst_uuid Signed-off-by: Benjamin Rome

[PATCH 07/24] staging: unisys: fix CamelCase parameters in delbusdevices()

2014-10-31 Thread Benjamin Romer
Fix the CamelCase parameter in delbusdevices() in visorchipset.h: busNo => bus_no Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorchipset/visorchipset.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/unisys/visorchipset/visorchipset.h b/dr

[PATCH 14/24] staging: unisys: refactor VISORCHIPSET_BUSDEV_RESPONDERS

2014-10-31 Thread Benjamin Romer
Get rid of the typedef and just use struct visorchipset_busdev_responders instead. Fix CamelCase parameter names in the function pointer definitions for the structure: busNo => bus_no devNo => dev_no Update references to changed names. Signed-off-by: Benjamin Romer --- drivers/staging/unisys/v

[PATCH 23/24] staging: unisys: remove visorchipset_controlvm_respond_reportEvent()

2014-10-31 Thread Benjamin Romer
No one is using this definition so remove it. Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorchipset/visorchipset.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/unisys/visorchipset/visorchipset.h b/drivers/staging/unisys/visorchipset/visorchipset.h index 5

[PATCH 22/24] staging: unisys: fix CamelCase in visorchipset_set_device_context()

2014-10-31 Thread Benjamin Romer
Fix CamelCase parameter names: busNo => bus_no devNo => dev_no Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorchipset/visorchipset.h | 2 +- drivers/staging/unisys/visorchipset/visorchipset_main.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dri

[PATCH 11/24] staging: unisys: refactor VISORCHIPSET_EXTERNALPORT_INFO

2014-10-31 Thread Benjamin Romer
Remove the typedef and just use struct visorchipset_externalport_info instead. Fix all CamelCase names: switchNo => switch_no externalPortNo => external_port_no networkZoneGuid => network_zone_uuid pdPort => pd_port ipNetmask => ip_netmask ipBroadcast => ip_broadcast ipNetwork => ip_network ipGate

[PATCH 16/24] staging: unisys: fix CamelCase name in visorchipset_register_busdev_server()

2014-10-31 Thread Benjamin Romer
Fix CamelCase name: driverInfo => driver_info Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorchipset/visorchipset.h | 2 +- drivers/staging/unisys/visorchipset/visorchipset_main.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/unis

[PATCH 17/24] staging: unisys: fix CamelCase in visorchipset_device_pause_response()

2014-10-31 Thread Benjamin Romer
Fix CamelCase parameters: busNo => bus_no devNo => dev_no Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorchipset/visorchipset.h | 3 ++- drivers/staging/unisys/visorchipset/visorchipset_main.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/s

[PATCH 09/24] staging: unisys: fix CamelCase in findbus()

2014-10-31 Thread Benjamin Romer
Fix the CamelCase parameter name in findbus() in visorchipset.h. busNo => bus_no Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorchipset/visorchipset.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/unisys/visorchipset/visorchipset.h b/dri

[PATCH 13/24] staging: unisys: refactor VISORCHIPSET_BUSDEV_NOTIFIERS

2014-10-31 Thread Benjamin Romer
Get rid of the typedef and just use struct visorchipset_busdev_notifiers instead. Fix CamelCase names in parameters for the function pointers: busNo => bus_no devNo => dev_no typeGuid => type_uuid minSize => min_size maxSize => max_size Update references. Signed-off-by: Benjamin Romer --- driv

[PATCH 02/24] staging: unisys: refactor VISORCHIPSET_ADDRESSTYPE

2014-10-31 Thread Benjamin Romer
Get rid of VISORCHIPSET_ADDRESSTYPE and replace it with enum visorchipset_addresstype. Fix CamelCase names: ADDRTYPE_localPhysical => ADDRTYPE_LOCALPHYSICAL ADDRTYPE_localTest => ADDRTYPE_LOCALTEST Update all references to changed names. Signed-off-by: Benjamin Romer --- drivers/staging/unisys

[PATCH 15/24] staging: unisys: fix CamelCase name in visorchipset_register_busdev_client()

2014-10-31 Thread Benjamin Romer
Fix CamelCase parameter: driverInfo => driver_info Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorchipset/visorchipset.h | 2 +- drivers/staging/unisys/visorchipset/visorchipset_main.c | 8 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/stagi

[PATCH 08/24] staging: unisys: refactor VISORCHIPSET_BUS_INFO

2014-10-31 Thread Benjamin Romer
Remove the typedef and use the name struct visorchipset_bus_info instead. Fix CamelCase member names in the structure: busNo => bus_no chanInfo => chan_info partitionGuid => partition_uuid partitionHandle => partition_handle Reserved1 => reserved1 Reserved2 => reserved2 procObject => proc_object

[PATCH 01/24] staging: unisys: get rid of VISORCHIPSET_STATE typedef

2014-10-31 Thread Benjamin Romer
Remove the typedef for VISORCHIPSET_STATE and replace it with enum visorchipset_state. Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorchipset/visorchipset.h | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/unisys/visorchipset/visor

[PATCH 03/24] staging: unisys: refactor CRASH_OBJ_TYPE

2014-10-31 Thread Benjamin Romer
Remove the typedef from the enumeration and replace references to it with enum crash_obj_type. Fix CamelCase names: CRASH_dev => CRASH_DEV CRASH_bus => CRASH_BUS Update all references to changed names. Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorchipset/visorchipset.h |

[PATCH 00/24] staging: unisys: cleanup visorchipset.h

2014-10-31 Thread Benjamin Romer
This patch series eliminates all checkpatch.pl errors, warnings, and strict checks from the file visorchipset/visorchipset.h. Benjamin Romer (24): staging: unisys: get rid of VISORCHIPSET_STATE typedef staging: unisys: refactor VISORCHIPSET_ADDRESSTYPE staging: unisys: refactor CRASH_OBJ_TYP

Re: [PATCH 3/3] staging: comedi: drivers: digital output subdevices do not need SDF_READABLE

2014-10-31 Thread Ian Abbott
On 30/10/14 18:19, H Hartley Sweeten wrote: The SDF_READABLE flag is not necessary for digital output subdevices. For consistency, remove this flag from the comedi drivers that set it. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/

Re: [PATCH 3/3] staging: comedi: drivers: digital output subdevices do not need SDF_READABLE

2014-10-31 Thread Ian Abbott
On 31/10/14 10:25, Ian Abbott wrote: On 30/10/14 18:19, H Hartley Sweeten wrote: The SDF_READABLE flag is not necessary for digital output subdevices. For consistency, remove this flag from the comedi drivers that set it. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman

Re: [PATCH 3/3] staging: comedi: amplc_pci230: remove private data 'ai_scan_pos'

2014-10-31 Thread Ian Abbott
On 30/10/14 18:38, H Hartley Sweeten wrote: This member of the private data is replicating what the comedi_async 'cur_chan' member is used for. Use that instead and remove the private data member. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/com

Re: [PATCH 2/3] staging: comedi: drivers: move comedi_async 'cur_chan' tracking into the core

2014-10-31 Thread Ian Abbott
On 30/10/14 18:38, H Hartley Sweeten wrote: The commedi_async 'cur_chan' member is used to track the current position in the chanlist for a scan. Currently only a couple comedi drivers use this member. For aeshtetics, move the 'cur_chan' tracking into the core for non-SDF_PACKED subdevices. The

Re: [PATCH 1/3] staging: comedi: ni_mio_common: remove unused variable in ni_ao_fifo_load()

2014-10-31 Thread Ian Abbott
On 30/10/14 18:37, H Hartley Sweeten wrote: The local variable 'range' is set but never used. Remove it. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 3 --- 1 file changed, 3 deletions(-) Reviewed-by: Ian Abbo

[patch 2/2] staging: r8188eu: cleanups in rtw_android_set_block()

2014-10-31 Thread Dan Carpenter
1) We can tighten up the code a little by returning directly and it makes the code more future proof and easier to read. 2) "free" is a better name than "exit". 3) sizeof(priv_cmd) is shorter and more clear than sizeof(struct android_wifi_priv_cmd). Signed-off-by: Dan Carpenter diff --git

[patch 1/2] staging: r8188eu: get a string from the user correctly

2014-10-31 Thread Dan Carpenter
The original code had two bugs: 1) It didn't check if the string was zero length so it could oops when it tried to dereference the ZERO_SIZE_PTR. 2) It didn't enforce that the string was NUL terminated. It was also messy as pants. Signed-off-by: Dan Carpenter --- I assume that hopefully the u

Re: [PATCH 2/2] staging: comedi: rtd520: remove private data 'chan_is_bipolar' member

2014-10-31 Thread Ian Abbott
On 30/10/14 18:32, H Hartley Sweeten wrote: Currently this driver uses a bitmap in the private data to keep track of the unipolar/bipolar range for each channel. This is needed to determine if the data needs to be munged for bipolar samples. Remove this member from the private data and use the c

Re: [PATCH 1/2] staging: comedi: rtd520: fix ai_read_n() async->cur_chan use

2014-10-31 Thread Ian Abbott
On 30/10/14 18:32, H Hartley Sweeten wrote: This functions uses the async->cur_chan to determine if the current channel is using a bipolar range and the sample needs to be munged. The cur_chan is never incremented so all the samples are munged based on the fist channel in the cmd->chanlist. Bump

Re: [PATCH 3/3] staging: comedi: drivers: digital output subdevices do not need SDF_READABLE

2014-10-31 Thread Ian Abbott
On 30/10/14 18:19, H Hartley Sweeten wrote: The SDF_READABLE flag is not necessary for digital output subdevices. For consistency, remove this flag from the comedi drivers that set it. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/

Re: [PATCH 2/3] staging: comedi: drivers: remove inappropriate SDF_* flags from subdevices

2014-10-31 Thread Ian Abbott
On 30/10/14 18:19, H Hartley Sweeten wrote: The SDF_GROUND, SDF_COMMON, SDF_DIFF, and SDF_OTHER flags are only useful with the analog input and output subdevices. Remove these flags from the other subdevice types in the comedi drivers. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg

Re: [PATCH 1/3] staging: comedi: drivers: replace SDF_WRITEABLE with SDF_WRITABLE

2014-10-31 Thread Ian Abbott
On 30/10/14 18:19, H Hartley Sweeten wrote: As indicated in the comedi.h uapi header, SDF_WRITEABLE was a spelling error in the API, SDF_WRITABLE is prefered. For aesthetics, replace all the SDF_WRITEABLE uses with SDF_WRITABLE. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-H

Re: [PATCH] staging: comedi: drivers do not need to reset the async->cur_chan

2014-10-31 Thread Ian Abbott
On 30/10/14 18:21, H Hartley Sweeten wrote: The comedi core calls comedi_buf_reset() before starting an async command (*do_cmd) and after returning a subdevice to an idle state (*cancel). The drivers do not need to reset the async->cur_chan in those functions. Signed-off-by: H Hartley Sweeten

Re: [PATCH] staging: comedi: comedi_buf: make comedi_buf_write_samples() add samples that fit

2014-10-31 Thread Ian Abbott
On 30/10/14 18:10, H Hartley Sweeten wrote: This function currently fails if the number of samples to add would overflow the async buffer. Modify it to add the samples that fit so at least some of the sample data is returned to the user. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg