[PATCH 0/3] ALSA: make snd_kcontrol_new const

2017-08-16 Thread Bhumika Goyal
Make these structures const. Done using Coccinelle. Bhumika Goyal (3): ALSA: aoa: make snd_kcontrol_new const ALSA: pcxhr: make snd_kcontrol_new const ALSA: hda: make snd_kcontrol_new const sound/aoa/codecs/onyx.c| 12 ++-- sound/pci/hda/patch_analog.c | 4 ++-- sound

[PATCH 1/3] ALSA: aoa: make snd_kcontrol_new const

2017-08-16 Thread Bhumika Goyal
Make these const as they are only used during a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/aoa/codecs/onyx.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sound/aoa/codecs/onyx.c b/sound/aoa/codecs/onyx.c index a04edff

[PATCH 2/3] ALSA: pcxhr: make snd_kcontrol_new const

2017-08-16 Thread Bhumika Goyal
Make these const as they are only used during a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/pci/pcxhr/pcxhr_mixer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/pci/pcxhr/pcxhr_mixer.c b/sound/pci/pcxhr/pcxhr_mixer.c index

[PATCH 3/3] ALSA: hda: make snd_kcontrol_new const

2017-08-16 Thread Bhumika Goyal
Make these const as they are only passed as the 3rd argument to the function snd_hda_gen_add_kctl, which is of type const. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/pci/hda/patch_analog.c | 4 ++-- sound/pci/hda/patch_sigmatel.c | 2 +- 2 files changed, 3 insertions(+), 3

[PATCH 0/2] [media]: make snd_kcontrol_new const

2017-08-16 Thread Bhumika Goyal
Make these const. Done using Coccinelle. Bhumika Goyal (2): [media] cx88: make snd_kcontrol_new const [media] solo6x10: make snd_kcontrol_new const drivers/media/pci/cx88/cx88-alsa.c | 2 +- drivers/media/pci/solo6x10/solo6x10-g723.c | 2 +- 2 files changed, 2 insertions(+), 2

[PATCH 1/2] [media] cx88: make snd_kcontrol_new const

2017-08-16 Thread Bhumika Goyal
Make this const as it only passed as the 1st argument to the function snd_ctl_new1, which is of type const. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/media/pci/cx88/cx88-alsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/pci/cx88/cx88

[PATCH 2/2] [media] solo6x10: make snd_kcontrol_new const

2017-08-16 Thread Bhumika Goyal
Make this const as it is only used during a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/media/pci/solo6x10/solo6x10-g723.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/pci/solo6x10/solo6x10-g723.c b/drivers/media/pci

[PATCH] ASoC: codecs: make snd_compr_ops const

2017-08-16 Thread Bhumika Goyal
Make these const as they are only stored in the compr_ops field of a snd_soc_platform_driver structure, which is of type const. Done using Coccinelle Signed-off-by: Bhumika Goyal --- sound/soc/codecs/cs47l24.c | 2 +- sound/soc/codecs/wm5102.c | 2 +- sound/soc/codecs/wm5110.c | 2 +- 3 files

[PATCH] [media] cx18: Fix incompatible type for argument error

2017-08-16 Thread Bhumika Goyal
The first argument of function snd_ctl_new1 is of type const struct snd_kcontrol_new * but in this file the variable is passed by value to this function. This generated ""incompatible type for argument" error. So, pass the variable by reference. Signed-off-by: Bhumika Goyal --- I

[PATCH] [media] ivtv: Fix incompatible type for argument error

2017-08-16 Thread Bhumika Goyal
The first argument of function snd_ctl_new1 is of type const struct snd_kcontrol_new * but in this file the variable is passed by value to this function. This generated ""incompatible type for argument" error. So, pass the variable by reference. Signed-off-by: Bhumika Goyal --- I

[PATCH 0/7] ASoC: make snd_soc_ops const

2017-08-16 Thread Bhumika Goyal
Make these const. Done using Coccinelle. Bhumika Goyal (7): ASoC: aux1x: make snd_soc_ops const ASoC: cirrus: make snd_soc_ops const ASoC: generic: make snd_soc_ops const ASoC: pxa: make snd_soc_ops const ASoC: rockchip: make snd_soc_ops const ASoC: samsung: make snd_soc_ops const

[PATCH 1/7] ASoC: aux1x: make snd_soc_ops const

2017-08-16 Thread Bhumika Goyal
Make this const as it is only stored in the ops field of a snd_soc_dai_link structure, which is const. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/soc/au1x/db1200.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/au1x/db1200.c b/sound/soc/au1x

[PATCH 3/7] ASoC: generic: make snd_soc_ops const

2017-08-16 Thread Bhumika Goyal
Make these const as they are only stored in the ops field of a snd_soc_dai_link structure, which is const. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/soc/generic/audio-graph-card.c | 2 +- sound/soc/generic/audio-graph-scu-card.c | 2 +- 2 files changed, 2 insertions

