summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-05-02 16:19:57 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-05-03 04:32:26 +0300
commitdb7f214547143a6c8496f4e725a35c9bf0b07133 (patch)
tree8d501d74e7cc3bdd8826769ef59b88fa600e84c5 /src
parenta0d8a9ec956cdf35ccfc4f01cfc166103a7a7bcf (diff)
libcamera: camera_sensor: Access entity directly
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@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'src')
-rw-r--r--src/libcamera/camera_sensor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcamera/camera_sensor.cpp b/src/libcamera/camera_sensor.cpp
index d08bee0b..4585d6d3 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 */