diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2016-09-16 05:23:53 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-09-19 16:28:48 -0300 |
commit | 19de16c045e1b82a3e80832c9bd90f78b2693832 (patch) | |
tree | fccb6783e3d411ebb8078f1eabace1dd1f62674c /drivers/media | |
parent | 56e247a55a6bf256714e6bc46bd176341bce52aa (diff) | |
download | op-kernel-dev-19de16c045e1b82a3e80832c9bd90f78b2693832.zip op-kernel-dev-19de16c045e1b82a3e80832c9bd90f78b2693832.tar.gz |
[media] hva: fix sparse warnings
drivers/media/platform/sti/hva/hva-v4l2.c:43:22: warning: symbol 'hva_encoders' was not declared. Should it be static?
drivers/media/platform/sti/hva/hva-v4l2.c:1401:24: warning: symbol 'hva_driver' was not declared. Should it be static?
Make these static.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/platform/sti/hva/hva-v4l2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/platform/sti/hva/hva-v4l2.c b/drivers/media/platform/sti/hva/hva-v4l2.c index 1696e02..6bf3c858 100644 --- a/drivers/media/platform/sti/hva/hva-v4l2.c +++ b/drivers/media/platform/sti/hva/hva-v4l2.c @@ -40,7 +40,7 @@ #define fh_to_ctx(f) (container_of(f, struct hva_ctx, fh)) /* registry of available encoders */ -const struct hva_enc *hva_encoders[] = { +static const struct hva_enc *hva_encoders[] = { &nv12h264enc, &nv21h264enc, }; @@ -1398,7 +1398,7 @@ static const struct of_device_id hva_match_types[] = { MODULE_DEVICE_TABLE(of, hva_match_types); -struct platform_driver hva_driver = { +static struct platform_driver hva_driver = { .probe = hva_probe, .remove = hva_remove, .driver = { |