summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo@jmondi.org>2020-11-06 14:38:25 +0100
committerJacopo Mondi <jacopo@jmondi.org>2020-12-07 14:26:33 +0100
commit3cb48fb921f61948ac56466cd86111ef1d806fba (patch)
treef40968ecf585359dc2a6e484b65dab815a885174 /include
parentb33a5c4153852274efc7e3cd076d057bb7affbed (diff)
libcamera: camera_sensor: Break out properties initialization
Break out initialization to its own function in preparation to add more properties. Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/internal/camera_sensor.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libcamera/internal/camera_sensor.h b/include/libcamera/internal/camera_sensor.h
index b9eba89f..f80d8361 100644
--- a/include/libcamera/internal/camera_sensor.h
+++ b/include/libcamera/internal/camera_sensor.h
@@ -69,6 +69,7 @@ protected:
private:
int generateId();
+ int initProperties();
const MediaEntity *entity_;
std::unique_ptr<V4L2Subdevice> subdev_;