Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1711269 > unrolled thread

[PATCH] media: ddbridge: constify stv0910_p and lnbh25_cfg

Started byJulia Lawall <Julia.Lawall@lip6.fr>
First post2017-08-14 19:30 +0200
Last post2017-08-14 19:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] media: ddbridge: constify stv0910_p and lnbh25_cfg Julia Lawall <Julia.Lawall@lip6.fr> - 2017-08-14 19:30 +0200

#1711269 — [PATCH] media: ddbridge: constify stv0910_p and lnbh25_cfg

FromJulia Lawall <Julia.Lawall@lip6.fr>
Date2017-08-14 19:30 +0200
Subject[PATCH] media: ddbridge: constify stv0910_p and lnbh25_cfg
Message-ID<uerlD-6ZW-3@gated-at.bofh.it>
These structures are only copied into other stuructures, so
they can be const.

Done with the help of Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>

---
 drivers/media/pci/ddbridge/ddbridge-core.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/media/pci/ddbridge/ddbridge-core.c b/drivers/media/pci/ddbridge/ddbridge-core.c
index 7e164a37..7ff570b 100644
--- a/drivers/media/pci/ddbridge/ddbridge-core.c
+++ b/drivers/media/pci/ddbridge/ddbridge-core.c
@@ -800,14 +800,14 @@ static int tuner_attach_stv6110(struct ddb_input *input, int type)
 	return 0;
 }
 
-static struct stv0910_cfg stv0910_p = {
+static const struct stv0910_cfg stv0910_p = {
 	.adr      = 0x68,
 	.parallel = 1,
 	.rptlvl   = 4,
 	.clk      = 30000000,
 };
 
-static struct lnbh25_config lnbh25_cfg = {
+static const struct lnbh25_config lnbh25_cfg = {
 	.i2c_address = 0x0c << 1,
 	.data2_config = LNBH25_TEN
 };

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web