OSDN Git Service

media: ccs-pll: Rework bounds checks
authorSakari Ailus <sakari.ailus@linux.intel.com>
Tue, 15 Sep 2020 08:37:32 +0000 (10:37 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 7 Dec 2020 15:01:45 +0000 (16:01 +0100)
commitf25d3962ac8f23ab4871cef1d79e10a8c34f7908
tree7f47f57d153abb8c22f5b9979e266f6ca2df0c0c
parentfadfe88441fcf67a15acd0fe47785f89d93782ff
media: ccs-pll: Rework bounds checks

Refactor bounds checks so that the caller can decide what to check. This
allows doing the checks early, when the values are available.

This also adds front OP PLL configuration and limits.

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
drivers/media/i2c/ccs-pll.h