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


Groups > linux.kernel > #1704772 > unrolled thread

[PATCH] media: ddbridge: make ddb_info const

Started byBhumika Goyal <bhumirks@gmail.com>
First post2017-08-06 09:50 +0200
Last post2017-08-06 09:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] media: ddbridge: make ddb_info const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-06 09:50 +0200

#1704772 — [PATCH] media: ddbridge: make ddb_info const

FromBhumika Goyal <bhumirks@gmail.com>
Date2017-08-06 09:50 +0200
Subject[PATCH] media: ddbridge: make ddb_info const
Message-ID<ubotY-7MP-17@gated-at.bofh.it>
Make ddb_info structures const as they are only used during a copy
operation.

Signed-off-by: Bhumika Goyal <bhumirks@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-core.c b/drivers/media/pci/ddbridge/ddbridge-core.c
index ec41804..7505e1e 100644
--- a/drivers/media/pci/ddbridge/ddbridge-core.c
+++ b/drivers/media/pci/ddbridge/ddbridge-core.c
@@ -2302,7 +2302,7 @@ static int ddb_probe(struct pci_dev *pdev, const struct pci_device_id *id)
 
 /*** MaxA8 adapters ***********************************************************/
 
-static struct ddb_info ddb_ct2_8 = {
+static const struct ddb_info ddb_ct2_8 = {
 	.type     = DDB_OCTOPUS_MAX_CT,
 	.name     = "Digital Devices MAX A8 CT2",
 	.port_num = 4,
@@ -2311,7 +2311,7 @@ static int ddb_probe(struct pci_dev *pdev, const struct pci_device_id *id)
 	.ts_quirks = TS_QUIRK_SERIAL,
 };
 
-static struct ddb_info ddb_c2t2_8 = {
+static const struct ddb_info ddb_c2t2_8 = {
 	.type     = DDB_OCTOPUS_MAX_CT,
 	.name     = "Digital Devices MAX A8 C2T2",
 	.port_num = 4,
@@ -2320,7 +2320,7 @@ static int ddb_probe(struct pci_dev *pdev, const struct pci_device_id *id)
 	.ts_quirks = TS_QUIRK_SERIAL,
 };
 
-static struct ddb_info ddb_isdbt_8 = {
+static const struct ddb_info ddb_isdbt_8 = {
 	.type     = DDB_OCTOPUS_MAX_CT,
 	.name     = "Digital Devices MAX A8 ISDBT",
 	.port_num = 4,
@@ -2329,7 +2329,7 @@ static int ddb_probe(struct pci_dev *pdev, const struct pci_device_id *id)
 	.ts_quirks = TS_QUIRK_SERIAL,
 };
 
-static struct ddb_info ddb_c2t2i_v0_8 = {
+static const struct ddb_info ddb_c2t2i_v0_8 = {
 	.type     = DDB_OCTOPUS_MAX_CT,
 	.name     = "Digital Devices MAX A8 C2T2I V0",
 	.port_num = 4,
@@ -2338,7 +2338,7 @@ static int ddb_probe(struct pci_dev *pdev, const struct pci_device_id *id)
 	.ts_quirks = TS_QUIRK_SERIAL | TS_QUIRK_ALT_OSC,
 };
 
-static struct ddb_info ddb_c2t2i_8 = {
+static const struct ddb_info ddb_c2t2i_8 = {
 	.type     = DDB_OCTOPUS_MAX_CT,
 	.name     = "Digital Devices MAX A8 C2T2I",
 	.port_num = 4,
-- 
1.9.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web