[PATCH] Staging: media: lirc: lirc_serial: replaced printk with pr_debug

2014-11-21 Thread Abel Moyo
Replaced printk with pr_debug in dprintk Signed-off-by: Abel Moyo --- drivers/staging/media/lirc/lirc_serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/lirc/lirc_serial.c b/drivers/staging/media/lirc/lirc_serial.c index 181b92b..86c5274 100644 --

Re: [PATCH 01/19] staging: comedi: drivers: have core hook up default (*insn_read) for readback

2014-11-21 Thread Ian Abbott
On 20/11/14 22:07, H Hartley Sweeten wrote: Most of the comedi drivers that provide readback for write only subdevices now use the comedi core comedi_alloc_subdev_readback() helper to allocate the subdevice 'reaback' member instead of using some member in their private data. These drivers also

Re: [PATCH 00/19] staging: comedi: more comedi_subdevice 'readback' cleanup

2014-11-21 Thread Ian Abbott
On 20/11/14 22:07, H Hartley Sweeten wrote: Most of the comedi drivers that use the comedi_subdevice 'readback' use the core provided (*insn_read) function, comedi_readback_insn_read(). Modify comedi_alloc_subdev_readback() to automatically default the subdevice (*insn_read) to this function afte

Re: [PATCH 00/19] staging: comedi: adv_pci1724: cleanup driver

2014-11-21 Thread Ian Abbott
On 20/11/14 22:10, H Hartley Sweeten wrote: Following is the big cleanup for the adv_pci1724 driver. H Hartley Sweeten (19): staging: comedi: adv_pci1724: use subdevice readback for 'ao_value' staging: comedi: adv_pci1724: use subdevice readback for 'offset_value' staging: comedi: adv_p

Re: [PATCH] Staging: media: lirc: lirc_serial: replaced printk with pr_debug

2014-11-21 Thread Greg KH
On Fri, Nov 21, 2014 at 10:31:57AM +0100, Abel Moyo wrote: > Replaced printk with pr_debug in dprintk > > Signed-off-by: Abel Moyo > --- > drivers/staging/media/lirc/lirc_serial.c | 2 +- Please use scripts/get_maintainer.pl to determine the correct person to send this patch to, it's not me, sor

[PATCH] Staging: media: lirc: lirc_serial: replaced printk with pr_debug

2014-11-21 Thread Abel Moyo
Replaced printk with pr_debug in dprintk Signed-off-by: Abel Moyo --- drivers/staging/media/lirc/lirc_serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/lirc/lirc_serial.c b/drivers/staging/media/lirc/lirc_serial.c index 181b92b..86c5274 100644 --

[PATCH v2 0/9] Replace smp_read_barrier_depends() with lockless_derefrence()

2014-11-21 Thread Pranith Kumar
Recently lockless_dereference() was added which can be used in place of hard-coding smp_read_barrier_depends(). http://lkml.iu.edu/hypermail/linux/kernel/1410.3/04561.html The following series tries to do this. There are still some hard-coded locations which I was not sure how to replace with.

[PATCH v2 4/9] hyperv: Replace smp_read_barrier_depends() with lockless_dereference()

2014-11-21 Thread Pranith Kumar
Recently lockless_dereference() was added which can be used in place of hard-coding smp_read_barrier_depends(). The following PATCH makes the change. Signed-off-by: Pranith Kumar --- include/linux/hyperv.h | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/include/linux

RE: [PATCH 01/19] staging: comedi: drivers: have core hook up default (*insn_read) for readback

2014-11-21 Thread Hartley Sweeten
On Friday, November 21, 2014 3:59 AM, Ian Abbott wrote: > On 20/11/14 22:07, H Hartley Sweeten wrote: >> Most of the comedi drivers that provide readback for write only subdevices >> now >> use the comedi core comedi_alloc_subdev_readback() helper to allocate the >> subdevice >> 'reaback' member

[PATCH v2 01/19] staging: comedi: drivers: have core hook up default (*insn_read) for readback

2014-11-21 Thread H Hartley Sweeten
Most of the comedi drivers that provide readback for write only subdevices now use the comedi core comedi_alloc_subdev_readback() helper to allocate the subdevice 'reaback' member instead of using some member in their private data. These drivers also hook up the (*insn_read) callback to the comed

Re: [PATCH v2 01/19] staging: comedi: drivers: have core hook up default (*insn_read) for readback

