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:
@@ -539,7 +539,7 @@ int CameraSensor::sensorInfo(CameraSensorInfo *info) const
|
||||
|
||||
std::string CameraSensor::logPrefix() const
|
||||
{
|
||||
return "'" + subdev_->entity()->name() + "'";
|
||||
return "'" + entity_->name() + "'";
|
||||
}
|
||||
|
||||
} /* namespace libcamera */
|
||||
|
||||
Reference in New Issue
Block a user