[libcamera-devel] [PATCH 1/3] libcamera: camera_sensor: Access entity directly
Laurent Pinchart
laurent.pinchart at ideasonboard.com
Sat May 2 15:53:53 CEST 2020
The CameraSensor::logPrefix() function accesses the entity from the
subdev. Remove the level of indirection as we stored a pointer to the
entity internally.
Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
---
src/libcamera/camera_sensor.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libcamera/camera_sensor.cpp b/src/libcamera/camera_sensor.cpp
index d7e11cdae7f0..ab2bed561cc6 100644
--- a/src/libcamera/camera_sensor.cpp
+++ b/src/libcamera/camera_sensor.cpp
@@ -539,7 +539,7 @@ int CameraSensor::sensorInfo(CameraSensorInfo *info) const
std::string CameraSensor::logPrefix() const
{
- return "'" + subdev_->entity()->name() + "'";
+ return "'" + entity_->name() + "'";
}
} /* namespace libcamera */
--
Regards,
Laurent Pinchart
More information about the libcamera-devel
mailing list