]> git.baikalelectronics.ru Git - kernel.git/commit
media: atomisp: place all gpio parsing together
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sun, 21 Jun 2020 08:04:16 +0000 (10:04 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sat, 18 Jul 2020 05:15:38 +0000 (07:15 +0200)
commita9cdf81ebf442036ed80330ca5d55a7b29e4b96c
tree8089659f47dd2a135a41b929078b6b216ac0a1ca
parentbb0f3841a97b37b0590e5ff6eb26d844650fc9e6
media: atomisp: place all gpio parsing together

Instead of parsing GPIO for two exceptions inside the logic
which would be trying to use the GPIO, move the init code
to the routine which adds a new gmin device.

Move the notes to it too, as this helps to identify where
those two GPIO settings are used, explaining why they're
defaulting to -1 when not found.

Tested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_gmin_platform.c