[v3,05/15] ipa: rkisp1: lsc: Rename res to ret
diff mbox series

Message ID 20260114-sklug-lsc-resampling-v2-dev-v3-5-80cd24f4dd61@ideasonboard.com
State New
Headers show
Series
  • Add resampling support for polynomial LSC data
Related show

Commit Message

Stefan Klug Jan. 14, 2026, 11:57 a.m. UTC
Rename res to ret as that is used in libcamera for return codes.

Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com>
Reviewed-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>
Reviewed-by: Rui Wang <rui.wang@ideasonboard.com>

---

Changes in v2:
- Restored old variable order
- Collected tags
---
 src/ipa/rkisp1/algorithms/lsc.cpp | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

Patch
diff mbox series

diff --git a/src/ipa/rkisp1/algorithms/lsc.cpp b/src/ipa/rkisp1/algorithms/lsc.cpp
index bb58386ae646ad6089322ba63d2a9e89664884d2..68e262a2b057d12a9019a6a92c1b300272b04c4d 100644
--- a/src/ipa/rkisp1/algorithms/lsc.cpp
+++ b/src/ipa/rkisp1/algorithms/lsc.cpp
@@ -321,27 +321,28 @@  int LensShadingCorrection::init([[maybe_unused]] IPAContext &context,
 	}
 
 	std::map<unsigned int, Components> lscData;
-	int res = 0;
+	int ret = 0;
+
 	std::string type = tuningData["type"].get<std::string>("table");
 	if (type == "table") {
 		LOG(RkISP1Lsc, Debug) << "Loading tabular LSC data.";
 		auto loader = LscTableLoader();
-		res = loader.parseLscData(yamlSets, lscData);
+		ret = loader.parseLscData(yamlSets, lscData);
 	} else if (type == "polynomial") {
 		LOG(RkISP1Lsc, Debug) << "Loading polynomial LSC data.";
 		auto loader = LscPolynomialLoader(context.sensorInfo.activeAreaSize,
 						  context.sensorInfo.analogCrop,
 						  xSize_,
 						  ySize_);
-		res = loader.parseLscData(yamlSets, lscData);
+		ret = loader.parseLscData(yamlSets, lscData);
 	} else {
 		LOG(RkISP1Lsc, Error) << "Unsupported LSC data type '"
 				      << type << "'";
-		res = -EINVAL;
+		ret = -EINVAL;
 	}
 
-	if (res)
-		return res;
+	if (ret)
+		return ret;
 
 	sets_.setData(std::move(lscData));