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


Groups > linux.kernel > #1300297 > unrolled thread

[PATCH] media: bt8xx: constify sp887x_config structure

Started byJulia Lawall <Julia.Lawall@lip6.fr>
First post2016-01-03 13:50 +0100
Last post2016-01-03 13:50 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] media: bt8xx: constify sp887x_config structure Julia Lawall <Julia.Lawall@lip6.fr> - 2016-01-03 13:50 +0100

#1300297 — [PATCH] media: bt8xx: constify sp887x_config structure

FromJulia Lawall <Julia.Lawall@lip6.fr>
Date2016-01-03 13:50 +0100
Subject[PATCH] media: bt8xx: constify sp887x_config structure
Message-ID<qMQgF-5uo-9@gated-at.bofh.it>
This sp887x_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>

---
This patch and the previous one on the same file can be applied in any order.

 drivers/media/pci/bt8xx/dvb-bt8xx.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/pci/bt8xx/dvb-bt8xx.c b/drivers/media/pci/bt8xx/dvb-bt8xx.c
index d407244..a3aa0cd 100644
--- a/drivers/media/pci/bt8xx/dvb-bt8xx.c
+++ b/drivers/media/pci/bt8xx/dvb-bt8xx.c
@@ -318,7 +318,7 @@ static int microtune_mt7202dtf_request_firmware(struct dvb_frontend* fe, const s
 	return request_firmware(fw, name, &bt->bt->dev->dev);
 }
 
-static struct sp887x_config microtune_mt7202dtf_config = {
+static const struct sp887x_config microtune_mt7202dtf_config = {
 	.demod_address = 0x70,
 	.request_firmware = microtune_mt7202dtf_request_firmware,
 };

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web