[PATCH] [media] vb2: make vb2_ops

2017-09-27 Thread Bhumika Goyal
Make vb2_ops const as they are only stored in the const field of a vb2_queue structure. Make the declarations const too. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/media/usb/au0828/au0828-vbi.c | 2 +- drivers/media/usb/au0828/au0828.h | 2 +- drivers/media/usb/em28xx

[PATCH] usb: gadget: f_uvc: make uvc_v4l2_fops const

2017-09-27 Thread Bhumika Goyal
Make this const as it is only stored in the const field of a structure video_device in the file referencing it. Make the declaration const too. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/usb/gadget/function/uvc_v4l2.c | 2 +- drivers/usb/gadget/function/uvc_v4l2.h | 2

[PATCH] [IA64] sn: make sn_screen_info const, static and __initconst

2017-09-28 Thread Bhumika Goyal
Make this structure static as it is only used in the file in which it is defined. Make it const as it is only used during a copy operation. Make it __initconst as this usage is during the init phase. Structure found using Coccinelle and changes done by hand. Signed-off-by: Bhumika Goyal

[PATCH] ocfs2/cluster: make config_item_type const

2017-10-12 Thread Bhumika Goyal
structure. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- fs/ocfs2/cluster/heartbeat.c | 4 ++-- fs/ocfs2/cluster/nodemanager.c | 8 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/fs/ocfs2/cluster/heartbeat.c b/fs/ocfs2/cluster/heartbeat.c index d020604..ea8c

[PATCH] target: make config_item_type const

2017-10-12 Thread Bhumika Goyal
structure. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/target/target_core_configfs.c | 14 +++--- drivers/target/target_core_stat.c | 16 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers/target/target_core_configfs.c b/driv

[PATCH] iio: make config_item_type const

2017-10-12 Thread Bhumika Goyal
const (link 2,3,4) or they are stored in the const "ci_type" field of a config_item structure (link 1). Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/iio/dummy/iio_simple_dummy.c | 2 +- drivers/iio/industrialio-configfs.c| 2 +- drivers/iio/industrialio-s

[PATCH] ACPI: configfs: make config_item_type const

2017-10-12 Thread Bhumika Goyal
structure. Done using Coccienlle. Signed-off-by: Bhumika Goyal --- drivers/acpi/acpi_configfs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/acpi/acpi_configfs.c b/drivers/acpi/acpi_configfs.c index 853bc7f..b588503 100644 --- a/drivers/acpi/acpi_config

[PATCH] nullb: make config_item_type const

2017-10-12 Thread Bhumika Goyal
structure. Done using Coccienlle. Signed-off-by: Bhumika Goyal --- drivers/block/null_blk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/block/null_blk.c b/drivers/block/null_blk.c index bf2c8ca..46b6008 100644 --- a/drivers/block/null_blk.c +++ b/drivers/block/

[PATCH] stm class: make config_item_type const

2017-10-12 Thread Bhumika Goyal
; field of a config_item structure. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/hwtracing/stm/policy.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/hwtracing/stm/policy.c b/drivers/hwtracing/stm/policy.c index 6c0ae29..33e9a1b 10

[PATCH] IB/cma: make config_item_type const

2017-10-12 Thread Bhumika Goyal
structure. Done using Coccienlle. Signed-off-by: Bhumika Goyal --- drivers/infiniband/core/cma_configfs.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/infiniband/core/cma_configfs.c b/drivers/infiniband/core/cma_configfs.c index 54076a3..31dfee0 100644 ---

[PATCH] netconsole: make config_item_type const

2017-10-12 Thread Bhumika Goyal
structure. Done using Coccienlle. Signed-off-by: Bhumika Goyal --- drivers/net/netconsole.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c index 0e27920..be9aa36 100644 --- a/drivers/net/netconsole.c +++ b/drivers/net/ne

[PATCH] nvmet: make config_item_type const

2017-10-12 Thread Bhumika Goyal
field of a config_item structure. Done using Coccinelle Signed-off-by: Bhumika Goyal --- drivers/nvme/target/configfs.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers/nvme/target/configfs.c b/drivers/nvme/target/configfs.c ind

[PATCH] PCI: endpoint: make config_item_type const

2017-10-12 Thread Bhumika Goyal
ure. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/pci/endpoint/pci-ep-cfs.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/pci/endpoint/pci-ep-cfs.c b/drivers/pci/endpoint/pci-ep-cfs.c index 424fdd6..4f74386 100644 --- a/drivers/pci/en

[PATCH] usb: gadget: configfs: make config_item_type const

2017-10-12 Thread Bhumika Goyal
ure. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/usb/gadget/configfs.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/usb/gadget/configfs.c b/drivers/usb/gadget/configfs.c index a22a892..c90a266 100644 --- a/drivers/usb/gadget/config