2014-11-21 Thread Ian Abbott
On 21/11/2014 17:19, H Hartley Sweeten wrote: Most of the comedi drivers that provide readback for write only subdevices now use the comedi core comedi_alloc_subdev_readback() helper to allocate the subdevice 'reaback' member instead of using some member in their private data. These drivers als

RE: [PATCH] hv: hv_fcopy: drop the obsolete message on transfer failure

2014-11-21 Thread KY Srinivasan
> -Original Message- > From: Dexuan Cui > Sent: Thursday, November 20, 2014 6:41 PM > To: KY Srinivasan; gre...@linuxfoundation.org; linux- > ker...@vger.kernel.org; driverdev-devel@linuxdriverproject.org; > o...@aepfle.de; a...@canonical.com; jasow...@redhat.com > Cc: Haiyang Zhang; Vita

Re: [PATCH 1/1] net: Hyper-V: Deletion of an unnecessary check before the function call "vfree"

2014-11-21 Thread David Miller
From: SF Markus Elfring Date: Thu, 20 Nov 2014 15:25:27 +0100 > From: Markus Elfring > Date: Thu, 20 Nov 2014 15:15:21 +0100 > > The vfree() function performs also input parameter validation. Thus the test > around the call is not needed. > > This issue was detected by using the Coccinelle sof

[PATCH 05/11] staging: comedi: adv_pci1723: use comedi_subdevice readback for 'ao_data'

2014-11-21 Thread H Hartley Sweeten
Use the comedi_subdevice 'readback' member and the core provided (*insn_read) to handle the readback of the write-only analog output subdevice. Remove the then unused 'ao_data' member from the private data. The private data is now unnecessary. Remove it and the allocation. For aesthetics, rename

[PATCH 01/11] staging: comedi: adv_pci1723: tidy up register map

2014-11-21 Thread H Hartley Sweeten
For aesthetics, rename the defines used for the register map offsets and remove the unnecessary comments. Add the bit defines for the registers. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adv_pci1723.c | 117 +++

[PATCH 02/11] staging: comedi: adv_pci1723: remove private data 'da_range'

2014-11-21 Thread H Hartley Sweeten
This member of the private data is initialized to 0 by pci1723_reset() and is not used any where else in the driver. Remove it. Use the register map defines to set the range for each output channel. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/com

[PATCH 07/11] staging: comedi: adv_pci1723: tidy up DIO io_bits initialization

2014-11-21 Thread H Hartley Sweeten
Tidy up the code that determines the initial io_bits (direction) of the digital I/O subdevice and remove the magic numbers. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adv_pci1723.c | 23 +++ 1 file changed, 7 in

[PATCH 11/11] staging: comedi: adv_pci1723: remove comedi_device 'write_subdev' init

2014-11-21 Thread H Hartley Sweeten
The comedi_device 'write_subdev' should only be initialized if the subdevice supports async commands. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adv_pci1723.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/comed

[PATCH 04/11] staging: comedi: adv_pci1723: absorb pci1723_reset()

2014-11-21 Thread H Hartley Sweeten
This function is only called by the (*auto_attach) to reset all the analog output channels. For aesthetics, absorb the function. Fix the range programming for each channel. According to the users manual the "range strobe" register needs to be written after setting the "DAC range control" register

[PATCH 03/11] staging: comedi: adv_pci1723: remove board reset during (*detach)

2014-11-21 Thread H Hartley Sweeten
The pci1723_reset() function simply resets all the analog output channels to 0V and a +/-10V range. This really isn't necessary when detaching the driver. Remove the board reset and just use comedi_pci_detach() directly for the (*detach). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg

[PATCH 09/11] staging: comedi: adv_pci1723: update the MODULE_DESCRIPTION

2014-11-21 Thread H Hartley Sweeten
Update the MODULE_DESCRIPTION to something more useful than the generic "Comedi low-level driver". Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adv_pci1723.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[PATCH 00/11] staging: comedi: adv_pci1723: cleanup driver

2014-11-21 Thread H Hartley Sweeten
Following is the big cleanup for the adv_pci1723 driver. H Hartley Sweeten (11): staging: comedi: adv_pci1723: tidy up register map staging: comedi: adv_pci1723: remove private data 'da_range' staging: comedi: adv_pci1723: remove board reset during (*detach) staging: comedi: adv_pci1723: a

