Commit 0a19960a authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Mauro Carvalho Chehab

media: ti-vpe: cal: Remove flags field from struct cal_dev

The cal_dev flags field is a copy of data->flags. Use the latter and
remove the former.
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: default avatarBenoit Parrot <bparrot@ti.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 6aa4459b
......@@ -326,9 +326,6 @@ struct cal_dev {
struct platform_device *pdev;
struct v4l2_device v4l2_dev;
/* Controller flags for special cases */
unsigned int flags;
const struct cal_data *data;
/* Control Module handle */
......@@ -2249,8 +2246,6 @@ static int cal_probe(struct platform_device *pdev)
return -ENODEV;
}
dev->flags = dev->data->flags;
/* set pseudo v4l2 device name so we can use v4l2_printk */
strscpy(dev->v4l2_dev.name, CAL_MODULE_NAME,
sizeof(dev->v4l2_dev.name));
......@@ -2402,7 +2397,7 @@ static int cal_runtime_resume(struct device *dev)
{
struct cal_dev *caldev = dev_get_drvdata(dev);
if (caldev->flags & DRA72_CAL_PRE_ES2_LDO_DISABLE) {
if (caldev->data->flags & DRA72_CAL_PRE_ES2_LDO_DISABLE) {
/*
* Apply errata on both port everytime we (re-)enable
* the clock
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment