]> git.baikalelectronics.ru Git - kernel.git/commit
media: atomisp: Use proper APIs to find I²C client device by ACPI HID
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 26 Jun 2020 12:19:13 +0000 (14:19 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sat, 18 Jul 2020 05:18:35 +0000 (07:18 +0200)
commit7a85dd5c4b2c68550481993cb6354ea31ecb59ff
treedccf563fbf0454f086df7b71c59e2084b667442a
parent119386fa642d2e5b0f45dfd7a0ff7cce99406064
media: atomisp: Use proper APIs to find I²C client device by ACPI HID

There are specific ACPI and I\xB2C APIs to match device by different
parameters, such as ACPI HID, and retrieve an I\xB2C client.
Use them instead of home grown approach.

Note, it fixes a resource leak as well.

Signed-off-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