media: ccs-pll: Fix comment on check against maximum PLL multiplier
authorSakari Ailus <sakari.ailus@linux.intel.com>
Tue, 7 Jul 2020 08:54:14 +0000 (10:54 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 7 Dec 2020 14:49:55 +0000 (15:49 +0100)
The comment is about minimum PLL multiplier but the related check really
deals with the maximum PLL multiplier.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/ccs-pll.c

index 78897a7c1448d71e988a92804bf9a8d8eb42c9a5..f4c41d61e3324a1489da3ae76c3045125cb2bc5c 100644 (file)
@@ -203,7 +203,7 @@ __ccs_pll_calculate(struct device *dev, const struct ccs_pll_limits *lim,
                           / div);
        dev_dbg(dev, "more_mul_max: max_op_sys_clk_div check: %u\n",
                more_mul_max);
-       /* Ensure we won't go above min_pll_multiplier. */
+       /* Ensure we won't go above max_pll_multiplier. */
        more_mul_max = min(more_mul_max,
                           DIV_ROUND_UP(op_lim_fr->max_pll_multiplier, mul));
        dev_dbg(dev, "more_mul_max: min_pll_multiplier check: %u\n",