[PATCH 2/7] ASoC: cirrus: make snd_soc_ops const

2017-08-16 Thread Bhumika Goyal
Make these const as they are only stored in the ops field of a snd_soc_dai_link structure, which is const. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/soc/cirrus/edb93xx.c | 2 +- sound/soc/cirrus/snappercl15.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff

[PATCH 5/7] ASoC: rockchip: make snd_soc_ops const

2017-08-16 Thread Bhumika Goyal
Make this const as it is only stored in the ops field of a snd_soc_dai_link structure, which is const. Done using Coccinelle Signed-off-by: Bhumika Goyal --- sound/soc/rockchip/rk3288_hdmi_analog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/rockchip

[PATCH 4/7] ASoC: pxa: make snd_soc_ops const

2017-08-16 Thread Bhumika Goyal
Make this const as it is only stored in the ops field of a snd_soc_dai_link structure, which is const. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/soc/pxa/raumfeld.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/pxa/raumfeld.c b/sound/soc/pxa

[PATCH 7/7] ASoC: sh: make snd_soc_ops const

2017-08-16 Thread Bhumika Goyal
Make this const as it is only stored in the ops field of a snd_soc_dai_link structure, which is const. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/soc/sh/migor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/sh/migor.c b/sound/soc/sh/migor.c

[PATCH 6/7] ASoC: samsung: make snd_soc_ops const

2017-08-16 Thread Bhumika Goyal
Make these const as they are only stored in the ops field of a snd_soc_dai_link structure, which is const. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/soc/samsung/jive_wm8750.c | 2 +- sound/soc/samsung/s3c24xx_simtec.c | 2 +- sound/soc/samsung/s3c24xx_uda134x.c | 2

[PATCH 1/2] ASoC: bcm: make snd_soc_dai_driver const

2017-08-16 Thread Bhumika Goyal
Make this const as it is only used during a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/soc/bcm/cygnus-ssp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/bcm/cygnus-ssp.c b/sound/soc/bcm/cygnus-ssp.c index 1a57a4e..15c438f

[PATCH 0/2] ASoC: make snd_soc_dai_driver and snd_soc_component_driver const

2017-08-16 Thread Bhumika Goyal
Make these const. Bhumika Goyal (2): ASoC: bcm: make snd_soc_dai_driver const ASoC: codecs: make snd_soc_dai_driver and snd_soc_component_driver const sound/soc/bcm/cygnus-ssp.c| 2 +- sound/soc/codecs/hdmi-codec.c | 2 +- sound/soc/codecs/lm4857.c | 2 +- sound/soc/codecs

[PATCH 2/2] ASoC: codecs: make snd_soc_dai_driver and snd_soc_component_driver const

2017-08-16 Thread Bhumika Goyal
Make these two structure variables const as they are either used in a copy operation or passed to devm_snd_soc_register_component having the corresponding argument as const. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/soc/codecs/hdmi-codec.c | 2 +- sound/soc/codecs/lm4857.c

[PATCH 02/12] ALSA: atmel: make snd_pcm_hardware const

2017-08-17 Thread Bhumika Goyal
Make this const as it is only used in a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/atmel/ac97c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/atmel/ac97c.c b/sound/atmel/ac97c.c index 52b0522..f3f582e 100644 --- a/sound/atmel

[PATCH 03/12] ALSA: drivers: make snd_pcm_hardware const

2017-08-17 Thread Bhumika Goyal
Make these const as they are only used in a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/drivers/aloop.c | 2 +- sound/drivers/dummy.c | 2 +- sound/drivers/ml403-ac97cr.c | 4 ++-- sound/drivers/pcsp/pcsp_lib.c | 2 +- sound/drivers/vx/vx_pcm.c

[PATCH 00/12] ALSA: make snd_pcm_hardware const

2017-08-17 Thread Bhumika Goyal
Make these const. Bhumika Goyal (12): ALSA: arm: make snd_pcm_hardware const ALSA: atmel: make snd_pcm_hardware const ALSA: drivers: make snd_pcm_hardware const ALSA: isa: make snd_pcm_hardware const ALSA: mips: make snd_pcm_hardware const ALSA: pci: make snd_pcm_hardware const ALSA

[PATCH 06/12] ALSA: pci: make snd_pcm_hardware const

2017-08-17 Thread Bhumika Goyal
Make these const as they are only used in a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/pci/au88x0/au88x0_pcm.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/pci/au88x0/au88x0_pcm.c b/sound/pci/au88x0/au88x0_pcm.c index

[PATCH 01/12] ALSA: arm: make snd_pcm_hardware const

