media: ccs: Fix sub-device function
authorSakari Ailus <sakari.ailus@linux.intel.com>
Tue, 5 Jan 2021 14:21:11 +0000 (15:21 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 6 Apr 2021 12:31:10 +0000 (14:31 +0200)
commit8c43126e8c9f0990fa75fb5219c03b20d5ead7b7
treec20b9e46129ec945e540250d93931fc4d71ed07a
parente34a717f9f3ae82127a865597487e69f068adfec
media: ccs: Fix sub-device function

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>
drivers/media/i2c/ccs/ccs-core.c