[PATCH] dlm: make config_item_type const

2017-10-12 Thread Bhumika Goyal
ure. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- fs/dlm/config.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/fs/dlm/config.c b/fs/dlm/config.c index 7211e82..1270551 100644 --- a/fs/dlm/config.c +++ b/fs/dlm/config.c @@ -282,44 +282,44 @@ struc

[PATCH] configfs: make config_item_type const

2017-10-12 Thread Bhumika Goyal
ure. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- samples/configfs/configfs_sample.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/samples/configfs/configfs_sample.c b/samples/configfs/configfs_sample.c index 1ea3311..004a4e2 100644 --- a/sample

[PATCH] target/iscsi: make config_item_type const

2017-10-12 Thread Bhumika Goyal
This is a followup patch for: https://patchwork.kernel.org/patch/649/ Make config_item_type structures const as they are only passed to the functions having the argument as const. Make the declaration const too. Signed-off-by: Bhumika Goyal --- drivers/target/iscsi/iscsi_target_stat.c | 12

Re: [PATCH] nullb: make config_item_type const

2017-10-12 Thread Bhumika Goyal
On Thu, Oct 12, 2017 at 4:27 PM, Jens Axboe wrote: > On 10/12/2017 04:19 AM, Bhumika Goyal wrote: >> This is a followup patch for: https://lkml.org/lkml/2017/10/11/375 and >> https://patchwork.kernel.org/patch/649/ >> >> Make these structures const as they are eit

Re: [PATCH] nullb: make config_item_type const

2017-10-12 Thread Bhumika Goyal
On Thu, Oct 12, 2017 at 4:47 PM, Jens Axboe wrote: > On 10/12/2017 08:42 AM, Bhumika Goyal wrote: >> On Thu, Oct 12, 2017 at 4:27 PM, Jens Axboe wrote: >>> On 10/12/2017 04:19 AM, Bhumika Goyal wrote: >>>> This is a followup patch for: https://lkml.org/lkml

Re: [PATCH] target/iscsi: make config_item_type const

2017-10-12 Thread Bhumika Goyal
On Thu, Oct 12, 2017 at 3:48 PM, Bhumika Goyal wrote: > This is a followup patch for: > https://patchwork.kernel.org/patch/649/ > > Make config_item_type structures const as they are only passed to the > functions having the argument as const. Make the declaration const too. &g

Re: [PATCH] configfs: make config_item_type const

2017-10-12 Thread Bhumika Goyal
On Thu, Oct 12, 2017 at 3:29 PM, Bhumika Goyal wrote: > This is a followup patch for: > https://patchwork.kernel.org/patch/649/ and > https://lkml.org/lkml/2017/10/11/375 > > Make config_item_type structures const as they are either passed to a > function having the ar

Re: [PATCH] dlm: make config_item_type const

2017-10-12 Thread Bhumika Goyal
On Thu, Oct 12, 2017 at 3:22 PM, Bhumika Goyal wrote: > This is a followup patch for: > https://patchwork.kernel.org/patch/649/ and > https://lkml.org/lkml/2017/10/11/375 > > Make config_item_type structures const as they are either passed to a > function having the ar

Re: [PATCH] usb: gadget: configfs: make config_item_type const

2017-10-12 Thread Bhumika Goyal
On Thu, Oct 12, 2017 at 3:03 PM, Bhumika Goyal wrote: > This is a followup patch for: > https://patchwork.kernel.org/patch/649/ and > https://lkml.org/lkml/2017/10/11/375 > > Make config_item_type structures const as they are either passed to a > function having the ar

Re: [PATCH] netconsole: make config_item_type const

2017-10-12 Thread Bhumika Goyal
On Thu, Oct 12, 2017 at 2:29 PM, Bhumika Goyal wrote: > This is a followup patch for: https://lkml.org/lkml/2017/10/11/375 and > https://patchwork.kernel.org/patch/649/ > > Make these structures const as they are either passed to the functions > having the argument as const

Re: [PATCH] nvmet: make config_item_type const

2017-10-12 Thread Bhumika Goyal
On Thu, Oct 12, 2017 at 2:38 PM, Bhumika Goyal wrote: > This is a followup patch for: > https://patchwork.kernel.org/patch/649/ and > https://lkml.org/lkml/2017/10/11/375 > > Make config_item_type structures const as they are either passed to a > function having the argumen

Re: [PATCH] PCI: endpoint: make config_item_type const

2017-10-12 Thread Bhumika Goyal
On Thu, Oct 12, 2017 at 2:50 PM, Bhumika Goyal wrote: > This is a followup patch for: > https://patchwork.kernel.org/patch/649/ and > https://lkml.org/lkml/2017/10/11/375 > > Make config_item_type structures const as they are either passed to a > function having the ar

Re: [PATCH] IB/cma: make config_item_type const

2017-10-12 Thread Bhumika Goyal
On Thu, Oct 12, 2017 at 2:20 PM, Bhumika Goyal wrote: > This is a followup patch for: https://lkml.org/lkml/2017/10/11/375 and > https://patchwork.kernel.org/patch/649/ > > Make these structures const as they are either passed to the functions > having the argument as const

Re: [PATCH] stm class: make config_item_type const

2017-10-12 Thread Bhumika Goyal
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://lkml.org/lkml/2017/10/11/375 > > Make config_item_type structures const as they are either passed to a > function having the argumen

Re: [PATCH] ACPI: configfs: make config_item_type const

2017-10-12 Thread Bhumika Goyal
On Thu, Oct 12, 2017 at 12:02 PM, Bhumika Goyal wrote: > This is a followup patch for: https://lkml.org/lkml/2017/10/11/375 and > https://patchwork.kernel.org/patch/649/ > > Make these structures const as they are either passed to the functions > having the argument as const

Re: [PATCH] iio: make config_item_type const

2017-10-12 Thread Bhumika Goyal
On Thu, Oct 12, 2017 at 11:41 AM, Bhumika Goyal wrote: > This is a followup patch for: > https://lkml.org/lkml/2017/10/11/375 > https://patchwork.kernel.org/patch/649/ > https://lkml.org/lkml/2017/10/11/469 and > https://lkml.org/lkml/2017/10/11/661 > > Make the config

[PATCH] misc: make config_item_type const

2017-10-12 Thread Bhumika Goyal
This is a followup patch for: https://lkml.org/lkml/2017/10/11/375 Make this const as it is only stored in the const "ci_type" field of a config_item structure. Signed-off-by: Bhumika Goyal --- It does not seem to be possible to compile this driver and it has not received many patc

[PATCH] powerpc/eeh: make eeh_ops structures _ro_after_init

2017-10-13 Thread Bhumika Goyal
phase. So, make them __ro_after_init. Signed-off-by: Bhumika Goyal --- arch/powerpc/platforms/powernv/eeh-powernv.c | 2 +- arch/powerpc/platforms/pseries/eeh_pseries.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/platforms/powernv/eeh-powernv.c b/arch

[PATCH] scsi: scsi_transport_fc: make a field of fc_internal structure const

2017-10-13 Thread Bhumika Goyal
The 'f' field of the fc_internal structure do not modify the fields of the fc_function_template structure it points to. And there are no other pointers initialized with this field 'f'. So, the field 'f' is never modified and therefore make it const. Signed-off-by: Bh

[PATCH] scsi: scsi_transport_fc: make the function argument as const

2017-10-13 Thread Bhumika Goyal
This is a followup patch for: https://lkml.org/lkml/2017/10/13/476 Make the function argument of fc_attach_transport as const as it is only stored in the const field 'f' (made const in the patch in the link) of a fc_internal structure. Signed-off-by: Bhumika Goyal --- This change a

Re: [PATCH] powerpc/eeh: make eeh_ops structures _ro_after_init

2017-10-13 Thread Bhumika Goyal
On Fri, Oct 13, 2017 at 6:08 PM, Julia Lawall wrote: > > > On Fri, 13 Oct 2017, Bhumika Goyal wrote: > >> These structures are passed to the eeh_ops_register function during the >> initialization phase. There they get stored in a structure variable >> which onl

[PATCH 2/2] sound: oss: make audio_driver structure const

2017-10-13 Thread Bhumika Goyal
This is a followup patch for [PATCH 1/2]. Make these structures const as they are only passed to the const argument of the function sound_install_audiodrv. Signed-off-by: Bhumika Goyal --- sound/oss/pas2_pcm.c | 2 +- sound/oss/waveartist.c | 2 +- 2 files changed, 2 insertions(+), 2

[PATCH 1/2] sound: oss: make the function argument as const

2017-10-13 Thread Bhumika Goyal
const to the prototype too. Signed-off-by: Bhumika Goyal --- sound/oss/dev_table.c | 2 +- sound/oss/dev_table.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/oss/dev_table.c b/sound/oss/dev_table.c index 6dad515..dbb9a3b 100644 --- a/sound/oss/dev_table.c +++ b/

[PATCH 0/2] sound: oss: make the function argument and structure const

2017-10-13 Thread Bhumika Goyal
Make the function argument of function sound_install_audiodrv const. After this change, make the structures audio_driver const as they are only passed to the const argument (made const in Patch[1/2]) of the function sound_install_audiodrv . Bhumika Goyal (2): sound: oss: make the function

[PATCH 0/2] drivers: net: add const to mii_phy_ops structures

2017-06-07 Thread Bhumika Goyal
The object references of mii_phy_ops structures are only stored in the ops field of a mii_phy_def structure. This ops field is of type const. So, mii_phy_ops structures having similar properties can be declared as const. Bhumika Goyal (2): drivers/net/sungem: add const to mii_phy_ops structures

[PATCH 2/2] drivers: net: emac: add const to mii_phy_ops structures

2017-06-07 Thread Bhumika Goyal
The object references of mii_phy_ops structures are only stored in the ops field of a mii_phy_def structure. This ops field is of type const. So, mii_phy_ops structures having similar properties can be declared as const. Signed-off-by: Bhumika Goyal --- drivers/net/ethernet/ibm/emac/phy.c | 12

[PATCH 1/2] drivers/net/sungem: add const to mii_phy_ops structures

2017-06-07 Thread Bhumika Goyal
The object references of mii_phy_ops structures are only stored in the ops field of a mii_phy_def structure. This ops field is of type const. So, mii_phy_ops structures having similar properties can be declared as const. Signed-off-by: Bhumika Goyal --- drivers/net/sungem_phy.c | 26

[PATCH] platform/x86: constify rfkill_ops structures

2017-06-08 Thread Bhumika Goyal
Add const to rfkill_ops structures that are only passed as an argument to the functions rfkill_alloc or samsung_new_rfkill. These arguments are of type const, so such structures can be annotated with const. Signed-off-by: Bhumika Goyal --- drivers/platform/x86/dell-rbtn.c | 2 +- drivers

Re: [PATCH] platform/x86: constify rfkill_ops structures

2017-06-08 Thread Bhumika Goyal
On Thu, Jun 8, 2017 at 6:08 PM, Andy Shevchenko wrote: > On Thu, Jun 8, 2017 at 2:17 PM, Bhumika Goyal wrote: >> Add const to rfkill_ops structures that are only passed as an argument >> to the functions rfkill_alloc or samsung_new_rfkill. These arguments are >> of type cons

[PATCH v2] dell-rbtn: constify rfkill_ops structures

2017-06-08 Thread Bhumika Goyal
Add const to rfkill_ops structures that are only passed as an argument to the functions rfkill_alloc or samsung_new_rfkill. These arguments are of type const, so such structures can be annotated with const. Signed-off-by: Bhumika Goyal --- Changes since v1: * Split the changes to one patch per

[PATCH v2] platform/x86: samsung-laptop: constify rfkill_ops structures

2017-06-08 Thread Bhumika Goyal
Add const to rfkill_ops structures that are only passed as an argument to the functions rfkill_alloc or samsung_new_rfkill. These arguments are of type const, so such structures can be annotated with const. Signed-off-by: Bhumika Goyal --- Changes since v1: * Split the changes to one patch per

[PATCH v2] platform/x86: ideapad-laptop: constify rfkill_ops structure

2017-06-08 Thread Bhumika Goyal
Add const to rfkill_ops structure as it is only passed as an argument to the functions rfkill_alloc. This argument is of type const, so annotate the structure with const. Signed-off-by: Bhumika Goyal --- Changes since v1: * Split the changes to one patch per vendor. drivers/platform/x86

[PATCH] staging: lustre: obd: make echo_lock_ops const

2017-08-03 Thread Bhumika Goyal
Declare echo_lock_ops object of type cl_lock_operations as const as it is only passed to the function cl_lock_slice_add. The corresponding argument is of type const, so make the object const. Signed-off-by: Bhumika Goyal --- drivers/staging/lustre/lustre/obdecho/echo_client.c | 2 +- 1 file

[PATCH] [media]: dw2102: make dvb_usb_device_description structures const

2017-08-03 Thread Bhumika Goyal
dvb_usb_device_description structures are only used during a copy operation. Therefore, declare them as const. Signed-off-by: Bhumika Goyal --- drivers/media/usb/dvb-usb/dw2102.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/media/usb/dvb-usb/dw2102

[PATCH] ath9k: make ath_ps_ops structures as const

2017-08-03 Thread Bhumika Goyal
ath_ps_ops structures are only stored as a reference in the ps_ops field of a ath_common structure. This field is of type const, so make the structures as const. Signed-off-by: Bhumika Goyal --- drivers/net/wireless/ath/ath9k/htc_drv_init.c | 2 +- drivers/net/wireless/ath/ath9k/init.c

[PATCH 0/2] ASoC: make snd_soc_codec_driver structures const

2017-08-03 Thread Bhumika Goyal
Declare snd_soc_codec_driver structures as const. Bhumika Goyal (2): ASoC: codecs: add const to snd_soc_codec_driver structures ASoC: sunxi: make snd_soc_codec_driver structures as const sound/soc/codecs/88pm860x-codec.c | 2 +- sound/soc/codecs/ab8500-codec.c| 2 +- sound/soc

[PATCH 1/2] ASoC: codecs: add const to snd_soc_codec_driver structures

