libcamera: Drop the LIBCAMERA_D_PTR macro in favour of the _d() function

Now that all Extensible classes expose a _d() function that performs
appropriate casts, the LIBCAMERA_D_PTR brings no real additional value.
Replace it with direct calls to the _d() function.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
Laurent Pinchart 2021-07-11 19:46:55 +03:00
parent a81ccba6a2
commit 689811d87a
6 changed files with 34 additions and 65 deletions

View file

@ -375,8 +375,7 @@ int CameraHalConfig::parseConfigurationFile()
exists_ = true;
Private *const d = LIBCAMERA_D_PTR();
int ret = d->parseConfigFile(fh, &cameras_);
int ret = _d()->parseConfigFile(fh, &cameras_);
fclose(fh);
if (ret)
return -EINVAL;