]> 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)
commit701dea913aa7d7a55a645b8605b086a0b7773eb3
tree8089659f47dd2a135a41b929078b6b216ac0a1ca
parent8aaebb6d72351630916ba4728d2b1e13ac9c6de9
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