[PATCH 08/11] staging: comedi: adv_pci1723: remove subdevice 'len_chanlist' initialization

2014-11-21 Thread H Hartley Sweeten
The subdevice 'len_chanlist' is only used by subdevices that support async commands. Remove the unnecessary initializations in this driver. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adv_pci1723.c | 4 +--- 1 file changed, 1 insert

[PATCH 10/11] staging: comedi: adv_pci1723: tidy up multi-line comments

2014-11-21 Thread H Hartley Sweeten
Tidy up the multi-line comments to follow the CodingStyle. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adv_pci1723.c | 79 +--- 1 file changed, 38 insertions(+), 41 deletions(-) diff --git a/drivers/staging/

[PATCH 06/11] staging: comedi: adv_pci1723: tidy up pci1723_dio_insn_config()

2014-11-21 Thread H Hartley Sweeten
For aesthetics, tidy this function up and use the register defines to remove the magic numbers. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adv_pci1723.c | 21 ++--- 1 file changed, 6 insertions(+), 15 deletions(-)

Re: net: Hyper-V: Deletion of an unnecessary check before the function call "vfree"

2014-11-21 Thread SF Markus Elfring
> This does not apply to the net-next tree, please respin. Thanks for your reply. How do you think about to try out the scripts which I published in March to get more constructive feedback? Will they run faster for another analysis on current Linux source files with your test systems (than my com

Re: net: Hyper-V: Deletion of an unnecessary check before the function call "vfree"

2014-11-21 Thread David Miller
From: SF Markus Elfring Date: Fri, 21 Nov 2014 23:15:42 +0100 >> This does not apply to the net-next tree, please respin. > > Thanks for your reply. > > How do you think about to try out the scripts which I published > in March to get more constructive feedback? This has nothing to do with me

[PATCH] Staging:skein: Fix trailing whitespace error

2014-11-21 Thread Anjana Sasindran
This patch fixes the checkpatch.pl error: ERROR: trailing whitespace Signed-off-by: Anjana Sasindran --- drivers/staging/skein/skein_generic.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/skein/skein_generic.c b/drivers/staging/skein/skein_generic.c index 7096d5a..86

[PATCH] Drivers:Staging:rtl8188eu:hal:usb_halinit.c: Added blank lines after declarations

2014-11-21 Thread Anjana Sasindran
This patch fixes the five checkpatch.pl warnings: WARNING:Missing a blank line after declaration Signed-off-by: Anjana Sasindran --- drivers/staging/rtl8188eu/hal/usb_halinit.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/staging/rtl8188eu/hal/usb_halinit.c b/drive

[PATCH] Drivers:Staging:rtl8188eu:hal:usb_halinit.c: Added blank lines after declarations

2014-11-21 Thread Anjana Sasindran
This patch fixes the five checkpatch.pl warnings: WARNING:Missing a blank line after declaration Signed-off-by: Anjana Sasindran --- drivers/staging/rtl8188eu/hal/usb_halinit.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/staging/rtl8188eu/hal/usb_halinit.c b/drive

Re: [PATCH] Staging:skein: Fix trailing whitespace error

2014-11-21 Thread Sudip Mukherjee
On Sat, Nov 22, 2014 at 11:34:29AM +0530, Anjana Sasindran wrote: > This patch fixes the checkpatch.pl error: this patch is not applying to next-20141121. > > ERROR: trailing whitespace but your patch is adding a blank line in the code ? thanks sudip > > Signed-off-by: A

Re: [PATCH] Revert "staging: sm7xxfb: remove driver"

2014-11-21 Thread Sudip Mukherjee
On Thu, Nov 20, 2014 at 03:23:29PM -0800, Greg Kroah-Hartman wrote: > On Thu, Nov 20, 2014 at 05:09:25PM -0500, Steven Rostedt wrote: > > > > Someone reported a bug in the function graph tracer for MIPS. As I'm > > still waiting on my USB serial for my Imagination MIPS board, I decided > > to brin

[PATCH] drivers:staging:skein:skein_generic.c: Fixed a whitespace error

2014-11-21 Thread Anjana Sasindran
This patch fixes the checkpatch.pl error: ERROR: trailing whitespace Signed-off-by: Anjana Sasindran --- drivers/staging/skein/skein_generic.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/skein/skein_generic.c b/drivers/staging/skein/skein_generic.c index 7096d5