summaryrefslogtreecommitdiffstats
path: root/drivers/media/pci
diff options
context:
space:
mode:
authorJulia Lawall2016-01-03 12:58:14 +0100
committerMauro Carvalho Chehab2016-02-01 10:54:37 +0100
commit3defe84a76d5055b24e2e04b5171892fa9455566 (patch)
treea099312eae00f3e4a7b45a7481e33ff815474913 /drivers/media/pci
parent[media] usbtv: correctly handling failed allocation (diff)
downloadkernel-qcow2-linux-3defe84a76d5055b24e2e04b5171892fa9455566.tar.gz
kernel-qcow2-linux-3defe84a76d5055b24e2e04b5171892fa9455566.tar.xz
kernel-qcow2-linux-3defe84a76d5055b24e2e04b5171892fa9455566.zip
[media] av7110: constify sp8870_config structure
This sp8870_config structure is never modified, so declare it as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/pci')
-rw-r--r--drivers/media/pci/ttpci/av7110.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/ttpci/av7110.c b/drivers/media/pci/ttpci/av7110.c
index a69dc6a0752b..18d229fa65cf 100644
--- a/drivers/media/pci/ttpci/av7110.c
+++ b/drivers/media/pci/ttpci/av7110.c
@@ -1739,7 +1739,7 @@ static int alps_tdlb7_request_firmware(struct dvb_frontend* fe, const struct fir
#endif
}
-static struct sp8870_config alps_tdlb7_config = {
+static const struct sp8870_config alps_tdlb7_config = {
.demod_address = 0x71,
.request_firmware = alps_tdlb7_request_firmware,