libcamera: v4l2_device: Rename format() method to getFormat()

Rename format() to getFormat() to reflect the v4l2 API names more
closely.

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
Jacopo Mondi 2019-01-31 17:26:54 +01:00
parent 3fd5ade00c
commit a78e56ecc2
2 changed files with 2 additions and 2 deletions

View file

@ -282,7 +282,7 @@ void V4L2Device::close()
* \brief Retrieve the image format set on the V4L2 device
* \return 0 for success, a negative error code otherwise
*/
int V4L2Device::format(V4L2DeviceFormat *fmt)
int V4L2Device::getFormat(V4L2DeviceFormat *fmt)
{
return caps_.isMultiplanar() ? getFormatMultiplane(fmt) :
getFormatSingleplane(fmt);