2017-08-03 Thread Bhumika Goyal
;s@p,...) @bad@ identifier match.s; position p!={match.p,good1.p}; @@ s@p @depends on !bad disable optional_qualifier@ identifier match.s; @@ static +const struct snd_soc_codec_driver s={...}; Signed-off-by: Bhumika Goyal --- sound/soc/codecs/88pm860x-codec.c | 2 +- sound/soc/codecs/ab

[PATCH 2/2] ASoC: sunxi: make snd_soc_codec_driver structures as const

2017-08-03 Thread Bhumika Goyal
property as const. Signed-off-by: Bhumika Goyal --- sound/soc/sunxi/sun4i-codec.c | 6 +++--- sound/soc/sunxi/sun8i-codec.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c index 73d054f..c668b8b 100644 --- a/sound

[PATCH] ALSA: ice1712: add const to snd_ak4xxx_private structures

2017-08-04 Thread Bhumika Goyal
@p={...}; @good1@ identifier match.s; position p; @@ snd_ice1712_akm4xxx_init(...,&s@p,...) @bad@ identifier match.s; position p!={match.p,good1.p}; @@ s@p @depends on !bad disable optional_qualifier@ identifier match.s; @@ static +const struct snd_ak4xxx_private s={...}; Signed-off-by: Bhu

[PATCH] ALSA: ice1712: add const to snd_akm4xxx structures

2017-08-04 Thread Bhumika Goyal
={...}; @good1@ identifier match.s; position p; @@ snd_ice1712_akm4xxx_init(...,&s@p,...) @bad@ identifier match.s; position p!={match.p,good1.p}; @@ s@p @depends on !bad disable optional_qualifier@ identifier match.s; @@ static +const struct snd_akm4xxx s={...}; Signed-off-by: Bhumika Goyal --- sound

[PATCH] platform/chrome: chromeos_laptop: make chromeos_laptop const

2017-08-05 Thread Bhumika Goyal
Declare chromeos_laptop structures as const as they are only used during a copy operation. As their value is never modified during runtime, they can be made const. Signed-off-by: Bhumika Goyal --- drivers/platform/chrome/chromeos_laptop.c | 22 +++--- 1 file changed, 11

[PATCH] regulator: make regulator_ops structures const

2017-08-05 Thread Bhumika Goyal
t struct regulator_ops s; Signed-off-by: Bhumika Goyal --- drivers/regulator/anatop-regulator.c| 2 +- drivers/regulator/bd9571mwv-regulator.c | 6 +++--- drivers/regulator/cpcap-regulator.c | 2 +- drivers/regulator/fixed.c | 2 +- drivers/regulator/gpio-regulator.c

[PATCH] s390/crypto: make cca_public_sec and cca_token_hdr const

2017-08-05 Thread Bhumika Goyal
Declare cca_public_sec and cca_token_hdr structures as const as they are only used during copy operations. Signed-off-by: Bhumika Goyal --- drivers/s390/crypto/zcrypt_cca_key.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/s390/crypto/zcrypt_cca_key.h b

[PATCH] can: c_can_pci: make c_can_pci_data const

2017-08-05 Thread Bhumika Goyal
Make c_can_pci_data structures const as they are only used during a copy operation. Signed-off-by: Bhumika Goyal --- drivers/net/can/c_can/c_can_pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/can/c_can/c_can_pci.c b/drivers/net/can/c_can/c_can_pci.c

[PATCH] media: ddbridge: make ddb_info const

2017-08-06 Thread Bhumika Goyal
Make ddb_info structures const as they are only used during a copy operation. Signed-off-by: Bhumika Goyal --- drivers/media/pci/ddbridge/ddbridge-core.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/media/pci/ddbridge/ddbridge-core.c b/drivers/media

[PATCH] hamradio: baycom: make hdlcdrv_ops const

2017-08-06 Thread Bhumika Goyal
Make hdlcdrv_ops structures const as they are only passed to hdlcdrv_register function. The corresponding argument is of type const, so make the structures const. Signed-off-by: Bhumika Goyal --- drivers/net/hamradio/baycom_par.c | 2 +- drivers/net/hamradio/baycom_ser_fdx.c | 2 +- drivers

[PATCH] isdn: kcapi: make capi_version const

2017-08-06 Thread Bhumika Goyal
Declare this structure as const as it is only used during a copy operation. Signed-off-by: Bhumika Goyal --- drivers/isdn/capi/kcapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/isdn/capi/kcapi.c b/drivers/isdn/capi/kcapi.c index 9ca691d..46c189a 100644 --- a

[PATCH] x86/platform/intel-mid: make bt_sfi_data const

