summaryrefslogtreecommitdiff
path: root/src/libcamera/include/v4l2_subdevice.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-04-14 21:26:07 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-04-18 18:13:16 +0300
commit05b0e5ed531553ad20c4c787de3c337425e6b907 (patch)
tree8b4bcabdd60d5cdf162cce99bc729d7d8cfcc89e /src/libcamera/include/v4l2_subdevice.h
parentd97cafdf3c60afb75fa38d8b2f17b816c934ad9d (diff)
libcamera: v4l2_subdevice: Add method to retrieve the media entity
Add a method to retrieve the media entity associated with a subdevice. The entityName() and deviceNode() methods are not needed anymore as they can be accessed through the media entity, remove them. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src/libcamera/include/v4l2_subdevice.h')
-rw-r--r--src/libcamera/include/v4l2_subdevice.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libcamera/include/v4l2_subdevice.h b/src/libcamera/include/v4l2_subdevice.h
index e592d67d..c7b0b4cb 100644
--- a/src/libcamera/include/v4l2_subdevice.h
+++ b/src/libcamera/include/v4l2_subdevice.h
@@ -41,8 +41,7 @@ public:
bool isOpen() const;
void close();
- const std::string &deviceNode() const { return entity_->deviceNode(); }
- const std::string &entityName() const { return entity_->name(); }
+ const MediaEntity *entity() const { return entity_; }
int setCrop(unsigned int pad, Rectangle *rect);
int setCompose(unsigned int pad, Rectangle *rect);