Re: [PATCH 4/7] staging: nvec: add NVEC_CALL helper macro

2012-06-14 Thread Julian Andres Klode
On Thu, Jun 14, 2012 at 03:09:38PM -0700, Greg KH wrote: > On Thu, Jun 14, 2012 at 11:57:38PM +0200, Marc Dietrich wrote: > > Add a helper macro to wrap nvec_{a}sync_writes and to get rid of > > the various strings distributed all over the nvec code. > > Why can't these be inline functions instead

Re: [PATCH 14/14] staging/xgifb: Cleanup vb_device_info struct

2012-06-14 Thread Dan Carpenter
On Thu, Jun 14, 2012 at 12:21:52AM +0200, Peter Huewe wrote: > @@ -1565,15 +1548,15 @@ unsigned char XGIInitNew(struct pci_dev *pdev) > /* Not DDR */ > xgifb_reg_set(pVBInfo->P3c4, > 0x31, > - (*pVBInfo->pSR31 & 0x3F)

Re: [PATCH 4/7] staging: nvec: add NVEC_CALL helper macro

2012-06-14 Thread Greg KH
On Thu, Jun 14, 2012 at 11:57:38PM +0200, Marc Dietrich wrote: > Add a helper macro to wrap nvec_{a}sync_writes and to get rid of > the various strings distributed all over the nvec code. Why can't these be inline functions instead? That will catch errors easier, and make it a bit more "obvious"

[PATCH 3/7] staging: nvec: cleanup driver registration

2012-06-14 Thread Marc Dietrich
This patch simplifies code by using the module_platform_driver and SIMPLE_DEV_PM_OPS macros. Signed-off-by: Marc Dietrich --- drivers/staging/nvec/nvec.c | 27 +++ drivers/staging/nvec/nvec_kbd.c |7 +-- drivers/staging/nvec/nvec_leds.c | 14 +

[PATCH 7/7] staging: nvec: add remove function to nvec childs

2012-06-14 Thread Marc Dietrich
This patch cleanups registered devices on remove. Signed-off-by: Marc Dietrich --- drivers/staging/nvec/nvec_kbd.c |9 + drivers/staging/nvec/nvec_power.c | 16 drivers/staging/nvec/nvec_ps2.c |8 3 files changed, 33 insertions(+) diff --git a/dri

[PATCH 2/7] staging: nvec: use dev_warn instead of printk

2012-06-14 Thread Marc Dietrich
Replace a printk in nvec core driver with dev_warn. Signed-off-by: Marc Dietrich --- drivers/staging/nvec/nvec.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/staging/nvec/nvec.c b/drivers/staging/nvec/nvec.c index 4245206..8f57b62 100644 --- a/drivers/staging

[PATCH 1/7] staging: nvec: convert to devm_ functions

2012-06-14 Thread Marc Dietrich
This patch cleanups the nvec and its childs by replacing calls to resource allocations by their devm_* equivalents. Signed-off-by: Marc Dietrich --- drivers/staging/nvec/nvec.c | 44 + drivers/staging/nvec/nvec_leds.c | 10 +++-- drivers/staging

[PATCH 0/7 V4] staging: nvec: code cleanups

2012-06-14 Thread Marc Dietrich
This series cleanups the nvec code a bit. The LED driver is renamed to paz00 because it only makes sense on this device. Some plan for the future: - add device tree init for the mfd childs and remove the hard coded (device dependent) init from the core driver - add a gpio

[PATCH 4/7] staging: nvec: add NVEC_CALL helper macro

2012-06-14 Thread Marc Dietrich
Add a helper macro to wrap nvec_{a}sync_writes and to get rid of the various strings distributed all over the nvec code. Signed-off-by: Marc Dietrich --- drivers/staging/nvec/nvec.h | 38 ++ 1 file changed, 38 insertions(+) diff --git a/drivers/staging/nvec

[PATCH 5/7] staging: nvec: cleanup the string mess

2012-06-14 Thread Marc Dietrich
Use the newly introduced NVEC_CALL to cleanup the various nvec command strings in the nvec driver. Signed-off-by: Marc Dietrich --- drivers/staging/nvec/nvec.c | 39 +++-- drivers/staging/nvec/nvec.h | 49 - drivers/stag

[PATCH 6/7] staging: nvec: rename led driver to board specific paz00 driver

2012-06-14 Thread Marc Dietrich
The led driver used OEM commands which are not part of the nvec protocol definition. Therefore it is renamed to nvec_paz00 to reflect that it only applies to PAZ00 board based devices. Signed-off-by: Marc Dietrich --- drivers/staging/nvec/Kconfig |9 drivers/st

Re: [PATCH 1/6] staging: nvec: convert to devm_ functions

2012-06-14 Thread Marc Dietrich
On Wednesday 13 June 2012 12:19:47 Greg KH wrote: > On Wed, Jun 13, 2012 at 11:16:29AM +0200, Marc Dietrich wrote: > > This patch cleanups the nvec and its childs by replacing calls to > > resource allocations by their devm_* equivalents. > > > > Signed-off-by: Marc Dietrich > > --- > > > > fixe

[PATCH] staging: gdm72xx: Release netlink socket properly

2012-06-14 Thread Ben Chan
This patch modifies the gdm72xx driver to properly release a netlink socket using netlink_kernel_release. It fixes the following kernel crash, which occurs after repeatedly suspending and resuming a system. kernel BUG at /home/benchan/trunk/src/third_party/kernel/files/mm/slub.c:3471! inval

Re: [PATCH] staging: zsmalloc: fix uninit'ed variable warning

2012-06-14 Thread Konrad Rzeszutek Wilk
On Wed, Jun 13, 2012 at 04:03:42PM -0500, Seth Jennings wrote: > This patch fixes an uninitialized variable warning in > alloc_zspage(). It also fixes the secondary issue of > prev_page leaving scope on each loop iteration. The only > reason this ever worked was because prev_page was occupying >

Re: [PATCH] staging: zsmalloc: fix uninit'ed variable warning

2012-06-14 Thread Seth Jennings
On 06/13/2012 08:35 PM, Minchan Kim wrote: > Nice catch! by Andrew! > Nitpick: > I can't see the warning. > My gcc version is gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3. I couldn't either but Andrew could and he verified the fix. Not sure what gcc version he is running. > Please, Cced linux-m

Re: [PATCH] Staging: comedi: fixed warning message prefer pr_err in ni_labpc.c This is a patch to the ni_labpc.c file that fixes up several 'prefer pr_err' warnings found by the checkpatch.pl tool

2012-06-14 Thread Dan Carpenter
There are a lot of problems with this patch... :/ The subject is messed up. Hint put a blank line between the subject and the body of the changelog. Send it to yourself first and try applying it with git am. Only make one kind of change per patch. There is no signed off by line. That's not ho

[PATCH] Staging: comedi: fixed warning message prefer pr_err in ni_labpc.c This is a patch to the ni_labpc.c file that fixes up several 'prefer pr_err' warnings found by the checkpatch.pl tool

2012-06-14 Thread andy . zaugg
From: andy zaugg --- drivers/staging/comedi/drivers/ni_labpc.c | 37 +++-- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/drivers/staging/comedi/drivers/ni_labpc.c b/drivers/staging/comedi/drivers/ni_labpc.c index 5334977..807a774 100644 --- a/drivers/

Re: [PATCH 14/14] staging/xgifb: Cleanup vb_device_info struct

2012-06-14 Thread Dan Carpenter
On Thu, Jun 14, 2012 at 01:07:47PM +0200, Peter Huewe wrote: > Hi Dan, > Thanks for the feedback. > I agree somewhat with you that the patch is quite big and complex, that's why > I added the seperators in the commit message, but when I created the patch it > seemed logical enough (to me :) to k

Re: [PATCH 14/14] staging/xgifb: Cleanup vb_device_info struct

2012-06-14 Thread Dan Carpenter
This is a complicated patch to review. It feels like each of the === sections could be submitted as a separate patch. regards, dan carpenter ___ devel mailing list devel@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/dev

Re: [PATCH 12/15] staging: comedi: 8255: refactor subdev_8255_insn function

2012-06-14 Thread Ian Abbott
On 2012/06/13 11:42 PM, H Hartley Sweeten wrote: > Refactor the subdev_8255_insn function to follow what the user > space library is doing. > > 1) This function requires 'data' to contain 2 parameters. Add a > sanity check for this (insn->n != 2). Actually, the comedi core will have already check