media: i2c: tda1997x: constify snd_soc_component_driver struct
`tda1997x_codec_driver` is not modified after its declaration, and it is only passed to `devm_snd_soc_register_component()`, which expects a constant `snd_soc_component_driver`. Move `tda1997x_codec_driver` to a read-only section by declaring it const. Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
parent
c8ad75010c
commit
447b7fdba9
@ -2514,7 +2514,7 @@ static void tda1997x_codec_remove(struct snd_soc_component *component)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct snd_soc_component_driver tda1997x_codec_driver = {
|
static const struct snd_soc_component_driver tda1997x_codec_driver = {
|
||||||
.probe = tda1997x_codec_probe,
|
.probe = tda1997x_codec_probe,
|
||||||
.remove = tda1997x_codec_remove,
|
.remove = tda1997x_codec_remove,
|
||||||
.idle_bias_on = 1,
|
.idle_bias_on = 1,
|
||||||
|
Loading…
Reference in New Issue
Block a user