aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/seco-cec/seco-cec.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-11-23 06:59:41 -0500
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-11-23 06:59:41 -0500
commita2717eae73ac4f1548fa5195adb9fafbacdfc1ad (patch)
tree012cb72318b55220efb8746d8c442adcab05ae2a /drivers/media/platform/seco-cec/seco-cec.c
parentmedia: seco-cec: fix Makefile (diff)
downloadlinux-dev-a2717eae73ac4f1548fa5195adb9fafbacdfc1ad.tar.xz
linux-dev-a2717eae73ac4f1548fa5195adb9fafbacdfc1ad.zip
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 '')
-rw-r--r--drivers/media/platform/seco-cec/seco-cec.c2
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,