2017-08-06 Thread Bhumika Goyal
Make this structure const as it is only used during copy operation. Signed-off-by: Bhumika Goyal --- arch/x86/platform/intel-mid/device_libs/platform_bt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/platform/intel-mid/device_libs/platform_bt.c b/arch/x86

[PATCH] dm integrity: make blk_integrity_profile structure const

2017-08-06 Thread Bhumika Goyal
Make this structure const as it is only stored in the profile field of a blk_integrity structure. This field is of type const, so make structure as const. Signed-off-by: Bhumika Goyal --- drivers/md/dm-integrity.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/md/dm

[PATCH v2] rtlwifi: constify rate_control_ops structure

2017-08-06 Thread Bhumika Goyal
rate_control_ops structure is only passed as an argument to the function ieee80211_rate_control_{register/unregister}. This argument is of type const, so declare the structure as const. Signed-off-by: Bhumika Goyal --- Changes in v2: * Change subject line. drivers/net/wireless/realtek/rtlwifi

[PATCH 0/5] ALSA: constify snd_timer_hardware structures

2017-07-28 Thread Bhumika Goyal
Declare snd_timer_hardware structures as const. Bhumika Goyal (5): ALSA: sound/core: constify snd_timer_hardware structures ALSA: isa: constify snd_timer_hardware structures ALSA: pci: constify snd_timer_hardware structures ALSA: sparc: constify snd_timer_hardware structure ALSA: opl3

[PATCH 1/5] ALSA: sound/core: constify snd_timer_hardware structures

2017-07-28 Thread Bhumika Goyal
Declare snd_timer_hardware structures as const as their only usage is during a copy operation. As they are not modified anywhere, they can be made const. Signed-off-by: Bhumika Goyal --- sound/core/hrtimer.c | 2 +- sound/core/pcm_timer.c | 2 +- sound/core/timer.c | 2 +- 3 files changed

[PATCH 2/5] ALSA: isa: constify snd_timer_hardware structures

2017-07-28 Thread Bhumika Goyal
Declare snd_timer_hardware structures as const as their only usage is during a copy operation. As they are not modified anywhere, they can be made const. Signed-off-by: Bhumika Goyal --- sound/isa/ad1816a/ad1816a_lib.c | 2 +- sound/isa/gus/gus_timer.c | 4 ++-- sound/isa/wss/wss_lib.c

[PATCH 4/5] ALSA: sparc: constify snd_timer_hardware structure

2017-07-28 Thread Bhumika Goyal
Declare snd_timer_hardware structure as const as it is only used during a copy operation. As it is not modified anywhere, it can be made const. Cross compiled for sparc architecture. Signed-off-by: Bhumika Goyal --- sound/sparc/cs4231.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH 3/5] ALSA: pci: constify snd_timer_hardware structures

2017-07-28 Thread Bhumika Goyal
Declare snd_timer_hardware structures as const as their only usage is during a copy operation. As they are not modified anywhere, they can be made const. Signed-off-by: Bhumika Goyal --- sound/pci/emu10k1/timer.c | 2 +- sound/pci/ymfpci/ymfpci_main.c | 2 +- 2 files changed, 2 insertions

[PATCH 5/5] ALSA: opl3: constify snd_timer_hardware structures

2017-07-28 Thread Bhumika Goyal
Declare snd_timer_hardware structures as const as their only usage is during a copy operation. As they are not modified anywhere, they can be made const. Signed-off-by: Bhumika Goyal --- sound/drivers/opl3/opl3_lib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound

[PATCH 3/5] ALSA: pci: constify snd_timer_hardware structures

2017-07-28 Thread Bhumika Goyal
Declare snd_timer_hardware structures as const as their only usage is during a copy operation. As they are not modified anywhere, they can be made const. Signed-off-by: Bhumika Goyal --- sound/pci/emu10k1/timer.c | 2 +- sound/pci/ymfpci/ymfpci_main.c | 2 +- 2 files changed, 2 insertions

[PATCH] dlm: constify kset_uevent_ops structure

2017-07-28 Thread Bhumika Goyal
Declare kset_uevent_ops structure as const as it is only passed as an argument to the function kset_create_and_add. This argument is of type const, so declare the structure as const. Signed-off-by: Bhumika Goyal --- fs/dlm/lockspace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH] ata: make ata_port_operations const

2017-08-07 Thread Bhumika Goyal
Make ata_port_operations structures const as it is only stored in the inherits field of an ata_port_operations structure. Therefore make it const. Signed-off-by: Bhumika Goyal --- drivers/ata/pata_sis.c | 2 +- drivers/ata/sata_via.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions

Re: [PATCH] ata: make ata_port_operations const

2017-08-07 Thread Bhumika Goyal
On Mon, Aug 7, 2017 at 8:37 PM, Tejun Heo wrote: > Hello, > > On Mon, Aug 07, 2017 at 04:02:02PM +0530, Bhumika Goyal wrote: >> Make ata_port_operations structures const as it is only stored in the >> inherits field of an ata_port_operations structure. Therefore make it >&

