media: rcar-vin: Use generic parser for parsing fwnode endpoints
Instead of using a custom driver implementation, use v4l2_async_notifier_parse_fwnode_endpoints() to parse the fwnode endpoints of the device. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Acked-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Esse commit está contido em:

commit de
Mauro Carvalho Chehab

pai
df4975663f
commit
85999e8ec0
@@ -111,7 +111,7 @@ static int rvin_reset_format(struct rvin_dev *vin)
|
||||
struct v4l2_mbus_framefmt *mf = &fmt.format;
|
||||
int ret;
|
||||
|
||||
fmt.pad = vin->digital.source_pad;
|
||||
fmt.pad = vin->digital->source_pad;
|
||||
|
||||
ret = v4l2_subdev_call(vin_to_source(vin), pad, get_fmt, NULL, &fmt);
|
||||
if (ret)
|
||||
@@ -172,13 +172,13 @@ static int __rvin_try_format_source(struct rvin_dev *vin,
|
||||
|
||||
sd = vin_to_source(vin);
|
||||
|
||||
v4l2_fill_mbus_format(&format.format, pix, vin->digital.code);
|
||||
v4l2_fill_mbus_format(&format.format, pix, vin->digital->code);
|
||||
|
||||
pad_cfg = v4l2_subdev_alloc_pad_config(sd);
|
||||
if (pad_cfg == NULL)
|
||||
return -ENOMEM;
|
||||
|
||||
format.pad = vin->digital.source_pad;
|
||||
format.pad = vin->digital->source_pad;
|
||||
|
||||
field = pix->field;
|
||||
|
||||
@@ -555,7 +555,7 @@ static int rvin_enum_dv_timings(struct file *file, void *priv_fh,
|
||||
if (timings->pad)
|
||||
return -EINVAL;
|
||||
|
||||
timings->pad = vin->digital.sink_pad;
|
||||
timings->pad = vin->digital->sink_pad;
|
||||
|
||||
ret = v4l2_subdev_call(sd, pad, enum_dv_timings, timings);
|
||||
|
||||
@@ -607,7 +607,7 @@ static int rvin_dv_timings_cap(struct file *file, void *priv_fh,
|
||||
if (cap->pad)
|
||||
return -EINVAL;
|
||||
|
||||
cap->pad = vin->digital.sink_pad;
|
||||
cap->pad = vin->digital->sink_pad;
|
||||
|
||||
ret = v4l2_subdev_call(sd, pad, dv_timings_cap, cap);
|
||||
|
||||
@@ -625,7 +625,7 @@ static int rvin_g_edid(struct file *file, void *fh, struct v4l2_edid *edid)
|
||||
if (edid->pad)
|
||||
return -EINVAL;
|
||||
|
||||
edid->pad = vin->digital.sink_pad;
|
||||
edid->pad = vin->digital->sink_pad;
|
||||
|
||||
ret = v4l2_subdev_call(sd, pad, get_edid, edid);
|
||||
|
||||
@@ -643,7 +643,7 @@ static int rvin_s_edid(struct file *file, void *fh, struct v4l2_edid *edid)
|
||||
if (edid->pad)
|
||||
return -EINVAL;
|
||||
|
||||
edid->pad = vin->digital.sink_pad;
|
||||
edid->pad = vin->digital->sink_pad;
|
||||
|
||||
ret = v4l2_subdev_call(sd, pad, set_edid, edid);
|
||||
|
||||
|
Referência em uma nova issue
Block a user