Re: [PATCH v2 2/3] staging: dgnc: driver.c and tty.c: replaces dgnc_driver_kzmalloc with kzalloc

2013-08-29 Thread Dan Carpenter
On Wed, Aug 28, 2013 at 08:05:14PM -0400, Lidza Louina wrote: Also, can I put your name in the Reported-by: section of these patches? It feels like cheating to boost your Reported-by count with style comments. :P I'd be caught up to Fengguang. Everyone likes credit though. I know the docs

[PATCH 1/2] staging: dgap: Fix build errors

2013-08-29 Thread Sachin Kamat
Fixes the following compilation errors: drivers/staging/dgap/dgap_driver.c:423:3: error: implicit declaration of function ‘kfree’ [-Werror=implicit-function-declaration] kfree(dgap_config_buf); ^ drivers/staging/dgap/dgap_driver.c: In function ‘dgap_driver_kzmalloc’:

[PATCH 2/2] staging: dgap: Remove unnecessary version check

2013-08-29 Thread Sachin Kamat
Code should be for the kernel version it is merged in. Version check is not necessary. Signed-off-by: Sachin Kamat sachin.ka...@linaro.org --- Compile tested only. --- drivers/staging/dgap/dgap_driver.c |4 drivers/staging/dgap/dgap_kcompat.h | 29 - 2

Re: [PATCH 01/11] staging: comedi: core: introduce comedi_dio_insn_bits()

2013-08-29 Thread Ian Abbott
On 2013-08-28 21:26, H Hartley Sweeten wrote: The (*insn_bits) functions for DIO and DO subdevices typically use the subdevice 's-state' to hold the current state of the output channels. The 'insn' passed to these functions, INSN_BITS, specifies two parameters passed in the 'data'. data[0] =

Re: [PATCH 04/11] staging: comedi: drivers: use comedi_dio_insn_bits()

2013-08-29 Thread Ian Abbott
On 2013-08-28 21:28, H Hartley Sweeten wrote: Use comedi_dio_insn_bits() to handle the boilerplate code to update the subdevice s-state for DIO and DO subdevices. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman

Re: [PATCH 05/11] staging: comedi: core: initialize subdevice s-io_bits in postconfig

2013-08-29 Thread Ian Abbott
On 2013-08-28 21:29, H Hartley Sweeten wrote: The subdevice 'io_bits' is a bit mask of the i/o configuration for digital subdevices. '0' values indicate that a channel is configured as an input and '1' values that the channel is an output. Since the subdevice data is kzalloc()'d, all channels

Re: [PATCH 07/11] staging: comedi: drivers: use comedi_dio_insn_bits() for DIO subdevices

2013-08-29 Thread Ian Abbott
On 2013-08-28 21:29, H Hartley Sweeten wrote: Use comedi_dio_insn_bits() to handle the boilerplate code to update the subdevice s-state for DIO subdevices. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman

Re: [PATCH 08/11] staging: comedi: drivers: more users of comedi_dio_insn_bits()

2013-08-29 Thread Ian Abbott
On 2013-08-28 21:30, H Hartley Sweeten wrote: Convert a couple more comedi drivers to use comedi_dio_insn_bits() to handle the boilerplate code to update the subdevice s-state. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman

Re: [PATCH 06/15] staging: comedi: comedi_parport: tidy up parport_insn_c()

2013-08-29 Thread Ian Abbott
On 2013-08-28 21:57, H Hartley Sweeten wrote: Rename this function to better describe it's use. Use comedi_dio_insn_bits() to handle the boilerplate code to update the subdevice s-state. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg

Re: [PATCH 00/15] staging: comedi: comedi_parport: cleanup driver

2013-08-29 Thread Ian Abbott
On 2013-08-28 21:55, H Hartley Sweeten wrote: Use the new comedi_dio_insn_bits() and comedi_dio_insn_config() helpers to tidy up the digital subdevices in this driver. Remove the need for the kzalloc'd private data. H Hartley Sweeten (15): staging: comedi: comedi_parport: tidy up the

Re: [PATCH] staging: comedi: ni_labpc: use comedi_range_is_unipolar()

2013-08-29 Thread Ian Abbott
On 2013-08-28 23:01, H Hartley Sweeten wrote: Use the core provided helper function instead of duplicating it as a private function. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org ---

Re: [PATCH] staging: comedi: pcmad: use comedi_range_is_bipolar()

