Commit a2717eae authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

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: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent 5609f206
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,