2017-08-17 Thread Bhumika Goyal
Make this const as it is only used in a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/arm/aaci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/arm/aaci.c b/sound/arm/aaci.c index 4140b1b..74cf452 100644 --- a/sound/arm/aaci.c +++ b

[PATCH 07/12] ALSA: pcmcia: make snd_pcm_hardware const

2017-08-17 Thread Bhumika Goyal
Make this const as it is only used in a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c b/sound/pcmcia/pdaudiocf

[PATCH 08/12] ALSA: ppc: make snd_pcm_hardware const

2017-08-17 Thread Bhumika Goyal
Make these const as they are only used in a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/ppc/pmac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/ppc/pmac.c b/sound/ppc/pmac.c index a5843fc..45f0295 100644 --- a/sound/ppc/pmac.c

[PATCH 09/12] ALSA: sh: make snd_pcm_hardware const

2017-08-17 Thread Bhumika Goyal
Make these const as they are only used in a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/sh/aica.c | 2 +- sound/sh/sh_dac_audio.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/sh/aica.c b/sound/sh/aica.c index ab4802d

[PATCH 10/12] ALSA: sparc: make snd_pcm_hardware const

2017-08-17 Thread Bhumika Goyal
Make these const as they are only used in a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/sparc/amd7930.c | 2 +- sound/sparc/cs4231.c | 4 ++-- sound/sparc/dbri.c| 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/sparc/amd7930.c b

[PATCH 11/12] ALSA: usb: make snd_pcm_hardware const

2017-08-17 Thread Bhumika Goyal
Make this const as it is only used in a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/usb/pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/usb/pcm.c b/sound/usb/pcm.c index 9aa5b18..a4f3390 100644 --- a/sound/usb/pcm.c +++ b/sound

[PATCH 12/12] ALSA: parisc: make snd_pcm_hardware const

2017-08-17 Thread Bhumika Goyal
Make these const as they are only used in a copy operation. Done using Coccinelle Signed-off-by: Bhumika Goyal --- sound/parisc/harmony.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/parisc/harmony.c b/sound/parisc/harmony.c index 5911eb3..cb2bc54 100644 --- a

[PATCH 05/12] ALSA: mips: make snd_pcm_hardware const

2017-08-17 Thread Bhumika Goyal
Make these const as they are only used in a copy operation. Done using Coccinelle Signed-off-by: Bhumika Goyal --- sound/mips/hal2.c | 2 +- sound/mips/sgio2audio.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/mips/hal2.c b/sound/mips/hal2.c index 3318c15

[PATCH 04/12] ALSA: isa: make snd_pcm_hardware const

2017-08-17 Thread Bhumika Goyal
Make these const as they are only used in a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/isa/ad1816a/ad1816a_lib.c | 4 ++-- sound/isa/es1688/es1688_lib.c | 4 ++-- sound/isa/es18xx.c | 4 ++-- sound/isa/gus/gus_pcm.c | 4 ++-- sound/isa

[PATCH 1/6] ASoC: fsl: make snd_pcm_hardware const

2017-08-17 Thread Bhumika Goyal
Make these const as they are only passed as the 2nd argument to the function snd_soc_set_runtime_hwparams, which is const. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/soc/fsl/fsl_asrc_dma.c | 2 +- sound/soc/fsl/imx-pcm-fiq.c | 2 +- 2 files changed, 2 insertions(+), 2

[PATCH 3/6] ASoC: Intel: Skylake: make snd_pcm_hardware const

2017-08-17 Thread Bhumika Goyal
Make this const as it is only passed as the 2nd argument to the function snd_soc_set_runtime_hwparams, which is const. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/soc/intel/skylake/skl-pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/intel

[PATCH 4/6] ASoC: kirkwood: make snd_pcm_hardware const

2017-08-17 Thread Bhumika Goyal
Make this const as it is either passed as the 2nd argument to the function snd_soc_set_runtime_hwparams, which is const or used in a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/soc/kirkwood/kirkwood-dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH 2/6] ASoC: Intel: Atom: make snd_pcm_hardware const

2017-08-17 Thread Bhumika Goyal
Make this const as it is only used in a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/soc/intel/atom/sst-mfld-platform-pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/intel/atom/sst-mfld-platform-pcm.c b/sound/soc/intel/atom

[PATCH 6/6] ASoC: qcom: make snd_pcm_hardware const

2017-08-17 Thread Bhumika Goyal
Make this const as it is either passed as the 2nd argument to the function snd_soc_set_runtime_hwparams, which is const or used in a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/soc/qcom/lpass-platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH 5/6] ASoC: sh: make snd_pcm_hardware const

2017-08-17 Thread Bhumika Goyal
Make these const as they are only passed as the 2nd argument to the function snd_soc_set_runtime_hwparams, which is const. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/soc/sh/dma-sh7760.c | 2 +- sound/soc/sh/fsi.c| 2 +- sound/soc/sh/rcar/core.c | 2 +- sound/soc/sh