2013-08-29 Thread Ian Abbott
On 2013-08-28 22:59, H Hartley Sweeten wrote: Use the core provided helper function instead of duplicating it as a private function. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org ---

[PATCH] staging: crystalhd: Resolve sparse 'different base types' warnings.

2013-08-29 Thread Shaun Laing
The result from crystalhd_get_sgle_paddr and crystalhd_get_sgle_len are later used in calculations, so the result should be in CPU byte ordering. Signed-off-by: Shaun Laing sh...@xresource.ca --- Assumes sg_dma_address and sg_dma_len return values in CPU byte ordering.

RE: [PATCH 01/11] staging: comedi: core: introduce comedi_dio_insn_bits()

2013-08-29 Thread Hartley Sweeten
On Thursday, August 29, 2013 4:14 AM, Ian Abbott wrote: On 2013-08-28 21:26, H Hartley Sweeten wrote: The (*insn_bits) functions for DIO and DO subdevices typically use the subdevice 's-state' to hold the current state of the output channels. The 'insn' passed to these functions, INSN_BITS,

Re: [PATCH 01/11] staging: comedi: core: introduce comedi_dio_insn_bits()

2013-08-29 Thread Ian Abbott
On 2013-08-29 17:20, Hartley Sweeten wrote: On Thursday, August 29, 2013 4:14 AM, Ian Abbott wrote: On 2013-08-28 21:26, H Hartley Sweeten wrote: The (*insn_bits) functions for DIO and DO subdevices typically use the subdevice 's-state' to hold the current state of the output channels. The

RE: [PATCH 04/11] staging: comedi: drivers: use comedi_dio_insn_bits()

2013-08-29 Thread Hartley Sweeten
On Thursday, August 29, 2013 5:32 AM, Ian Abbott wrote: On 2013-08-28 21:28, H Hartley Sweeten wrote: Use comedi_dio_insn_bits() to handle the boilerplate code to update the subdevice s-state for DIO and DO subdevices. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian

RE: [PATCH 07/11] staging: comedi: drivers: use comedi_dio_insn_bits() for DIO subdevices

2013-08-29 Thread Hartley Sweeten
On Thursday, August 29, 2013 5:52 AM, Ian Abbott wrote: On 2013-08-28 21:29, H Hartley Sweeten wrote: Use comedi_dio_insn_bits() to handle the boilerplate code to update the subdevice s-state for DIO subdevices. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott

RE: [PATCH 01/11] staging: comedi: core: introduce comedi_dio_insn_bits()

2013-08-29 Thread Hartley Sweeten
On Thursday, August 29, 2013 9:37 AM, Ian Abbott wrote: On 2013-08-29 17:20, Hartley Sweeten wrote: On Thursday, August 29, 2013 4:14 AM, Ian Abbott wrote: On 2013-08-28 21:26, H Hartley Sweeten wrote: The (*insn_bits) functions for DIO and DO subdevices typically use the subdevice 's-state'

[PATCH -next] staging: dgap: Add missing #include linux/slab.h

2013-08-29 Thread Geert Uytterhoeven
drivers/staging/dgap/dgap_driver.c: In function ‘dgap_cleanup_module’: drivers/staging/dgap/dgap_driver.c:423: error: implicit declaration of function ‘kfree’ drivers/staging/dgap/dgap_driver.c: In function ‘dgap_driver_kzmalloc’: drivers/staging/dgap/dgap_driver.c:940: error: implicit

[patch] staging: r8188eu: off by one bugs

2013-08-29 Thread Dan Carpenter
These should be instead of =. Also we can use the ARRAY_SIZE() macro. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/staging/rtl8188eu/core/rtw_cmd.c b/drivers/staging/rtl8188eu/core/rtw_cmd.c index 859fc19..9632ef4 100644 ---

[patch 2/2] staging: rtl8188eu: || vs typo

2013-08-29 Thread Dan Carpenter
Obviously it's impossible for -KeyLength to be both 5 and 13. I assume that was intended here. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/staging/rtl8188eu/core/rtw_ioctl_set.c b/drivers/staging/rtl8188eu/core/rtw_ioctl_set.c index 5fab477..193f641 100644 ---

[patch] staging: r8188eu: copying one byte too much

