mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-16 08:55:06 +03:00
test: v4l2_device: Rename dev_ to capture_
Change the variable name globally throughout the tests. Repair the V4L2DeviceTest constructor style, as checkstyle complained. Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
819eb422b3
commit
ff4e882399
6 changed files with 21 additions and 18 deletions
|
@ -52,16 +52,16 @@ int V4L2DeviceTest::init()
|
|||
if (!entity)
|
||||
return TestSkip;
|
||||
|
||||
dev_ = new V4L2Device(entity);
|
||||
if (!dev_)
|
||||
capture_ = new V4L2Device(entity);
|
||||
if (!capture_)
|
||||
return TestFail;
|
||||
|
||||
return dev_->open();
|
||||
return capture_->open();
|
||||
}
|
||||
|
||||
void V4L2DeviceTest::cleanup()
|
||||
{
|
||||
media_->release();
|
||||
|
||||
delete dev_;
|
||||
delete capture_;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue