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)
commitb1078c355d76769b5ddefc67d143fbd9b6e52c05
tree5cf0de8b79b30aba1747a5145adec5040db1e04e
parent13b4353bb05568c9fa3e98df0bf95dd1478c14b7
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