drivers: base: Unified device connection lookup
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Tue, 20 Mar 2018 12:57:02 +0000 (15:57 +0300)
committerNolen Johnson <johnsonnolen@gmail.com>
Wed, 22 Dec 2021 02:21:17 +0000 (21:21 -0500)
commit330159e099595b2763dbd809f0dbe1f3d3e1d125
tree563564e0a8e064cd3a8cd170d6e809f1d03fc354
parent55bc24743409215055705a49bdb3d28638eac4f7
drivers: base: Unified device connection lookup

Several frameworks - clk, gpio, phy, pmw, etc. - maintain
lookup tables for describing connections and provide custom
API for handling them. This introduces a single generic
lookup table and API for the connections.

The motivation for this commit is centralizing the
connection lookup, but the goal is to ultimately extract the
connection descriptions also from firmware by using the
fwnode_graph_* functions and other mechanisms that are
available.

Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Change-Id: I5dd10228fc5a1e2c96a116b0de547dae35a3cddb
Documentation/driver-api/device_connection.rst [new file with mode: 0644]
drivers/base/Makefile
drivers/base/devcon.c [new file with mode: 0644]
include/linux/device.h