From patchwork Sat May 2 13:53:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 3666 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id C0045603FD for ; Sat, 2 May 2020 15:54:02 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="hBE/v70p"; dkim-atps=neutral Received: from pendragon.bb.dnainternet.fi (81-175-216-236.bb.dnainternet.fi [81.175.216.236]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 5344572C for ; Sat, 2 May 2020 15:54:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1588427642; bh=OKFX7xSr0bMo3PigJy5KE87+0TYmKQR173fRRvRb1vI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=hBE/v70pDuHtajtbN2+3Hc98A1d2ttHWzHL9aaTKOHFKrzz56geDvttxSgE4FoO7f 2eTYpvB2punFXEMcW/Si6jODClJsRyRLPGzBrUZFd85L/5jn/Rfny55+uD+6vSefTQ gnuMlHR/YZzS2xbk4TC7w+wF1MKKhkl3WwEEvSSY= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Sat, 2 May 2020 16:53:53 +0300 Message-Id: <20200502135355.22757-2-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.25.3 In-Reply-To: <20200502135355.22757-1-laurent.pinchart@ideasonboard.com> References: <20200502135355.22757-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 1/3] libcamera: camera_sensor: Access entity directly X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 May 2020 13:54:03 -0000 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 Reviewed-by: Niklas Söderlund --- 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 */