[PATCH 0/6] ASoC: make snd_pcm_hardware const

2017-08-17 Thread Bhumika Goyal
Make these const. Done using Coccinelle Bhumika Goyal (6): ASoC: fsl: make snd_pcm_hardware const ASoC: Intel: Atom: make snd_pcm_hardware const ASoC: Intel: Skylake: make snd_pcm_hardware const ASoC: kirkwood: make snd_pcm_hardware const ASoC: sh: make snd_pcm_hardware const ASoC

Re: [PATCH] staging: vboxvideo: make drm_fb_helper_funcs const

2017-08-17 Thread Bhumika Goyal
On Thu, Aug 17, 2017 at 10:33 PM, Greg KH wrote: > On Tue, Aug 08, 2017 at 09:15:42PM +0530, Bhumika Goyal wrote: >> Make the structure const as it is only passed to the function >> drm_fb_helper_prepare and the corresponding argument is of type >> const. >> Done usi

[PATCH] clk: make clk_init_data const

2017-08-18 Thread Bhumika Goyal
Make these const as they are only stored in the init field of a clk_hw structure, which is const. Signed-off-by: Bhumika Goyal --- To test changes in clk-common.c, I compiled clk-atlas6.c and clk-prima2.c as it gets included in these two files. drivers/clk/clk-twl6040.c | 2 +- drivers

[PATCH 0/2] drm: constify drm_encoder_helper_funcs structures

2017-06-20 Thread Bhumika Goyal
Add const to drm_encoder_helper_funcs structures. Bhumika Goyal (2): drm/rockchip: add const to drm_encoder_helper_funcs structures drm/sun4i: add const to drm_encoder_helper_funcs structures drivers/gpu/drm/rockchip/analogix_dp-rockchip.c | 3 ++- drivers/gpu/drm/rockchip/inno_hdmi.c

[PATCH 2/2] drm/sun4i: add const to drm_encoder_helper_funcs structures

2017-06-20 Thread Bhumika Goyal
Add const to drm_encoder_helper_funcs structures as they are only passed as an argument to the function drm_encoder_helper_add and this argument is of type const. So, add const to these structures. Signed-off-by: Bhumika Goyal --- drivers/gpu/drm/sun4i/sun4i_rgb.c | 2 +- drivers/gpu/drm/sun4i

[PATCH 1/2] drm/rockchip: add const to drm_encoder_helper_funcs structures

2017-06-20 Thread Bhumika Goyal
Add const to drm_encoder_helper_funcs structures as they are only passed as an argument to the function drm_encoder_helper_add and this argument is of type const. So, add const to these structures. Also, fix line over 80 characters warning while adding const. Signed-off-by: Bhumika Goyal

Re: [PATCH 1/2] drm/rockchip: add const to drm_encoder_helper_funcs structures

2017-06-20 Thread Bhumika Goyal
On Wed, Jun 21, 2017 at 6:18 AM, Mark yao wrote: > On 2017年06月20日 21:07, Bhumika Goyal wrote: >> >> Add const to drm_encoder_helper_funcs structures as they are only passed >> as an argument to the function drm_encoder_helper_add and this argument >> is of type co

[PATCH v2 0/2] drm: constify drm_encoder_helper_funcs structures

2017-06-20 Thread Bhumika Goyal
Add const to drm_encoder_helper_funcs structures. Changes in v2 - * Let the line exceed over 80 characters while adding const in analogix_dp-rockchip.c file. Bhumika Goyal (2): drm/rockchip: add const to drm_encoder_helper_funcs structures drm/sun4i: add const to drm_encoder_helper_funcs

[PATCH v2 1/2] drm/rockchip: add const to drm_encoder_helper_funcs structures

2017-06-20 Thread Bhumika Goyal
Add const to drm_encoder_helper_funcs structures as they are only passed as an argument to the function drm_encoder_helper_add and this argument is of type const. So, add const to these structures. Signed-off-by: Bhumika Goyal --- Changes in v2 - * Let the line exceed over 80 characters while

[PATCH v2 2/2] drm/sun4i: add const to drm_encoder_helper_funcs structures

2017-06-20 Thread Bhumika Goyal
Add const to drm_encoder_helper_funcs structures as they are only passed as an argument to the function drm_encoder_helper_add and this argument is of type const. So, add const to these structures. Signed-off-by: Bhumika Goyal --- Changes in v2 - * No change drivers/gpu/drm/sun4i/sun4i_rgb.c

[PATCH 0/2] platform/x86: add const to thermal_cooling_device_ops structures

2017-06-21 Thread Bhumika Goyal
Declare thermal_cooling_device_ops structures as const. Bhumika Goyal (2): acerhdf: add const to thermal_cooling_device_ops structure intel_menlow: add const to thermal_cooling_device_ops structure drivers/platform/x86/acerhdf.c | 2 +- drivers/platform/x86/intel_menlow.c | 2 +- 2

