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)
commit79317baaaea22b2b7d8bdfc1e0718f6579da88ac
tree8089659f47dd2a135a41b929078b6b216ac0a1ca
parent2b5b3221060cf7a694188929b362d7a6e41af928
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