]> 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)
commit3ba8e05cadce19dfe8f6b8e1d68a08ff5f9ab44d
treedccf563fbf0454f086df7b71c59e2084b667442a
parent9d0aabd6f1b55ad05e4622c8dcc169bb53e85451
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