]> git.baikalelectronics.ru Git - kernel.git/commit
of: base: Introduce of_alias_get_alias_list() to check alias IDs
authorMichal Simek <michal.simek@xilinx.com>
Thu, 20 Sep 2018 11:41:52 +0000 (13:41 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Sep 2018 11:49:53 +0000 (13:49 +0200)
commite9a0aa0af5fda575a72aeeca1f80ac60afd84cf6
tree5cf0de8b79b30aba1747a5145adec5040db1e04e
parentef943da241c059867d819772659c2738a705b88e
of: base: Introduce of_alias_get_alias_list() to check alias IDs

The function travels the lookup table to record alias ids for the given
device match structures and alias stem.
This function will be used by serial drivers to check if requested alias
is allocated or free to use.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/of/base.c
include/linux/of.h