[PATCH 2/2] intel_menlow: add const to thermal_cooling_device_ops structure

2017-06-21 Thread Bhumika Goyal
Declare thermal_cooling_device_ops structure as const as it is only passed as an argument to the function thermal_cooling_device_register and this argument is of type const. So, declare the structure as const. Signed-off-by: Bhumika Goyal --- drivers/platform/x86/intel_menlow.c | 2 +- 1 file

[PATCH 1/2] acerhdf: add const to thermal_cooling_device_ops structure

2017-06-21 Thread Bhumika Goyal
Declare thermal_cooling_device_ops structure as const as it is only passed as an argument to the function thermal_cooling_device_register and this argument is of type const. So, declare the structure as const. Signed-off-by: Bhumika Goyal --- drivers/platform/x86/acerhdf.c | 2 +- 1 file

[PATCH] thermal/intel_powerclamp: add const to thermal_cooling_device_ops structure

2017-06-21 Thread Bhumika Goyal
Declare thermal_cooling_device_ops structure as const as it is only passed as an argument to the function thermal_cooling_device_register and this argument is of type const. So, declare the structure as const. Signed-off-by: Bhumika Goyal --- drivers/thermal/intel_powerclamp.c | 2 +- 1 file

[PATCH] iwlwifi: mvm: add const to thermal_cooling_device_ops structure

2017-06-21 Thread Bhumika Goyal
Declare thermal_cooling_device_ops structure as const as it is only passed as an argument to the function thermal_cooling_device_register and this argument is of type const. So, declare the structure as const. Signed-off-by: Bhumika Goyal --- drivers/net/wireless/intel/iwlwifi/mvm/tt.c | 2

[PATCH] ath10k: add const to thermal_cooling_device_ops structure

2017-06-21 Thread Bhumika Goyal
Declare thermal_cooling_device_ops structure as const as it is only passed as an argument to the function thermal_cooling_device_register and this argument is of type const. So, declare the structure as const. Signed-off-by: Bhumika Goyal --- drivers/net/wireless/ath/ath10k/thermal.c | 2 +- 1

[PATCH] drm/etnaviv: add const to thermal_cooling_device_ops structure

2017-06-21 Thread Bhumika Goyal
Declare thermal_cooling_device_ops structure as const as it is only passed as an argument to the function thermal_of_cooling_device_register and this argument is of type const. So, declare the structure as const. Signed-off-by: Bhumika Goyal --- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 2 +- 1

[PATCH 1/2] ARM: davinci: make the function argument as const

2017-10-16 Thread Bhumika Goyal
o the prototype too. Signed-off-by: Bhumika Goyal --- arch/arm/mach-davinci/common.c | 2 +- arch/arm/mach-davinci/include/mach/common.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-davinci/common.c b/arch/arm/mach-davinci/common.c index 9f9fbfa..bc

[PATCH 2/2] ARM: davinci: make davinci_soc_info structures const

2017-10-16 Thread Bhumika Goyal
structures can be const. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- arch/arm/mach-davinci/da830.c | 2 +- arch/arm/mach-davinci/da850.c | 2 +- arch/arm/mach-davinci/dm355.c | 2 +- arch/arm/mach-davinci/dm365.c | 2 +- arch/arm/mach-davinci/dm644x.c | 2 +- arch/arm/mach

[PATCH 0/2] ARM: davinci: make function argument and structure const

2017-10-16 Thread Bhumika Goyal
Make the function argument of davinci_common_init const. After doing this change make the structures davinci_soc_info const. Bhumika Goyal (2): ARM: davinci: make the function argument as const ARM: davinci: make davinci_soc_info structures const arch/arm/mach-davinci/common.c

Re: [PATCH] stm class: make config_item_type const

2017-10-16 Thread Bhumika Goyal
On Mon, Oct 16, 2017 at 1:55 PM, Alexander Shishkin wrote: > Bhumika Goyal writes: > >> On Thu, Oct 12, 2017 at 2:12 PM, Bhumika Goyal wrote: >>> This is a followup patch for: >>> https://patchwork.kernel.org/patch/649/ and >>> https://lk

Re: [PATCH] configfs: make config_item_type const

2017-10-16 Thread Bhumika Goyal
On Mon, Oct 16, 2017 at 2:43 PM, Christoph Hellwig wrote: > On Thu, Oct 12, 2017 at 05:02:43PM +0200, Bhumika Goyal wrote: >> Actually, this patch is dependent on the patches in the links >> https://lkml.org/lkml/2017/10/11/375 and >> https://patchwork.kernel.org/patch/

[PATCH v2 15/15] configfs: make config_item_type const

