media: ccs: Only add analogue gain control if the device supports it
authorSakari Ailus <sakari.ailus@linux.intel.com>
Wed, 23 Sep 2020 22:43:55 +0000 (00:43 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 12 Jan 2021 16:24:51 +0000 (17:24 +0100)
commit541374837cd911785ae9307b4902896f2e3b8f15
treef6aa7ec2a49406b4174d4ece346cf913588e98be
parentd36eb68a49948a7fb29c43bd5745692ede4b6d52
media: ccs: Only add analogue gain control if the device supports it

Some devices do not implement analogue gain this way. Only add the control
when a device does have the support.

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