[patch 1/2] Staging: silicom: add some range checks to proc functions

2012-09-13 Thread Dan Carpenter
If you tried to cat more than 255 characters (the last character is for the terminator) to these proc files then it would corrupt kernel memory. Signed-off-by: Dan Carpenter diff --git a/drivers/staging/silicom/bp_mod.c b/drivers/staging/silicom/bp_mod.c index 6e999c7..1b3f5e7 100644 --- a/drive

[PATCH v3] staging/gdm72xx: usb_boot: replace firmware upgrade API in em_download

2012-09-13 Thread Macpaul Lin
Replace firmware upgrade API in em_download_image(). Signed-off-by: Macpaul Lin Cc: Paul Stewart Cc: Ben Chan Cc: Sage Ahn Cc: Greg Kroah-Hartman Cc: Dan Carpenter --- Changes for v2: - Correction the procedure in em_download_image() and usb_emergency() - keep "goto out" in em_download_i

Re: [PATCH] staging: nvec: adjust for mfd_add_devices() API change

2012-09-13 Thread Greg Kroah-Hartman
On Wed, Sep 12, 2012 at 10:26:00AM -0600, Stephen Warren wrote: > From: Stephen Warren > > Commit 6607bad "mfd: core: Push irqdomain mapping out into devices" > added a new parameter to mfd_add_devices(), but missed updating the > nvec driver in staging. > > Cc: Mark Brown > Cc: Marc Dietrich

[PATCH] Staging: bcm: Fix udelay related compilation error

2012-09-13 Thread Tushar Behera
commit 6788d7dab6a5 ("Staging: bcm: Use udelay instead of msleep for delays in nvm.c") replaces msleep with udelay values. udelay values of more than 1000 should be replaced by mdelay instead. This fixes following build error. ERROR: "__bad_udelay" [drivers/staging/bcm/bcm_wimax.ko] undefined! mak

Re: [PATCH v2 3/3] staging/gdm72xx: usb_boot: replace firmware upgrade API in em_download

2012-09-13 Thread Greg Kroah-Hartman
On Fri, Sep 14, 2012 at 10:02:49AM +0800, Macpaul Lin wrote: > Hi Ben, > > 2012/9/14 Ben Chan : > > Hi Macpaul, > > > > Thanks for the patch. Some comments inlined. > > > > I briefly tested the patch on hardware and it seemed to work fine. > > > > - Ben > > Thanks for your comment and testing on

Re: [PATCH 1/2] Staging: silicom: checkpatch cleanup: header file tabs

2012-09-13 Thread Greg KH
On Wed, Sep 12, 2012 at 08:10:11PM -0700, Daniel Cotey wrote: > Fixup the define tabs and spaces > > Signed-off-by: Daniel Cotey This patch doesn't apply properly, there's some fuzz, did you do it against the right tree? Also, all of your subjects need some work. What's with the "2", "3", and

Re: [PATCH v2 3/3] staging/gdm72xx: usb_boot: replace firmware upgrade API in em_download

2012-09-13 Thread Macpaul Lin
Hi Ben, 2012/9/14 Ben Chan : > Hi Macpaul, > > Thanks for the patch. Some comments inlined. > > I briefly tested the patch on hardware and it seemed to work fine. > > - Ben Thanks for your comment and testing on these patches. I think Greg could pick up the previous 2 patches at first if there is

[PATCH 5/5] Staging: bcm: Convert INT to int in Transmit.c

2012-09-13 Thread Kevin McKinney
This patch converts INT to int in Transmit.c Signed-off-by: Kevin McKinney --- drivers/staging/bcm/Transmit.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/bcm/Transmit.c b/drivers/staging/bcm/Transmit.c index adf545f..27e8c89 100644 --- a/drivers/sta

[PATCH 4/5] Staging: bcm: Properly format comments in Transmit.c

2012-09-13 Thread Kevin McKinney
This patch properly formats comments as reported by checkpatch.pl. Signed-off-by: Kevin McKinney --- drivers/staging/bcm/Transmit.c | 92 1 file changed, 46 insertions(+), 46 deletions(-) diff --git a/drivers/staging/bcm/Transmit.c b/drivers/staging/bc