Re: [PATCH] ata: make ata_port_operations const

2017-08-08 Thread Bhumika Goyal
On Mon, Aug 7, 2017 at 10:04 PM, Joe Perches wrote: > On Mon, 2017-08-07 at 09:29 -0700, Tejun Heo wrote: >> Hello, >> >> On Mon, Aug 07, 2017 at 08:54:21PM +0530, Bhumika Goyal wrote: >> > I compiled the .o files and checked the size before and after >> >

[PATCH 0/3] drm: make drm_connector_funcs structures const

2017-08-08 Thread Bhumika Goyal
Declare drm_connector_funcs structures as const. Bhumika Goyal (3): drm/bridge: make drm_connector_funcs structures const drm/sun4i: make drm_connector_funcs structures const drm/rockchip: make drm_connector_funcs structures const drivers/gpu/drm/bridge/adv7511/adv7511_drv.c | 2

[PATCH 1/3] drm/bridge: make drm_connector_funcs structures const

2017-08-08 Thread Bhumika Goyal
f-by: Bhumika Goyal --- drivers/gpu/drm/bridge/adv7511/adv7511_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c b/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c index ff9792d..ee16635 100644 --- a/drivers/gpu/drm/bridge/adv

[PATCH 3/3] drm/rockchip: make drm_connector_funcs structures const

2017-08-08 Thread Bhumika Goyal
f-by: Bhumika Goyal --- drivers/gpu/drm/rockchip/inno_hdmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/rockchip/inno_hdmi.c b/drivers/gpu/drm/rockchip/inno_hdmi.c index 7149968..1a1a3dd 100644 --- a/drivers/gpu/drm/rockchip/inno_hdmi.c +++ b/drivers/gpu

[PATCH 2/3] drm/sun4i: make drm_connector_funcs structures const

2017-08-08 Thread Bhumika Goyal
f-by: Bhumika Goyal --- drivers/gpu/drm/sun4i/sun4i_rgb.c | 2 +- drivers/gpu/drm/sun4i/sun4i_tv.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/sun4i/sun4i_rgb.c b/drivers/gpu/drm/sun4i/sun4i_rgb.c index 76362c0..4a456de 100644 --- a/drivers/gpu/drm/s

[PATCH] drm: make drm_mode_config_func const

2017-08-08 Thread Bhumika Goyal
epends on forall !bad disable optional_qualifier@ identifier match.s; @@ static + const struct drm_mode_config_funcs s; Signed-off-by: Bhumika Goyal --- drivers/gpu/drm/arc/arcpgu_drv.c | 2 +- drivers/gpu/drm/pl111/pl111_drv.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a

[PATCH] drm/virtio: make drm_fb_helper_funcs const

2017-08-08 Thread Bhumika Goyal
cs s; Signed-off-by: Bhumika Goyal --- drivers/gpu/drm/virtio/virtgpu_fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/virtio/virtgpu_fb.c b/drivers/gpu/drm/virtio/virtgpu_fb.c index 046e28b..15d18fd 100644 --- a/drivers/gpu/drm/virtio/virtgpu_fb.c +

[PATCH] staging: vboxvideo: make drm_fb_helper_funcs const

2017-08-08 Thread Bhumika Goyal
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 using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/staging/vboxvideo/vbox_fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

[PATCH] drm/bridge: make drm_bridge_funcs const

2017-08-08 Thread Bhumika Goyal
Make these structures const as they are only stored in the funcs field of drm_bridge structure, which is of type const. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/gpu/drm/bridge/adv7511/adv7511_drv.c | 2 +- drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 2 +- 2 files

[PATCH] net: dsa: make dsa_switch_ops const

2017-08-08 Thread Bhumika Goyal
Make these structures const as they are only stored in the ops field of a dsa_switch structure, which is const. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/net/dsa/dsa_loop.c | 2 +- drivers/net/dsa/lan9303-core.c | 2 +- drivers/net/dsa/mt7530.c | 2 +- 3 files

Re: [PATCH] s390/crypto: make cca_public_sec and cca_token_hdr const

2017-08-09 Thread Bhumika Goyal
On Wed, Aug 9, 2017 at 11:22 AM, Heiko Carstens wrote: > On Sun, Aug 06, 2017 at 11:22:27AM +0530, Bhumika Goyal wrote: >> Declare cca_public_sec and cca_token_hdr structures as const as they are >> only used during copy operations. >> >> Signed-off-by: Bhumika Goy

[PATCH] PCI: dwc: make dw_pcie_host_ops const