2017-10-16 Thread Bhumika Goyal
Make config_item_type structures const as they are either passed to a function having the argument as const or stored in the const "ci_type" field of a config_item structure. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- * Changes in v2- Combine all the followup patch

[PATCH v2 14/15] dlm: make config_item_type const

2017-10-16 Thread Bhumika Goyal
Make config_item_type structures const as they are either passed to a function having the argument as const or stored in the const "ci_type" field of a config_item structure. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- * Changes in v2- Combine all the followup patch

[PATCH v2 13/15] netconsole: make config_item_type const

2017-10-16 Thread Bhumika Goyal
Make these structures const as they are either passed to the functions having the argument as const or stored as a reference in the "ci_type" const field of a config_item structure. Done using Coccienlle. Signed-off-by: Bhumika Goyal --- * Changes in v2- Combine all the followup patch

[PATCH v2 11/15] stm class: make config_item_type const

2017-10-16 Thread Bhumika Goyal
Make config_item_type structures const as they are either passed to a function having the argument as const or used inside a if statement or stored in the const "ci_type" field of a config_item structure. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- * Changes in v2- Combi

[PATCH v2 12/15] RDMA/cma: make config_item_type const

2017-10-16 Thread Bhumika Goyal
Make these structures const as they are either passed to the functions having the argument as const or stored as a reference in the "ci_type" const field of a config_item structure. Signed-off-by: Bhumika Goyal --- * Changes in v2- Combine all the followup patches and the constificati

[PATCH v2 10/15] nullb: make config_item_type const

2017-10-16 Thread Bhumika Goyal
Make these structures const as they are either passed to the functions having the argument as const or stored as a reference in the "ci_type" const field of a config_item structure. Done using Coccienlle. Signed-off-by: Bhumika Goyal --- * Changes in v2- Combine all the followup patch

[PATCH v2 09/15] ACPI: configfs: make config_item_type const

2017-10-16 Thread Bhumika Goyal
Make these structures const as they are either passed to the functions having the argument as const or stored as a reference in the "ci_type" const field of a config_item structure. Done using Coccienlle. Signed-off-by: Bhumika Goyal --- * Changes in v2- Combine all the followup patch

[PATCH v2 08/15] nvmet: make config_item_type const

2017-10-16 Thread Bhumika Goyal
Make config_item_type structures const as they are either passed to a function having the argument as const or used inside an if statement or stored in the const "ci_type" field of a config_item structure. Done using Coccinelle Signed-off-by: Bhumika Goyal --- * Changes in v2- Combi

[PATCH v2 06/15] PCI: endpoint: make config_item_type const

2017-10-16 Thread Bhumika Goyal
Make config_item_type structures const as they are either passed to a function having the argument as const or stored in the const "ci_type" field of a config_item structure. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- * Changes in v2- Combine all the followup patch

[PATCH v2 07/15] usb: gadget: configfs: make config_item_type const

2017-10-16 Thread Bhumika Goyal
Make config_item_type structures const as they are either passed to a function having the argument as const or stored in the const "ci_type" field of a config_item structure. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- * Changes in v2- Combine all the followup patch

[PATCH v2 05/15] ocfs2/cluster: make config_item_type const

2017-10-16 Thread Bhumika Goyal
Make these structures const as they are either passed to the functions having the argument as const or stored as a reference in the "ci_type" const field of a config_item structure. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- * Changes in v2- Combine all the followup patch

[PATCH v2 03/15] target: make config_item_type const

2017-10-16 Thread Bhumika Goyal
Make these structures const as they are either passed to the functions having the argument as const or stored as a reference in the "ci_type" const field of a config_item structure. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- * Changes in v2- Combine all the followup patch

[PATCH v2 04/15] iio: make function argument and some structures const

2017-10-16 Thread Bhumika Goyal
are stored in the const "ci_type" field of a config_item structure. Signed-off-by: Bhumika Goyal --- * Changes in v2- Combine all the followup patches and the constification patches into a series. drivers/iio/dummy/iio_simple_dummy.c | 2 +- drivers/iio/industrialio-configfs.c| 2 +

[PATCH v2 02/15] usb: gadget: make config_item_type structures const

2017-10-16 Thread Bhumika Goyal
Make these structures const as they are only passed to the const argument of the functions config_{group/item}_init_type_name. Signed-off-by: Bhumika Goyal --- * Changes in v2- Combine all the followup patches and the constification patches into a series. drivers/usb/gadget/function/f_acm.c

[PATCH v2 00/15] make structure field, function arguments and structures const

2017-10-16 Thread Bhumika Goyal
Make the ci_type field and some function arguments as const. After this change, make config_item_type structures as const. * Changes in v2- Combine all the followup patches and the constification patches into a series. Bhumika Goyal (15): configfs: make ci_type field, some pointers and

[PATCH v2 01/15] configfs: make ci_type field, some pointers and function arguments const

