libcamera: v4l2_subdevice: Add method to retrieve the media entity

Add a method to retrieve the media entity associated with a subdevice.
The entityName() and deviceNode() methods are not needed anymore as they
can be accessed through the media entity, remove them.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
Laurent Pinchart 2019-04-14 21:26:07 +03:00
parent d97cafdf3c
commit 05b0e5ed53
5 changed files with 14 additions and 23 deletions

View file

@ -66,7 +66,7 @@ int V4L2SubdeviceTest::init()
ret = scaler_->open();
if (ret) {
cerr << "Unable to open video subdevice "
<< scaler_->deviceNode() << endl;
<< scaler_->entity()->deviceNode() << endl;
media_->release();
return TestSkip;
}