libcamera: ipu3: imgu: Do not cache index

The numerical index of the imgu is only used to create its name in
string form. There is no need to keep it around after that, remove it.

Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
Niklas Söderlund
2020-06-27 01:07:11 +02:00
parent dd391df851
commit 2ea9d2c1d0
2 changed files with 1 additions and 3 deletions

View File

@@ -36,8 +36,7 @@ int ImgUDevice::init(MediaDevice *media, unsigned int index)
{
int ret;
index_ = index;
name_ = "ipu3-imgu " + std::to_string(index_);
name_ = "ipu3-imgu " + std::to_string(index);
media_ = media;
/*

View File

@@ -67,7 +67,6 @@ public:
bool enable);
int enableLinks(bool enable);
unsigned int index_;
std::string name_;
MediaDevice *media_;