OSDN Git Service

drivers: base: Unified device connection lookup
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Tue, 20 Mar 2018 12:57:02 +0000 (15:57 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Mar 2018 12:10:29 +0000 (13:10 +0100)
commitf2d9b66d84f3ff5ea3aff111e6a403e04fa8bf37
treefa1d83bf1777d68f0bb53305d0f941c5886775f1
parent2699126bcf18db672451b82b26a1c8e954784fad
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>
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