Skip to content

Commit

Permalink
media: seco-cec: declare ops as static const
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mauro Carvalho Chehab committed Nov 23, 2018
1 parent 5609f20 commit a2717ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/platform/seco-cec/seco-cec.c
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ static void secocec_rx_done(struct cec_adapter *adap, u16 status_val)
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,
Expand Down

0 comments on commit a2717ea

Please sign in to comment.