diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2021-04-07 16:11:57 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-04-09 12:58:52 +0200 |
commit | a2e2c1b86209f056d1630983749baf0cd92af5ee (patch) | |
tree | f3c23aeceadceb87f76581b6e19f4375d4a013bc /drivers/media/pci/cobalt | |
parent | f1995d5e43cf897f63b4d7a7f84a252d891ae820 (diff) | |
download | linux-stable-a2e2c1b86209f056d1630983749baf0cd92af5ee.tar.gz linux-stable-a2e2c1b86209f056d1630983749baf0cd92af5ee.tar.bz2 linux-stable-a2e2c1b86209f056d1630983749baf0cd92af5ee.zip |
media: cobalt: drop static for sd_fmt
The struct v4l2_subdev_format sd_fmt cannot be static since it can be
written back by the subdev. Just have it on the stack.
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/pci/cobalt')
-rw-r--r-- | drivers/media/pci/cobalt/cobalt-driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/cobalt/cobalt-driver.c b/drivers/media/pci/cobalt/cobalt-driver.c index 9c754e01c186..839503e654f4 100644 --- a/drivers/media/pci/cobalt/cobalt-driver.c +++ b/drivers/media/pci/cobalt/cobalt-driver.c @@ -572,7 +572,7 @@ static int cobalt_subdevs_hsma_init(struct cobalt *cobalt) .addr = 0x20, .platform_data = &adv7842_pdata, }; - static struct v4l2_subdev_format sd_fmt = { + struct v4l2_subdev_format sd_fmt = { .pad = ADV7842_PAD_SOURCE, .which = V4L2_SUBDEV_FORMAT_ACTIVE, .format.code = MEDIA_BUS_FMT_YUYV8_1X16, |