]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2de0271d538a0cfc9a8fab17d1c03617910e7f63
treef6aa7ec2a49406b4174d4ece346cf913588e98be
parentee2d4aef7a50bb134faf594863f38f8cb3d2826e
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