[PATCH 3/5] Staging: bcm: Remove initialization from if statement in Transmit.c

2012-09-13 Thread Kevin McKinney
This patch Remove initialization from if statement in Transmit.c as reported by checkpatch.pl. Signed-off-by: Kevin McKinney --- drivers/staging/bcm/Transmit.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/bcm/Transmit.c b/drivers/staging/bcm/Transmit.c

[PATCH 2/5] Staging: bcm: Properly format braces in Transmit.c

2012-09-13 Thread Kevin McKinney
This patch cuddles braces as reported by checkpatch.pl. Signed-off-by: Kevin McKinney --- drivers/staging/bcm/Transmit.c | 53 +--- 1 file changed, 17 insertions(+), 36 deletions(-) diff --git a/drivers/staging/bcm/Transmit.c b/drivers/staging/bcm/Transmit.

[PATCH 1/5] Staging: bcm: Fix all white space issues in Transmit.c

2012-09-13 Thread Kevin McKinney
This patch fixes all white space issues as reported by checkpatch.pl. Signed-off-by: Kevin McKinney --- drivers/staging/bcm/Transmit.c | 116 +++- 1 file changed, 56 insertions(+), 60 deletions(-) diff --git a/drivers/staging/bcm/Transmit.c b/drivers/staging

Re: [PATCH 07/24] Staging: ipack/devices/ipoctal: Store isr masks in ipoctal_channel

2012-09-13 Thread Joe Perches
On Thu, 2012-09-13 at 22:17 +0300, Dan Carpenter wrote: > If it weren't in staging-next then, yeah, it probably would have > been better to resend those two patches. You could send them by > themselves without resending any of the others. But once they hit > staging-next, it's too late. > > No

Re: [PATCH 07/24] Staging: ipack/devices/ipoctal: Store isr masks in ipoctal_channel

2012-09-13 Thread Dan Carpenter
On Thu, Sep 13, 2012 at 08:43:46PM +0200, Jens Taprogge wrote: > On Thu, Sep 13, 2012 at 11:19:17AM -0700, Joe Perches wrote: > > On Thu, 2012-09-13 at 20:49 +0300, Dan Carpenter wrote: > > > On Thu, Sep 13, 2012 at 08:43:12PM +0300, Dan Carpenter wrote: > > > > On Wed, Sep 12, 2012 at 02:55:29PM +

Re: [PATCH v2 3/3] staging/gdm72xx: usb_boot: replace firmware upgrade API in em_download

2012-09-13 Thread Ben Chan
Hi Macpaul, Thanks for the patch. Some comments inlined. I briefly tested the patch on hardware and it seemed to work fine. - Ben On Thu, Sep 13, 2012 at 3:11 AM, Macpaul Lin wrote: > > Replace firmware upgrade API in em_download_image(). > > Signed-off-by: Macpaul Lin > Cc: Paul Stewart > C

[PATCH 9/9] Staging: silicom: checkpatch.pl cleanup: pretty pointers

2012-09-13 Thread Daniel Cotey
last of the unstylistic pointers cleaned up Signed-off-by: Daniel Cotey --- drivers/staging/silicom/bp_mod.c | 70 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/drivers/staging/silicom/bp_mod.c b/drivers/staging/silicom/bp_mod.c index ad

[PATCH 8/9] Staging: silicom: checkpatch.pl cleanup: pretty pointers5

2012-09-13 Thread Daniel Cotey
More pointer style cleanup Signed-off-by: Daniel Cotey --- drivers/staging/silicom/bp_mod.c | 82 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/drivers/staging/silicom/bp_mod.c b/drivers/staging/silicom/bp_mod.c index ac5427d..adaa715 10

[PATCH 7/9] Staging: silicom: checkpatch.pl cleanup: pretty pointers4