2017-10-16 Thread Bhumika Goyal
to the argument of the function config_group_init_type_name which is now const. Signed-off-by: Bhumika Goyal --- * Changes in v2- Combine all the followup patches and the constification patches into a series. fs/configfs/dir.c| 10 +- fs/configfs/item.c | 6 +++--- fs

[PATCH 0/2] [media] davinci: make function arguments and structures const

2017-10-17 Thread Bhumika Goyal
Make some function arguments as const. After this changes make ccdc_hw_device structures as const. Bhumika Goyal (2): [media] davinci: make function arguments const [media] davinci: make ccdc_hw_device structures const drivers/media/platform/davinci/ccdc_hw_device.h | 4 ++-- drivers/media

[PATCH 1/2] [media] davinci: make function arguments const

2017-10-17 Thread Bhumika Goyal
. Signed-off-by: Bhumika Goyal --- drivers/media/platform/davinci/ccdc_hw_device.h | 4 ++-- drivers/media/platform/davinci/vpfe_capture.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/media/platform/davinci/ccdc_hw_device.h b/drivers/media/platform/davinci

[PATCH 2/2] [media] davinci: make ccdc_hw_device structures const

2017-10-17 Thread Bhumika Goyal
Make these structures const as they are only getting passed to the functions vpfe_{register/unregister}_ccdc_device having the argument as const. Structures found using Coccinelle and changes done by hand. Signed-off-by: Bhumika Goyal --- drivers/media/platform/davinci/dm355_ccdc.c | 2

[PATCH 2/2] CLK: SPEAr: make aux_clk_masks structures const

2017-10-17 Thread Bhumika Goyal
Make these const as they are either stored in the masks 'const' field of a clk_aux structure or passed to the function clk_register_aux having the argument as const. Signed-off-by: Bhumika Goyal --- drivers/clk/spear/clk-aux-synth.c | 2 +- drivers/clk/spear/spear1310_clock.c | 2 +

[PATCH 0/2] CLK: SPEAr: make structure field, function arg and strutcure const

2017-10-17 Thread Bhumika Goyal
Make structure field and function argument as const. After this change, make the structures as const. Bhumika Goyal (2): CLK: SPEAr: make structure field and function argument as const CLK: SPEAr: make aux_clk_masks structures const drivers/clk/spear/clk-aux-synth.c | 4 ++-- drivers/clk

[PATCH 1/2] CLK: SPEAr: make structure field and function argument as const

2017-10-17 Thread Bhumika Goyal
made const. Signed-off-by: Bhumika Goyal --- drivers/clk/spear/clk-aux-synth.c | 2 +- drivers/clk/spear/clk.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/clk/spear/clk-aux-synth.c b/drivers/clk/spear/clk-aux-synth.c index f271c35..8bea5df 100644

[PATCH 4/4] SUNRPC: make cache_detail structures const

2017-10-17 Thread Bhumika Goyal
Make these const as they are only getting passed to the function cache_create_net having the argument as const. Signed-off-by: Bhumika Goyal --- net/sunrpc/auth_gss/svcauth_gss.c | 4 ++-- net/sunrpc/svcauth_unix.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a

[PATCH 0/4] make function arg and structures as const

2017-10-17 Thread Bhumika Goyal
Make the function argument as const. After thing change, make the cache_detail structures as const. Bhumika Goyal (4): sunrpc: make the function arg as const NFS: make cache_detail structures const NFSD: make cache_detail structures const SUNRPC: make cache_detail structures const fs

[PATCH 2/4] NFS: make cache_detail structure const

2017-10-17 Thread Bhumika Goyal
Make it const as it is only getting passed to the function cache_create_net having the argument as const. Signed-off-by: Bhumika Goyal --- fs/nfs/dns_resolve.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/nfs/dns_resolve.c b/fs/nfs/dns_resolve.c index d25f10f..477934a

[PATCH 3/4] NFSD: make cache_detail structures const

2017-10-17 Thread Bhumika Goyal
Make these const as they are only getting passed to the function cache_create_net having the argument as const. Signed-off-by: Bhumika Goyal --- fs/nfsd/export.c| 4 ++-- fs/nfsd/nfs4idmap.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/nfsd/export.c b/fs/nfsd

[PATCH 1/4] sunrpc: make the function arg as const

2017-10-17 Thread Bhumika Goyal
Make the struct cache_detail *tmpl argument of the function cache_create_net as const as it is only getting passed to kmemup having the argument as const void *. Add const to the prototype too. Signed-off-by: Bhumika Goyal --- include/linux/sunrpc/cache.h | 2 +- net/sunrpc/cache.c

[PATCH] ALSA: declare snd_kcontrol_new structures as const

