i2c: acpi: export i2c_acpi_find_adapter_by_handle
authorRuslan Babayev <ruslan@babayev.com>
Tue, 28 May 2019 23:02:32 +0000 (16:02 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 May 2019 18:27:46 +0000 (11:27 -0700)
commit1e91a2e5d827e643cbabad66d133f155a7fcb0de
tree7071fef48f4b3e36381f0c0d278da546592afbca
parent517f4c49aafce3d2c3ac54ae0bb36f2c76e57fe8
i2c: acpi: export i2c_acpi_find_adapter_by_handle

This allows drivers to lookup i2c adapters on ACPI based systems similar to
of_get_i2c_adapter_by_node() with DT based systems.

Signed-off-by: Ruslan Babayev <ruslan@babayev.com>
Cc: xe-linux-external@cisco.com
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/i2c/i2c-core-acpi.c
include/linux/i2c.h