2012-09-13 Thread Daniel Cotey
more checkpatch cleanups of pointers. Signed-off-by: Daniel Cotey --- drivers/staging/silicom/bp_mod.c | 66 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/drivers/staging/silicom/bp_mod.c b/drivers/staging/silicom/bp_mod.c index debe242.

[PATCH 6/9] Staging: silicom: checkpatch.pl cleanup: pretty pointers3

2012-09-13 Thread Daniel Cotey
More pointer style cleanup Signed-off-by: Daniel Cotey --- drivers/staging/silicom/bp_mod.c | 66 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/drivers/staging/silicom/bp_mod.c b/drivers/staging/silicom/bp_mod.c index 37e96d3..debe242 10

[PATCH 5/9] Staging: silicom: checkpatch.pl cleanup: pretty pointers2

2012-09-13 Thread Daniel Cotey
More notation fixes Signed-off-by: Daniel Cotey --- drivers/staging/silicom/bp_mod.c | 64 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/drivers/staging/silicom/bp_mod.c b/drivers/staging/silicom/bp_mod.c index 28d9595..37e96d3 100644 --

[PATCH 4/9] Staging: silicom: checkpatch.pl cleanup: pretty pointers

2012-09-13 Thread Daniel Cotey
straighten up the pointer notation Signed-off-by: Daniel Cotey --- drivers/staging/silicom/bp_mod.c | 46 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/drivers/staging/silicom/bp_mod.c b/drivers/staging/silicom/bp_mod.c index 70425c7..28

[PATCH 3/9] Staging: silicom: checkpatch cleanup: fix includes

2012-09-13 Thread Daniel Cotey
checkpatch fixups Signed-off-by: Daniel Cotey --- drivers/staging/silicom/bp_mod.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/staging/silicom/bp_mod.c b/drivers/staging/silicom/bp_mod.c index 0d96196..70425c7 100644 --- a/drivers/staging/silicom/bp_mod.c +++

Re: [PATCH 07/24] Staging: ipack/devices/ipoctal: Store isr masks in ipoctal_channel

2012-09-13 Thread Jens Taprogge
On Thu, Sep 13, 2012 at 11:19:17AM -0700, Joe Perches wrote: > On Thu, 2012-09-13 at 20:49 +0300, Dan Carpenter wrote: > > On Thu, Sep 13, 2012 at 08:43:12PM +0300, Dan Carpenter wrote: > > > On Wed, Sep 12, 2012 at 02:55:29PM +0200, Samuel Iglesias Gonsalvez wrote: > > > > From: Jens Taprogge > >

[PATCH 2/9] Staging: silicom: checkpatch cleanup: header file whitespace

2012-09-13 Thread Daniel Cotey
Finish trailing spaces in libbp_sd.h Signed-off-by: Daniel Cotey --- drivers/staging/silicom/libbp_sd.h | 52 +++--- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/drivers/staging/silicom/libbp_sd.h b/drivers/staging/silicom/libbp_sd.h index cba9

[PATCH 1/9] Staging: silicom: checkpatch cleanup: header file whitespace

2012-09-13 Thread Daniel Cotey
Whack all the line ending spaces so checkpatch.pl is happy. Signed-off-by: Daniel Cotey --- drivers/staging/silicom/libbp_sd.h | 142 ++--- 1 file changed, 71 insertions(+), 71 deletions(-) diff --git a/drivers/staging/silicom/libbp_sd.h b/drivers/staging/silico

Re: [PATCH 07/24] Staging: ipack/devices/ipoctal: Store isr masks in ipoctal_channel

2012-09-13 Thread Joe Perches
On Thu, 2012-09-13 at 20:49 +0300, Dan Carpenter wrote: > On Thu, Sep 13, 2012 at 08:43:12PM +0300, Dan Carpenter wrote: > > On Wed, Sep 12, 2012 at 02:55:29PM +0200, Samuel Iglesias Gonsalvez wrote: > > > From: Jens Taprogge > > > > > > This way interrupt handling becomes independent of the chan

Re: [PATCH 07/24] Staging: ipack/devices/ipoctal: Store isr masks in ipoctal_channel