2017-05-27 Thread Bhumika Goyal
/aoa/codecs/tas.c - powerpc sound/mips/{hal2.c/sgio2audio.c} - mips sound/ppc/{awacs.c/beep.c/tumbler.c} - powerpc sound/soc/sh/siu_dai.c - sh Could not find an architecture to compile sound/sh/aica.c. Signed-off-by: Bhumika Goyal --- sound/aoa/codecs/tas.c | 14 +++--- sound

Re: [PATCH] ALSA: declare snd_kcontrol_new structures as const

2017-05-30 Thread Bhumika Goyal
On Tue, May 30, 2017 at 2:24 PM, Takashi Iwai wrote: > On Sat, 27 May 2017 16:46:15 +0200, > Bhumika Goyal wrote: >> >> Declare snd_kcontrol_new structures as const as they are only passed an >> argument to the function snd_ctl_new1. This argument is of type const

Re: [PATCH] ALSA: declare snd_kcontrol_new structures as const

2017-05-30 Thread Bhumika Goyal
On Tue, May 30, 2017 at 2:26 PM, Julia Lawall wrote: > > > On Tue, 30 May 2017, Takashi Iwai wrote: > >> On Sat, 27 May 2017 16:46:15 +0200, >> Bhumika Goyal wrote: >> > >> > Declare snd_kcontrol_new structures as const as they are only passed an >&g

[PATCH 0/2] ACPI / PMIC: make some structures and function argument as const

2017-11-03 Thread Bhumika Goyal
Make some structures and the argument of the function intel_pmic_install_opregion_handler as const. After this change, make the structures of type intel_pmic_opregion_data as const. Bhumika Goyal (2): ACPI / PMIC: Make some pointers, structure field and function argument as const

[PATCH 1/2] ACPI / PMIC: Make some pointers, structure field and function argument as const

2017-11-03 Thread Bhumika Goyal
, make the struct intel_pmic_opregion_data * argument of the function intel_pmic_install_opregion_handler as const as it is only getting stored in the data field of the intel_pmic_opregion structure which is now made const. Signed-off-by: Bhumika Goyal --- drivers/acpi/pmic/intel_pmic.c | 10

[PATCH 2/2] ACPI / PMIC: make intel_pmic_opregion_data structures const

2017-11-03 Thread Bhumika Goyal
Make these structures as const as they are only passed to the function intel_pmic_install_opregion_handler having the argument as const. Signed-off-by: Bhumika Goyal --- drivers/acpi/pmic/intel_pmic_bxtwc.c | 2 +- drivers/acpi/pmic/intel_pmic_chtwc.c | 2 +- drivers/acpi/pmic

[PATCH 1/2] ARM: OMAP2+: CM: make some pointers and function arguments as const

2017-11-06 Thread Bhumika Goyal
cm_unregister function as const as it is only used inside an if condition. Add const to the function prototypes too. Signed-off-by: Bhumika Goyal --- arch/arm/mach-omap2/cm.h| 4 ++-- arch/arm/mach-omap2/cm_common.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch

[PATCH 0/2] ARM: OMAP2+: CM: make some structures, function arguments and pointers as const

2017-11-06 Thread Bhumika Goyal
Make some pointers and function arguments as const. After this change, make the structures of type cm_ll_data as const. Bhumika Goyal (2): ARM: OMAP2+: CM: make some pointers and function arguments as const ARM: OMAP2+: CM: make cm_ll_data structures as const arch/arm/mach-omap2/cm.h

[PATCH 2/2] ARM: OMAP2+: CM: make cm_ll_data structures as const

2017-11-06 Thread Bhumika Goyal
Make these const as they are only getting passed to the functions cm_register and cm_unregister having the arguments as const. Signed-off-by: Bhumika Goyal --- arch/arm/mach-omap2/cm2xxx.c | 2 +- arch/arm/mach-omap2/cm33xx.c | 2 +- arch/arm/mach-omap2/cm3xxx.c | 2 +- arch/arm

[PATCH 0/2] cpufreq: arm_big_little: make function arguments and structures const

2017-10-19 Thread Bhumika Goyal
Make some function arguments as const. After this change make the cpufreq_arm_bL_ops structures const. Bhumika Goyal (2): cpufreq: arm_big_little: make function argument and structure const cpufreq: arm_big_little: make cpufreq_arm_bL_ops structures const drivers/cpufreq/arm_big_little.c

[PATCH 2/2] cpufreq: arm_big_little: make cpufreq_arm_bL_ops structures const

2017-10-19 Thread Bhumika Goyal
Make these const as they are only getting passed to the functions bL_cpufreq_{register/unregister} having the arguments as const. Signed-off-by: Bhumika Goyal --- drivers/cpufreq/arm_big_little_dt.c| 2 +- drivers/cpufreq/scpi-cpufreq.c | 2 +- drivers/cpufreq/vexpress-spc-cpufreq.c

  1   2   3   4   5   6   7   >