summaryrefslogtreecommitdiff
path: root/drivers/media/pci/ddbridge/ddbridge.h
diff options
context:
space:
mode:
authorDaniel Scheller <d.scheller@gmx.net>2017-08-20 06:41:13 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-08-20 07:42:22 -0400
commit0937e7e712074cc09b9d148f5fbf148717e0c3eb (patch)
tree7a1f15f1d2efef074d5f4d11e41563b5841249aa /drivers/media/pci/ddbridge/ddbridge.h
parent4f376d54aa7fed072100663aaa73c1b65c14fd19 (diff)
media: ddbridge: const'ify all ddb_info, ddb_regmap et al
All data is accessed RO, so mark everything const. Some vars in several functions aswell as function signatures also require the const keyword now, they're also added by this commit. Signed-off-by: Daniel Scheller <d.scheller@gmx.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/pci/ddbridge/ddbridge.h')
-rw-r--r--drivers/media/pci/ddbridge/ddbridge.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/media/pci/ddbridge/ddbridge.h b/drivers/media/pci/ddbridge/ddbridge.h
index f10683678217..e9afa96bd9df 100644
--- a/drivers/media/pci/ddbridge/ddbridge.h
+++ b/drivers/media/pci/ddbridge/ddbridge.h
@@ -85,17 +85,17 @@ struct ddb_regmap {
u32 irq_base_idma;
u32 irq_base_odma;
- struct ddb_regset *i2c;
- struct ddb_regset *i2c_buf;
- struct ddb_regset *idma;
- struct ddb_regset *idma_buf;
- struct ddb_regset *odma;
- struct ddb_regset *odma_buf;
+ const struct ddb_regset *i2c;
+ const struct ddb_regset *i2c_buf;
+ const struct ddb_regset *idma;
+ const struct ddb_regset *idma_buf;
+ const struct ddb_regset *odma;
+ const struct ddb_regset *odma_buf;
- struct ddb_regset *input;
- struct ddb_regset *output;
+ const struct ddb_regset *input;
+ const struct ddb_regset *output;
- struct ddb_regset *channel;
+ const struct ddb_regset *channel;
};
struct ddb_ids {
@@ -133,7 +133,7 @@ struct ddb_info {
#define TS_QUIRK_REVERSED 2
#define TS_QUIRK_ALT_OSC 8
u32 tempmon_irq;
- struct ddb_regmap *regmap;
+ const struct ddb_regmap *regmap;
};
/* DMA_SIZE MUST be smaller than 256k and