2012-09-13 Thread Dan Carpenter
On Thu, Sep 13, 2012 at 08:43:12PM +0300, Dan Carpenter wrote: > On Wed, Sep 12, 2012 at 02:55:29PM +0200, Samuel Iglesias Gonsalvez wrote: > > From: Jens Taprogge > > > > This way interrupt handling becomes independent of the channel number. > > > > Signed-off-by: Jens Taprogge > > Signed-off-

[GIT PATCH] staging fixes for 3.6-rc6

2012-09-13 Thread Greg KH
The following changes since commit fea7a08acb13524b47711625eebea40a0ede69a0: Linux 3.6-rc3 (2012-08-22 13:29:06 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git/ tags/staging-3.6-rc6 for you to fetch changes up to 94254edc9c5b4

Re: [PATCH 07/24] Staging: ipack/devices/ipoctal: Store isr masks in ipoctal_channel

2012-09-13 Thread Dan Carpenter
On Wed, Sep 12, 2012 at 02:55:29PM +0200, Samuel Iglesias Gonsalvez wrote: > From: Jens Taprogge > > This way interrupt handling becomes independent of the channel number. > > Signed-off-by: Jens Taprogge > Signed-off-by: Samuel Iglesias Gonsalvez > --- > @@ -213,7 +206,7 @@ static int ipoctal

[PATCH 2/2] staging: comedi: 8255_pci: move ni_pcidio 8255 board support

2012-09-13 Thread H Hartley Sweeten
The 8255 based boards in the ni_pcidio driver are all simple memory mapped 8255 boards that don't require the dma support provided by the mite driver. Move the support for these boards from the ni_pcidio driver to the generic 8255_pci driver. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc:

[PATCH 1/2] staging: comedi: 8255_pci: support memory mapped i/o boards

2012-09-13 Thread H Hartley Sweeten
Some of the PCI based 8255 boards that can be supported by this driver use memory mapped i/o. Add the code needed to support these boards. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/8255_pci.c | 46 +--

[PATCH 0/2] staging: comedi: 8255_pci: add memory mapped i/o boards

2012-09-13 Thread H Hartley Sweeten
Add support to the 8255_pci driver for memory mapped i/o boards and move the 8255 based ni_pcidio boards to this driver. H Hartley Sweeten (2): staging: comedi: 8255_pci: support memory mapped i/o boards staging: comedi: 8255_pci: move ni_pcidio 8255 board support drivers/staging/comedi/Kcon

[PATCH 2/2] staging:ccg: cleanup a bit of binding

2012-09-13 Thread Devendra Naga
the ccg_bind_function uses ret variable and a logic around the ccg_bind_enabled_functions to return a value other than 0 if bind function fail, other wise returns 0, this can be achieved with just a return ccg_bind_enabled_functions(dev, c); Signed-off-by: Devendra Naga --- drivers/staging/ccg/c

[PATCH 1/2] staging:ccg: fix a class_destroy when kmalloc fails after the class_create

2012-09-13 Thread Devendra Naga
we do class_create and call kmalloc to allocate dev pointer, and if kmalloc fail we forget destoying class Signed-off-by: Devendra Naga --- drivers/staging/ccg/ccg.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/staging/ccg/ccg.c b/drivers/staging/ccg/ccg.c in

[PATCH] staging: comedi: 8255_pci: add vendor id to boardinfo

2012-09-13 Thread H Hartley Sweeten
This driver supports PCI boards from multiple vendors. It's possible for boards from different vendors to have the same device id. Add the vendor id to the boardinfo so pci_8255_find_boardinfo() matches the pci_dev to the correct boardinfo. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Gr

RE: [PATCH 3/4] staging: comedi: remove cb_pcidio driver

2012-09-13 Thread H Hartley Sweeten
On Thursday, September 13, 2012 3:05 AM, Ian Abbott wrote: > On 2012-09-12 23:37, H Hartley Sweeten wrote: >> Move the support for the boards in the cb_pcidio driver to >> the generic 8255_pci driver and remove the cb_pcidio driver. >> >> Signed-off-by: H Hartley Sweeten >> Cc: Ian Abbott >> Cc:

Re: [PATCH 1/2] Staging: Comedi: dyna_pci10xx: Replace printk with dev_info

2012-09-13 Thread Dan Carpenter
On Thu, Sep 13, 2012 at 04:46:02PM +0200, Bruce Humphrey wrote: > Thanks for all the comments! > > My own answers are from the complete linux kernel newbie point of view! > That's why I'm writing them even if they seem obvious, to make sure. > > > data[n] = 0; > > > - p

Re: [PATCH 5/9] drivers/staging/gdm72xx/gdm_sdio.c: Remove useless kfree

2012-09-13 Thread walter harms
Am 12.09.2012 17:06, schrieb Peter Senna Tschudin: > From: Peter Senna Tschudin > > Remove useless kfree() and clean up code related to the removal. > > The semantic patch that finds this problem is as follows: > (http://coccinelle.lip6.fr/) > > // > @r exists@ > position p1,p2; > expression

[PATCH v2 4/5] Staging: ipack/devices/ipoctal: acknowledge BREAK condition.

2012-09-13 Thread Samuel Iglesias Gonsalvez
Clear the BREAK flag from the ISR register. Doing that, we avoid to read the same condition for the next character received. Signed-off-by: Samuel Iglesias Gonsalvez --- drivers/staging/ipack/devices/ipoctal.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/ipack/devices/i

[PATCH v2 5/5] Staging: ipack/devices/ipoctal: simplify ipoctal_write_tty()

2012-09-13 Thread Samuel Iglesias Gonsalvez
Remove count_wr and the assigment of nb_bytes = 0 in that function as is useless. Now it returns the count of the characters actually sent. There is other nb_bytes = 0 deleted that has a duplicate a few lines before. Signed-off-by: Samuel Iglesias Gonsalvez --- drivers/staging/ipack/devices/ipo

Re: [PATCH 3/5] staging: ipack: remove irq field in struct ipack_device.

2012-09-13 Thread Samuel Iglesias Gonsálvez
On Thu, 2012-09-13 at 13:01 +0300, Dan Carpenter wrote: > On Thu, Sep 13, 2012 at 11:46:26AM +0200, Samuel Iglesias Gonsalvez wrote: > > From: Jens Taprogge > > > > The field irq currently is identical to the slot number. It does not seem > > to > > have any real use. The number is written to

[PATCH v2 3/5] staging: ipack: remove irq field in struct ipack_device.

2012-09-13 Thread Samuel Iglesias Gonsalvez
From: Jens Taprogge The field irq currently is identical to the slot number. It does not seem to have any real use. The number is written to hardware in ipoctal but it seems the value that is written does not matter. Signed-off-by: Jens Taprogge Signed-off-by: Samuel Iglesias Gonsalvez ---

[PATCH v2 1/5] Staging: ipack: Add IPACK_INT_SPACE memory space.

2012-09-13 Thread Samuel Iglesias Gonsalvez
From: Jens Taprogge This will allow us to correctly access the IPack INT space. Signed-off-by: Jens Taprogge Signed-off-by: Samuel Iglesias Gonsalvez --- drivers/staging/ipack/bridges/tpci200.c | 29 + drivers/staging/ipack/bridges/tpci200.h |2 ++ drivers/st

[PATCH v2 2/5] Staging: ipack: move the responsibility to clear interrupts to the IPack devices.

2012-09-13 Thread Samuel Iglesias Gonsalvez
From: Jens Taprogge Now the IPack device acknowledges its own IRQ. Signed-off-by: Jens Taprogge Signed-off-by: Samuel Iglesias Gonsalvez --- drivers/staging/ipack/bridges/tpci200.c |4 drivers/staging/ipack/devices/ipoctal.c | 19 +-- drivers/staging/ipack/devices/s

[PATCH v2 3/3] staging/gdm72xx: usb_boot: replace firmware upgrade API in em_download

2012-09-13 Thread Macpaul Lin
Replace firmware upgrade API in em_download_image(). Signed-off-by: Macpaul Lin Cc: Paul Stewart Cc: Ben Chan Cc: Sage Ahn Cc: Greg Kroah-Hartman Cc: Dan Carpenter --- Changes for v2: - Correction the procedure in em_download_image() and usb_emergency() - keep "goto out" in em_download_i

[PATCH v2 2/3] staging/gdm72xx: usb_boot: replace firmware upgrade API

2012-09-13 Thread Macpaul Lin
Replace file I/O of reading firmware usb_boot() by request_firmware(). Signed-off-by: Macpaul Lin --- Changes for v2: - Split coding style clean up into another patch. - Split fixing for em_download_image() to another patch. - Refine procedure in download_image() makes eaiser to be understa

[PATCH v2 1/3] staging/gdm72xx: usb_boot: coding style cleanup

2012-09-13 Thread Macpaul Lin
1. Coding style re-formatting (tabs). 2. Remove unused MIN() marco. Signed-off-by: Macpaul Lin Cc: Paul Stewart Cc: Ben Chan Cc: Sage Ahn Cc: Greg Kroah-Hartman Cc: Dan Carpenter --- drivers/staging/gdm72xx/usb_boot.c | 36 +--- 1 file changed, 17 insertions(

Re: [PATCH 4/5] Staging: ipack/devices/ipoctal: acknowledge BREAK condition.

2012-09-13 Thread Samuel Iglesias Gonsálvez
On Thu, 2012-09-13 at 13:02 +0300, Dan Carpenter wrote: > On Thu, Sep 13, 2012 at 11:46:27AM +0200, Samuel Iglesias Gonsalvez wrote: > > Clear the BREAK flag from the ISR register. > > > > Signed-off-by: Samuel Iglesias Gonsalvez > > What are the user visible effects of this bugfix? > It clear

Re: [PATCH 3/4] staging: comedi: remove cb_pcidio driver

2012-09-13 Thread Ian Abbott
On 2012-09-12 23:37, H Hartley Sweeten wrote: Move the support for the boards in the cb_pcidio driver to the generic 8255_pci driver and remove the cb_pcidio driver. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/Kconfig | 11 +

Re: [PATCH 4/5] Staging: ipack/devices/ipoctal: acknowledge BREAK condition.

2012-09-13 Thread Dan Carpenter
On Thu, Sep 13, 2012 at 11:46:27AM +0200, Samuel Iglesias Gonsalvez wrote: > Clear the BREAK flag from the ISR register. > > Signed-off-by: Samuel Iglesias Gonsalvez What are the user visible effects of this bugfix? regards, dan carpenter ___ devel m

Re: [PATCH 3/5] staging: ipack: remove irq field in struct ipack_device.

2012-09-13 Thread Dan Carpenter
On Thu, Sep 13, 2012 at 11:46:26AM +0200, Samuel Iglesias Gonsalvez wrote: > From: Jens Taprogge > > The field irq currently is identical to the slot number. It does not seem to > have any real use. The number is written to hardware in ipoctal but it seems > the value that is written does not m

[PATCH 2/5] Staging: ipack: move the responsibility to clear interrupts to the IPack devices.

2012-09-13 Thread Samuel Iglesias Gonsalvez
From: Jens Taprogge Now the IPack device acknowledges its own IRQ. Signed-off-by: Jens Taprogge Signed-off-by: Samuel Iglesias Gonsalvez --- drivers/staging/ipack/bridges/tpci200.c |4 drivers/staging/ipack/devices/ipoctal.c | 19 +-- drivers/staging/ipack/devices/s

[PATCH 1/5] Staging: ipack: Add IPACK_INT_SPACE memory space.

2012-09-13 Thread Samuel Iglesias Gonsalvez
From: Jens Taprogge This will allow us to correctly access the IPack INT space. Signed-off-by: Jens Taprogge Signed-off-by: Samuel Iglesias Gonsalvez --- drivers/staging/ipack/bridges/tpci200.c | 29 + drivers/staging/ipack/bridges/tpci200.h |2 ++ drivers/st

[PATCH 4/5] Staging: ipack/devices/ipoctal: acknowledge BREAK condition.

2012-09-13 Thread Samuel Iglesias Gonsalvez
Clear the BREAK flag from the ISR register. Signed-off-by: Samuel Iglesias Gonsalvez --- drivers/staging/ipack/devices/ipoctal.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/ipack/devices/ipoctal.c b/drivers/staging/ipack/devices/ipoctal.c index 0fd0e01..5f4545a 100644

[PATCH 3/5] staging: ipack: remove irq field in struct ipack_device.

2012-09-13 Thread Samuel Iglesias Gonsalvez
From: Jens Taprogge The field irq currently is identical to the slot number. It does not seem to have any real use. The number is written to hardware in ipoctal but it seems the value that is written does not matter. Signed-off-by: Jens Taprogge Signed-off-by: Samuel Iglesias Gonsalvez ---

[PATCH 5/5] Staging: ipack/devices/ipoctal: simplify ipoctal_write_tty()

2012-09-13 Thread Samuel Iglesias Gonsalvez
Remove count_wr and the assigment of nb_bytes = 0 in that function as is useless. Now it returns the count of the characters actually sent. There is other nb_bytes = 0 deleted that has a duplicate a few lines before. Signed-off-by: Samuel Iglesias Gonsalvez --- drivers/staging/ipack/devices/ipo

[PATCH 4/4] staging:wlan-ng: remove the remaining return at the end of void function

2012-09-13 Thread Devendra Naga
this removes the remaining return which the function actually wants to return, for that it used goto failed and failed lable have the return statement at the end of function, which is all unnecessary, remove this and make the function return at the places where it does the goto failed Signed-off-b

[PATCH 2/4] staging:wlan-ng: clean hfa384x_usbctlx_submit

2012-09-13 Thread Devendra Naga
else is not required as such we can do with just with a single if Signed-off-by: Devendra Naga --- drivers/staging/wlan-ng/hfa384x_usb.c | 17 +++-- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/drivers/staging/wlan-ng/hfa384x_usb.c b/drivers/staging/wlan-ng/hfa38

[PATCH 3/4] staging:wlan-ng: remove all the return statements at the end of functions

2012-09-13 Thread Devendra Naga
this file is having all unnecessary return statements at the end of functions which return void, remove all of them. some of the functions still uses the return for having the goto end, which the label end defined at the end of the function which returns void, this will be cleaned up in next chang

[PATCH 1/4] staging:wlan-ng: make wlan_unsetup void

2012-09-13 Thread Devendra Naga
this is because this function does a deinit job and most of the deinit functions are expected to return void. Also this function doesn't fail anywhere.. Signed-off-by: Devendra Naga --- drivers/staging/wlan-ng/p80211netdev.c |6 +- drivers/staging/wlan-ng/p80211netdev.h |2 +- 2 file

Re: [PATCH 2/2] Staging: comedi: fl512: Replace printk with dev_info et al

2012-09-13 Thread Dan Carpenter
On Thu, Sep 13, 2012 at 03:46:36AM +0200, Bruce Humphrey wrote: > Replace printk(KERN_XXX with the appropiate dev_info, dev_warn, dev_dbg in > fl512.c > > Signed-off-by: Bruce Humphrey Ventura > --- > drivers/staging/comedi/drivers/fl512.c | 12 +++- > 1 file changed, 7 insertions(+),

Re: [PATCH 1/2] Staging: Comedi: dyna_pci10xx: Replace printk with dev_info

2012-09-13 Thread Dan Carpenter
On Thu, Sep 13, 2012 at 03:46:00AM +0200, Bruce Humphrey wrote: > Replace printk(KERN_XXX with dev_info, dev_warn, dev_dbg as appropiate in > dyna_pci10xx > > Signed-off-by: Bruce Humphrey Ventura > --- > drivers/staging/comedi/drivers/dyna_pci10xx.c | 14 ++ > 1 file changed, 6 i