2013-08-29 Thread Dan Carpenter
There is a copy and paste bug here so we copy 4 bytes instead of 3. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/staging/rtl8188eu/core/rtw_wlan_util.c b/drivers/staging/rtl8188eu/core/rtw_wlan_util.c index a43fc88..013ea48 100644 ---

re: staging: r8188eu: Add files for new driver - part 4

2013-08-29 Thread Dan Carpenter
Hello Larry Finger, The patch 7b464c9fa5cc: staging: r8188eu: Add files for new driver - part 4 from Aug 21, 2013, leads to the following Smatch warning: drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:8328 mlme_evt_hdl() error: buffer overflow 'wlanevents' 24 = 24 8321 /*

[patch 1/2] staging: rtl8188eu: off by one in rtw_set_802_11_add_wep()

2013-08-29 Thread Dan Carpenter
keyid is used as an offset into the -dot11DefKey[] array. The array has 4 elements. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/staging/rtl8188eu/core/rtw_ioctl_set.c b/drivers/staging/rtl8188eu/core/rtw_ioctl_set.c index 9e12774..5fab477 100644 ---

re: staging: r8188eu: Add files for new driver - part 7

2013-08-29 Thread Dan Carpenter
Hello Larry Finger, The patch d6846af679e0: staging: r8188eu: Add files for new driver - part 7 from Aug 21, 2013, leads to the following Smatch warning: drivers/staging/rtl8188eu/core/rtw_xmit.c:1570 dequeue_one_xmitframe() info: ignoring unreachable code. 1559 while

re: staging: r8188eu: Add files for new driver - part 14

2013-08-29 Thread Dan Carpenter
Hello Larry Finger, The patch 615a4d12e556: staging: r8188eu: Add files for new driver - part 14 from Aug 21, 2013, leads to the following warning: drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c:2008 Hal_ReadPowerValueFromPROM_8188E() error: buffer overflow

[PATCH] staging: dgnc: adds TODO

2013-08-29 Thread Lidza Louina
This patchs adds a TODO for the driver. Signed-off-by: Lidza Louina lidza.lou...@gmail.com --- drivers/staging/dgnc/TODO | 17 + 1 file changed, 17 insertions(+) create mode 100644 drivers/staging/dgnc/TODO diff --git a/drivers/staging/dgnc/TODO b/drivers/staging/dgnc/TODO new

[PATCH v2 01/17] staging: comedi: initialize subdevice s-io_bits in postconfig

2013-08-29 Thread H Hartley Sweeten
The subdevice 'io_bits' is a bit mask of the i/o configuration for digital subdevices. '0' values indicate that a channel is configured as an input and '1' values that the channel is an output. Since the subdevice data is kzalloc()'d, all channels default as inputs. Modify

[PATCH v2 05/17] staging: comedi: drivers: use comedi_dio_update_state() for simple cases

2013-08-29 Thread H Hartley Sweeten
Use comedi_dio_update_state() to handle the boilerplate code to update the subdevice s-state for simple cases where the hardware is updated when any channel is modified. Also, fix a bug in the amplc_pc263 and amplc_pci263 drivers where the current state is not returned in data[1]. Signed-off-by:

[PATCH v2 11/17] staging: comedi: das1800: remove do_bits from private data

2013-08-29 Thread H Hartley Sweeten
Use the subdevice 'state' variable instead of carrying the state of the output channels in the private data. Use comedi_dio_update_state() to handle the boilerplate code to update the subdevice s-state. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott

[PATCH v2 14/17] staging: comedi: ssv_dnp: use comedi_dio_update_state()

2013-08-29 Thread H Hartley Sweeten
Use comedi_dio_update_state() to handle the boilerplate code to update the subdevice s-state. Also, fix a bug where the state of the channels is returned in data[0]. The comedi core expects it to be returned in data[1]. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott

[PATCH v2 15/17] staging: comedi: hwdrv_apci3120: use comedi_dio_update_state()

2013-08-29 Thread H Hartley Sweeten
Use comedi_dio_update_state() to handle the boilerplate code to update the subdevice s-state. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- .../staging/comedi/drivers/addi-data/hwdrv_apci3120.c

[PATCH v2 17/17] staging: comedi: drivers: convert remaining drivers to comedi_dio_update_state()

2013-08-29 Thread H Hartley Sweeten
Use comedi_dio_update_state() to handle the boilerplate code to update the subdevice s-state. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/addi_apci_16xx.c | 12