media: mt9m114: Factor out mt9m114_configure_pa
authorMathis Foerst <mathis.foerst@mt.com>
Thu, 22 May 2025 14:35:07 +0000 (16:35 +0200)
committerHans Verkuil <hverkuil@xs4all.nl>
Mon, 30 Jun 2025 06:47:41 +0000 (08:47 +0200)
commit3aa7c3da1f7d23ecc653c29de4cfb5da45efc49d
tree828002064b06bd8d915d58b336ef985892ab212f
parent208119b4a116d2fa708ee4bbe4e12dfd26f03309
media: mt9m114: Factor out mt9m114_configure_pa

The function mt9m114_configure writes the configuration registers of both,
the pixel array (pa) and the image flow processor (ifp).
This is undesirable if only the config of the pa should be changed without
affecting the ifp.

Factor out the function mt9m114_configure_pa() that just writes the
pa-configuration.

Signed-off-by: Mathis Foerst <mathis.foerst@mt.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/i2c/mt9m114.c