diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2015-11-13 15:24:39 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-11-19 16:20:18 +0300 |
commit | 9c5e44a0762beee013213593ab2bc511bd46f366 (patch) | |
tree | e1cc950baa162f0875140d6475cd46cfd454104d /drivers/media/usb/dvb-usb-v2/mxl111sf.c | |
parent | c0a182b699c0e8e3fc3e5e0eebc3d1e3ac7697bf (diff) | |
download | linux-9c5e44a0762beee013213593ab2bc511bd46f366.tar.xz |
[media] drivers/media/usb/dvb-usb-v2: constify mxl111sf_demod_config structure
The mxl111sf_demod_config structure is never modified, so declare it
as const.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Reviewed-by: Michael Ira Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/usb/dvb-usb-v2/mxl111sf.c')
-rw-r--r-- | drivers/media/usb/dvb-usb-v2/mxl111sf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/dvb-usb-v2/mxl111sf.c b/drivers/media/usb/dvb-usb-v2/mxl111sf.c index b71b2e60d080..1710f9038d75 100644 --- a/drivers/media/usb/dvb-usb-v2/mxl111sf.c +++ b/drivers/media/usb/dvb-usb-v2/mxl111sf.c @@ -731,7 +731,7 @@ fail: return ret; } -static struct mxl111sf_demod_config mxl_demod_config = { +static const struct mxl111sf_demod_config mxl_demod_config = { .read_reg = mxl111sf_read_reg, .write_reg = mxl111sf_write_reg, .program_regs = mxl111sf_ctrl_program_regs, |