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>
This commit is contained in:
Laurent Pinchart
2020-05-02 16:19:57 +03:00
parent a0d8a9ec95
commit db7f214547

View File

@@ -539,7 +539,7 @@ int CameraSensor::sensorInfo(CameraSensorInfo *info) const
std::string CameraSensor::logPrefix() const
{
return "'" + subdev_->entity()->name() + "'";
return "'" + entity_->name() + "'";
}
} /* namespace libcamera */