]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: ccs: Fix sub-device function
authorSakari Ailus <sakari.ailus@linux.intel.com>
Tue, 5 Jan 2021 14:21:11 +0000 (15:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 May 2021 08:49:55 +0000 (10:49 +0200)
commit8a99d2880cd1efe4c6171b4161851c3564cbd439
tree7cb76f6d054df90ea4a0552fd0c8f0ef686a439b
parent140eb8df2c3d36e1882c59ebf89b37b6a440f38f
media: ccs: Fix sub-device function

[ Upstream commit 8c43126e8c9f0990fa75fb5219c03b20d5ead7b7 ]

Fix sub-device function for the pixel array and the scaler.

It seems that the pixel array had gotten assigned as SCALER whereas the
scaler had CAM_SENSOR function. Fix this by setting the pixel array
function to CAM_SENSOR and that of scaler to SCALER.

Fixes: 9ec2ac9bd0f9 ("media: ccs: Give all subdevs a function")
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/i2c/ccs/ccs-core.c