2017-08-09 Thread Bhumika Goyal
Make these structures const as they are only stored in the ops field of a pcie_port structure, which is of type const. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/pci/dwc/pcie-hisi.c | 2 +- drivers/pci/dwc/pcie-kirin.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions

[PATCH] atm: make atmdev_ops const

2017-08-09 Thread Bhumika Goyal
Make these structures const as they are either passed to the function atm_dev_register having the corresponding argument as const or stored in the ops field of a atm_dev structure, which is also const. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/atm/adummy.c| 2

[PATCH] net: atm: make atmdev_ops const

2017-08-09 Thread Bhumika Goyal
Make these const as they are only stored in the ops field of a atm_dev structure, which is const. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- net/atm/clip.c | 2 +- net/atm/lec.c | 2 +- net/atm/mpc.c | 2 +- net/atm/signaling.c | 2 +- 4 files changed, 4 insertions

[PATCH] USB: atm: make atmdev_ops const

2017-08-09 Thread Bhumika Goyal
Make these const as they are only passed to the function atm_dev_register and the corresponding argument is of type const. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/usb/atm/usbatm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/atm

[PATCH 1/2] mfd: make regmap_irq_chip const

2017-08-11 Thread Bhumika Goyal
Make these const as they are either passed to the function devm_regmap_add_irq_chip or regmap_add_irq_chip having the corresponding arguments as const. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/mfd/bd9571mwv.c| 2 +- drivers/mfd/intel_soc_pmic_bxtwc.c | 2

[PATCH 0/2] drivers: make regmap_irq_chip const

2017-08-11 Thread Bhumika Goyal
Make these structures const. Done using Coccinelle. Bhumika Goyal (2): mfd: make regmap_irq_chip const gpio: make regmap_irq_chip const drivers/gpio/gpio-max77620.c | 2 +- drivers/mfd/bd9571mwv.c| 2 +- drivers/mfd/intel_soc_pmic_bxtwc.c | 2 +- drivers/mfd/tps65086.c

[PATCH 2/2] gpio: make regmap_irq_chip const

2017-08-11 Thread Bhumika Goyal
Make the structure const as it is only passed to the function devm_regmap_add_irq_chip having the corresponding argument as const. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/gpio/gpio-max77620.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[PATCH 1/3] usb: renesas_usbhs: gadget: make usb_ep_ops const

2017-08-12 Thread Bhumika Goyal
Make the structure const as it is only stored in the ops field of a usb_ep structure, which is of type const. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/usb/renesas_usbhs/mod_gadget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb

[PATCH 0/3] usb: make usb_ep_ops const

2017-08-12 Thread Bhumika Goyal
Constify usb_ep_ops structures. Bhumika Goyal (3): usb: renesas_usbhs: gadget: make usb_ep_ops const usb: gadget: udc: renesas_usb3: make usb_ep_ops const usb: dwc2: gadget: make usb_ep_ops const drivers/usb/dwc2/gadget.c | 2 +- drivers/usb/gadget/udc/renesas_usb3.c | 2

[PATCH 3/3] usb: dwc2: gadget: make usb_ep_ops const

2017-08-12 Thread Bhumika Goyal
Make the structure const as it is only stored in the ops field of a usb_ep structure, which is of type const. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/usb/dwc2/gadget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/dwc2/gadget.c b/drivers

[PATCH 2/3] usb: gadget: udc: renesas_usb3: make usb_ep_ops const

2017-08-12 Thread Bhumika Goyal
Make the structure const as it is only stored in the ops field of a usb_ep structure, which is of type const. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/usb/gadget/udc/renesas_usb3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/udc

[PATCH] [media] tuners: make tda18271_std_map const

2017-08-12 Thread Bhumika Goyal
Make these const as they are only used during a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/media/tuners/tda18271-maps.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/tuners/tda18271-maps.c b/drivers/media/tuners

[PATCH 00/16] ALSA: PCI: constify snd_pcm_hardware const

2017-08-12 Thread Bhumika Goyal
Declare snd_pcm_hardware const. Done using Coccinelle. Bhumika Goyal (16): ALSA: aw2: make snd_pcm_hardware const ALSA: ca0106: make snd_pcm_hardware const ALSA: cs46xx: make snd_pcm_hardware const ALSA: korg1212: make snd_pcm_hardware const ALSA: cs5535audio: make snd_pcm_hardware

[PATCH 02/16] ALSA: ca0106: make snd_pcm_hardware const

2017-08-12 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/ca0106/ca0106_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/pci/ca0106/ca0106_main.c b/sound/pci/ca0106/ca0106_main.c index

[PATCH 03/16] ALSA: cs46xx: make snd_pcm_hardware const

2017-08-12 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/cs46xx/cs46xx_lib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/pci/cs46xx/cs46xx_lib.c b/sound/pci/cs46xx/cs46xx_lib.c index

<    1   2   3   4   5   6   7   >