diff options
author | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-11-23 06:59:41 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-11-23 06:59:41 -0500 |
commit | a2717eae73ac4f1548fa5195adb9fafbacdfc1ad (patch) | |
tree | 012cb72318b55220efb8746d8c442adcab05ae2a /drivers/media/platform/seco-cec | |
parent | 5609f2067691acf6748fbc84e8fbee8634bdcb9b (diff) |
media: seco-cec: declare ops as static const
As warned by smatch:
drivers/media/platform/seco-cec/seco-cec.c:338:21: warning: symbol 'secocec_cec_adap_ops' was not declared. Should it be static?
This struct should be static. Also, it is const, so declare it
as such.
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/platform/seco-cec')
-rw-r--r-- | drivers/media/platform/seco-cec/seco-cec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/seco-cec/seco-cec.c b/drivers/media/platform/seco-cec/seco-cec.c index 8308873c53ab..01ada99de723 100644 --- a/drivers/media/platform/seco-cec/seco-cec.c +++ b/drivers/media/platform/seco-cec/seco-cec.c @@ -335,7 +335,7 @@ rxerr: smb_wr16(SECOCEC_STATUS, status_val); } -struct cec_adap_ops secocec_cec_adap_ops = { +static const struct cec_adap_ops secocec_cec_adap_ops = { /* Low-level callbacks */ .adap_enable = secocec_adap_enable, .adap_log_addr = secocec_adap_log_addr, |