[PATCH] staging: greybus: audio: constify snd_soc_dai_ops structures

2017-08-20 Thread Arvind Yadav
snd_soc_dai_ops are not supposed to change at runtime. All functions working with snd_soc_dai_ops provided by work with const snd_soc_dai_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/staging/greybus/audio_codec.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH] staging: rtl8192e: Change fixed function names with "%s: ", __func__

2017-08-20 Thread Greg Kroah-Hartman
On Fri, Aug 18, 2017 at 11:53:41PM +0800, 张树荣 wrote: > From: Shurong Zhang > > Replace hard-coded function names in strings with "%s", __func__ > in the dot11d.c file. Issue found by checkpatch.pl. > > Signed-off-by: Shurong Zhang > --- > drivers/staging/rtl8192e/dot11d.c | 4 ++-- > 1 fil

Re: [PATCH] staging:wlan-ng Fix Multiple line dereference

2017-08-20 Thread Greg KH
On Fri, Aug 18, 2017 at 06:16:39PM +0530, Janani S wrote: > This patch fixes multiple line dereference warning reported > by checkpatch script. > > Signed-off-by: Janani S > --- > drivers/staging/wlan-ng/hfa384x_usb.c | 12 > 1 file changed, 4 insertions(+), 8 deletions(-) > > diff

[PATCH] Staging: media: Release the correct resource in an error handling path

2017-08-20 Thread Christophe JAILLET
'res' is reassigned several times in the function and if we 'goto error_unmap', its value is not the returned value of 'request_mem_region()' anymore. Introduce a new 'struct resource *' variable (i.e. res2) to keep a pointer to the right resource, if needed in the error handling path. Fixes: 4b4

Re: [PATCH v2 1/4] staging: pi433: Style fix - Correct long lines

2017-08-20 Thread Joe Perches
On Wed, 2017-08-16 at 10:31 +0300, Dan Carpenter wrote: > On Wed, Aug 16, 2017 at 10:53:18AM +0530, Rishabh Hardas wrote: > > @@ -143,10 +142,13 @@ struct pi433_rx_cfg { > > > > #define PI433_IOC_MAGIC'r' > > > > -#define PI433_IOC_RD_TX_CFG_IOR(PI433_IOC_MAGIC, > >

Re: [PATCH 01/15] EDAC: make device_type const

2017-08-20 Thread Borislav Petkov
On Sat, Aug 19, 2017 at 01:52:12PM +0530, Bhumika Goyal wrote: > Make these const as they are only stored in the type field of a device > structure, which is const. > Done using Coccinelle. > > Signed-off-by: Bhumika Goyal > --- > drivers/edac/edac_mc_sysfs.c | 8 > drivers/edac/i7core_