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
.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
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
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 <bhumi...@gmail.com>
---
drivers/media/platform/d
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 <bhumi...@gmail.com>
---
drivers/media/usb/au0828/au0828-vbi.c | 2 +-
drivers/media/usb/au0828/au0828.h
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 <bhumi...@gmail.com>
---
drivers/media/pci/cx23885/cx23885-vbi.c | 2 +-
drivers/media/pci/cx23885/cx23885.h
Make this const as it is only used in a copy operation in the file
referencing it. Make the declaration const too.
Done using Coccinelle.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
Changes in v2:
* Fix spelling mistake in the commit message.
drivers/media/pci/zoran/zoran_
Make this constas it is only used in a copy operation in the file
referencing it. Make the declaration const too.
Done using Coccinelle.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/pci/zoran/zoran_card.h | 2 +-
drivers/media/pci/zoran/zoran_driver.c | 2 +-
2
Make this const as it is only passed to the const argument of the
function videobuf_queue_sg_init in the file referencing it.
Also, make the declaration in the header const.
Structure found using Coccienlle and changes done by hand.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
d
Make this const as it is only used in a copy operation in the files
referencing it. Add const to declaration in the header too.
Structure found using Coccienlle and changes done by hand.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/radio/si470x/radio-si470x-common
Make this const as it is only passed to the const argument of the
function videobuf_queue_vmalloc_init in the file referencing it.
Also, make the declaration in the header const.
Structure found using Coccienlle and changes done by hand.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.
Make these const as they are not modified in the file referencing them.
They are only used when their function pointer fields invokes a
function and therefore none of the structure fields are getting modified.
Also, add a const to the declaration in the header.
Signed-off-by: Bhumika Goyal <bh
Make these const as they are only used in a copy operation.
Done using Coccinelle.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/pci/cx23885/cx23885-i2c.c | 2 +-
drivers/media/pci/cx25821/cx25821-i2c.c | 2 +-
drivers/media/pci/ivtv/ivtv-i2c.c | 2 +-
drivers
= s@p.f
|
c(...,s@p.f,...)
|
c(...,s@p,...)
)
@bad depends on !good1@
position ref.p;
identifier match.s;
@@
s@p
@depends on forall !bad disable optional_qualifier@
identifier match.s;
@@
static
+ const
struct i2c_client s;
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/med
Make these const as they are only used during a copy operation.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
Changes in v2:
* Combine the patch series sent for drivers/media/usb/ into a
single patch.
drivers/media/usb/airspy/airspy.c| 2 +-
drivers/media/usb/cpia2/cpia2
Make these const as they are either used during a copy operation or
passed to a const argument of the function cx88_vdev_init.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
* Combine the patch series sent for drivers/media/pci/ into a
single patch.
drivers/media/pci/cx8
match.s;
@@
static
+ const
struct video_device s;
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
Changes in v2:
* Combine the patch series sent for drivers/media/platform/ into a
single patch.
drivers/media/platform/fsl-viu.c| 2 +-
drivers/media/platform/m2m
On Sat, Aug 26, 2017 at 5:29 PM, Mauro Carvalho Chehab
<mche...@s-opensource.com> wrote:
> Em Sat, 26 Aug 2017 15:50:02 +0530
> Bhumika Goyal <bhumi...@gmail.com> escreveu:
>
>> Make make video_device const.
>>
>> Bhumika Goyal (10):
>> [media] cx88
Make this const as it is only used in a copy operation.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/staging/media/bcm2048/radio-bcm2048.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/media/bcm2048/radio-bcm2048.c
b/drivers/staging
Make this const as it is only used in a copy operation.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/pci/saa7134/saa7134-empress.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/pci/saa7134/saa7134-empress.c
b/drivers/media/pci/s
Make video_device const.
Bhumika Goyal (5):
[media] meye: make video_device const
[media] saa7134: make video_device const
[media] solo6x10: make video_device const
[media] sta2x11: make video_device const
[media] tw68: make video_device const
drivers/media/pci/meye/meye.c
Make this const as it is only used in a copy operation.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/pci/meye/meye.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/pci/meye/meye.c b/drivers/media/pci/meye/meye.c
index 0fe76be..4
Make this const as it is only used in a copy operation.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/pci/solo6x10/solo6x10-v4l2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/pci/solo6x10/solo6x10-v4l2.c
b/drivers/media/pci/so
Make this const as it is only used in a copy operation.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/pci/sta2x11/sta2x11_vip.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/pci/sta2x11/sta2x11_vip.c
b/drivers/media/pci/s
Make this const as it is only used in a copy operation.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/pci/tw68/tw68-video.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/pci/tw68/tw68-video.c
b/drivers/media/pci/tw68/tw68-video.c
Make this const as it is only passed to the const argument of the
function cx88_vdev_init.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/pci/cx88/cx88-blackbird.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/pci/cx88/cx88-blackbir
Make make video_device const.
Bhumika Goyal (10):
[media] cx88: make video_device const
[media] dt3155: make video_device const
[media]: marvell-ccic: make video_device const
[media] mx2-emmaprp: make video_device const
[media]: s5p-g2d: make video_device const
[media]: ti-vpe: make
Make this const as it is only used in a copy operation.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/platform/s5p-g2d/g2d.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/platform/s5p-g2d/g2d.c
b/drivers/media/platform/s5p-g2d
Make this const as it is only used in a copy operation.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/platform/mx2_emmaprp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/platform/mx2_emmaprp.c
b/drivers/media/platform/mx2_emm
Make this const as it is only used in a copy operation.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/pci/dt3155/dt3155.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/pci/dt3155/dt3155.c
b/drivers/media/pci/dt3155/dt3155.c
index 6
Make this const as it is only used in a copy operation.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/platform/marvell-ccic/mcam-core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/platform/marvell-ccic/mcam-core.c
b/drivers
Make this const as it is only used in a copy operation.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/platform/m2m-deinterlace.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/platform/m2m-deinterlace.c
b/drivers/media/platfo
Make this const as it is only used in a copy operation.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/platform/fsl-viu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/platform/fsl-viu.c b/drivers/media/platform/fsl-viu.c
index f
Make this const as it is only used in a copy operation.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/platform/via-camera.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/platform/via-camera.c
b/drivers/media/platform/via-camera.c
Make this const as it is only used in a copy operation.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/platform/vim2m.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/platform/vim2m.c b/drivers/media/platform/vim2m.c
index afbaa35..b
Make this const as it is only used in a copy operation.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/platform/ti-vpe/cal.c | 2 +-
drivers/media/platform/ti-vpe/vpe.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/media/platform/ti-vpe
Make these const as they are only used in a copy operation.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/radio/radio-tea5764.c| 2 +-
drivers/media/radio/radio-wl1273.c | 2 +-
drivers/media/radio/si4713/radio-platform-si4713
Make video_device const.
Bhumika Goyal (11):
[media] zr364xx: make video_device const
[media] stkwebcam: make video_device const
[media] stk1160: make video_device const
[media] s2255drv: make video_device const
[media] pwc: make video_device const
[media] pvrusb2: make video_device
Make this const as it is only used in a copy operation.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/usb/stkwebcam/stk-webcam.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/usb/stkwebcam/stk-webcam.c
b/drivers/media/usb/stkwebc
Make this const as it is only used in a copy operation.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/usb/s2255/s2255drv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/usb/s2255/s2255drv.c
b/drivers/media/usb/s2255/s2255drv.c
Make this const as it is only used in a copy operation.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/usb/stk1160/stk1160-v4l.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/usb/stk1160/stk1160-v4l.c
b/drivers/media/usb/stk1160/s
Make this const as it is only used in a copy operation.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/usb/zr364xx/zr364xx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/usb/zr364xx/zr364xx.c
b/drivers/media/usb/zr364xx/zr364xx.c
Make this const as it is only used in a copy operation.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/usb/pwc/pwc-if.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/usb/pwc/pwc-if.c b/drivers/media/usb/pwc/pwc-if.c
index 22420c1..e
Make this const as it is only used in a copy operation.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/usb/pvrusb2/pvrusb2-v4l2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/usb/pvrusb2/pvrusb2-v4l2.c
b/drivers/media/usb/pvrusb2/p
Make this const as it is only used in a copy operation.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/usb/msi2500/msi2500.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/usb/msi2500/msi2500.c
b/drivers/media/usb/msi2500/msi2500.c
Make this const as it is only used in a copy operation.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/usb/airspy/airspy.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/usb/airspy/airspy.c
b/drivers/media/usb/airspy/airspy.c
index 0
Make this const as it is only used in a copy operation.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/usb/cpia2/cpia2_v4l.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/usb/cpia2/cpia2_v4l.c
b/drivers/media/usb/cpia2/cpia2_v4l.c
Make this const as it is only used in a copy operation.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/usb/hackrf/hackrf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/usb/hackrf/hackrf.c
b/drivers/media/usb/hackrf/hackrf.c
index a
Make this const as it is only used in a copy operation.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/usb/go7007/go7007-v4l2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/usb/go7007/go7007-v4l2.c
b/drivers/media/usb/go7007/go700
Make this const as it is only stored in a const field of a
video_device structure.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/staging/media/omap4iss/iss_video.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/media/omap4iss/iss_vide
Make this const as it is only stored in a const field of a
video_device structure.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/usb/usbtv/usbtv-video.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/usb/usbtv/usbtv-video.c
b/d
Make this const as it is only stored in a const field of a
video_device structure.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/platform/omap3isp/ispvideo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/platform/omap3isp/ispvide
Make this const as it is only stored in a const field of a
video_device structure.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/pci/cx18/cx18-streams.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/pci/cx18/cx18-streams.c
b/d
Make these const as they are only used as a copy operation.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/platform/omap3isp/isppreview.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/media/platform/omap3isp/isppreview.c
b/drivers
Make this const as it is only used in a copy operation.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/pci/cx18/cx18-i2c.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/pci/cx18/cx18-i2c.c
b/drivers/media/pci/cx18/cx18-i2c.c
index e
Make this const as it is only used in a copy operation.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/pci/bt8xx/bttv-i2c.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/pci/bt8xx/bttv-i2c.c
b/drivers/media/pci/bt8xx/bttv-i2c.c
Make i2c_adapter const. Done using Coccinelle.
Bhumika Goyal (4):
i2c: busses: make i2c_adapter const
[media] media: pci: make i2c_adapter const
[media] radio-usb-si4713: make i2c_adapter const
[media] usb: make i2c_adapter const
drivers/i2c/busses/i2c-kempld.c | 2
Make these const as they are only used in a copy operation.
Done using Coccinelle.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/i2c/busses/i2c-kempld.c | 2 +-
drivers/i2c/busses/i2c-ocores.c | 2 +-
drivers/i2c/busses/i2c-octeon-platdrv.c | 2 +-
drive
Make these const as they are only used in a copy operation.
Done using Coccinelle
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/pci/cobalt/cobalt-i2c.c | 2 +-
drivers/media/pci/cx18/cx18-i2c.c | 2 +-
drivers/media/pci/cx23885/cx23885
Make these const as they are only used in a copy operation.
Done using Coccinelle
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/usb/au0828/au0828-i2c.c| 2 +-
drivers/media/usb/cx231xx/cx231xx-i2c.c | 2 +-
drivers/media/usb/em28xx/em28xx-i2c.c
Make this const as it is only used in a copy operation.
Done using Coccinelle
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/radio/si4713/radio-usb-si4713.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/radio/si4713/radio-usb-si471
Make this const as it is only stored in the type field of a device
structure, which is const.
Done using Coccinelle.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/misc/mei/bus.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/misc/mei/bus.c b/d
Make these const as they are only stored in the type field of a device
structure, which is const.
Done using Coccinelle.
---
drivers/gpu/drm/drm_sysfs.c | 2 +-
drivers/gpu/drm/ttm/ttm_module.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/drm_sysfs.c
Make this const as it is only stored in the type field of a device
structure, which is const.
Done using Coccinelle.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/i2c/soc_camera/mt9t031.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/med
Make device_type const. Done using Coccinelle.
Bhumika Goyal (15):
EDAC: make device_type const
drm: make device_type const
[media] i2c: make device_type const
[media] rc: make device_type const
mei: make device_type const
mtd: make device_type const
mux: make device_type const
Make this const as it is only stored in the type field of a device
structure, which is const.
Done using Coccinelle.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/mux/mux-core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mux/mux-core.c b/d
Make this const as it is only stored in the type field of a device
structure, which is const.
Done using Coccinelle.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/pci/endpoint/pci-epf-core.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drive
Make this const as it is only stored in the type field of a device
structure, which is const.
Done using Coccinelle.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/staging/greybus/gbphy.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/g
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 <bhumi...@gmail.com>
---
drivers/phy/tegra/xusb.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/phy/tegra/
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 <bhumi...@gmail.com>
---
drivers/scsi/fcoe/fcoe_sysfs.c | 4 ++--
drivers/scsi/scsi_transport_iscsi.c | 4 ++--
2 files changed, 4 inse
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 <bhumi...@gmail.com>
---
drivers/platform/x86/wmi.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/platfo
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 <bhumi...@gmail.com>
---
drivers/s390/crypto/ap_card.c | 2 +-
drivers/s390/crypto/ap_queue.c | 2 +-
2 files changed, 2 insertions
Make this const as it is only stored in the type field of a device
structure, which is const.
Done using Coccinelle.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/usb/common/ulpi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/common/ul
Make this const as it is only stored in the type field of a device
structure, which is const.
Done using Coccinelle.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/remoteproc/remoteproc_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/remo
Make this const as it is only stored in the type field of a device
structure, which is const.
Done using Coccinelle.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/mtd/mtdcore.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mtd/mtdcore.c b/drive
Make this const as it is only stored in the type field of a device
structure, which is const.
Done using Coccinelle.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/rc/rc-main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/rc/rc-ma
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 <bhumi...@gmail.com>
---
drivers/edac/edac_mc_sysfs.c | 8
drivers/edac/i7core_edac.c | 4 ++--
2 files changed, 6 insertions
Make these const.
Bhumika Goyal (2):
i2c: busses: make i2c_algorithm const
[media] usb: make i2c_algorithm const
drivers/i2c/busses/i2c-pnx.c | 2 +-
drivers/i2c/busses/i2c-puv3.c| 2 +-
drivers/media/usb/au0828/au0828-i2c.c| 2 +-
drivers/media/usb
Make these const as they are only stored in the algo field of
i2c_adapter structure, which is const.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/i2c/busses/i2c-pnx.c | 2 +-
drivers/i2c/busses/i2c-puv3.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff
Make these const as they are only used in a copy operation or
are stored in the algo field of i2c_adapter structure, which is const.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/usb/au0828/au0828-i2c.c| 2 +-
drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c | 2
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 <
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 <
Make this const as it is only used during a copy operation.
Done using Coccinelle.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/pci/solo6x10/solo6x10-g723.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/pci/solo6x10/solo6x10-g72
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 <bhumi...@gmail.com>
---
drivers/media/pci/cx88/cx88-alsa.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/d
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
Make these const as they are only used during a copy operation.
Done using Coccinelle.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/pci/cobalt/cobalt-alsa-pcm.c | 4 ++--
drivers/media/pci/cx18/cx18-alsa-pcm.c | 2 +-
drivers/media/pci/cx23885/cx23885-alsa.c
Make this const as it is only used during a copy operation.
Done using Coccinelle.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/usb/gadget/function/u_audio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/gadget/function/u_audio.c
b/drive
Make these const as they are only used during a copy operation.
Done using Coccinelle.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/usb/cx231xx/cx231xx-audio.c | 2 +-
drivers/media/usb/em28xx/em28xx-audio.c | 2 +-
drivers/media/usb/go7007/snd-go7007.c
Make these const as they are only used during a copy operation.
Done using Coccinelle.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/tuners/tda18271-maps.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/media/tuners/tda18271-map
Make these const as they are only used during a copy operation.
Done using Coccinelle.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/s
Make this const as it is only used during a copy operation.
Done using Coccinelle.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/bridge/synopsys/d
Make snd_pcm_hardware structures const.
Bhumika Goyal (6):
[media] usb: make snd_pcm_hardware const
[media] pci: make snd_pcm_hardware const
drm: bridge: dw-hdmi: make snd_pcm_hardware const
usb: gadget: make snd_pcm_hardware const
staging: bcm2835-audio: make snd_pcm_hardware const
Make these const as they are only used during a copy operation.
Done using Coccinelle.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/tuners/tda18271-maps.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/media/tuners/tda18271-map
Make ddb_info structures const as they are only used during a copy
operation.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/pci/ddbridge/ddbridge-core.c | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/media/pci/ddbridge/ddbridge-
dvb_usb_device_description structures are only used during a copy
operation. Therefore, declare them as const.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/usb/dvb-usb/dw2102.c | 14 +++---
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/drivers
Declare v4l2_file_operations structure as const as it is only stored
in the fops field of video_device structure. This field is of type
const, so declare v4l2_file_operations structures with similar properties
as const.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/med
not cross compile for arm. Could not find any architecture matching the
configuraion symbol for fsl-viu.c file.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/platform/blackfin/bfin_capture.c | 2 +-
drivers/media/platform/davinci/vpbe_display.c | 2 +-
drivers
Declare v4l2_file_operations structures as const as they are only stored
in the fops field of video_device structures. This field is of type
const, so declare v4l2_file_operations structures with similar properties
as const.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/med
157672262 36 180654691 media/pci/ttpci/budget-ci.o
105551918 4 1247730bd drivers/media/pci/ttpci/budget.o
106831822 4 1250930dd drivers/media/pci/ttpci/budget.o
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/pci/dm1105/dm
to which the object reference is passed is of type
const. So, mb86a16_config structures having this property can be made
const.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/pci/mantis/mantis_vp1034.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff
reference is passed is of type
const. So, mb86a16_config structures having this property can be made
const.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com>
---
drivers/media/pci/cx88/cx88-dvb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/pci/cx88/cx88
1 - 100 of 118 matches
Mail list logo