of: Add helper for getting the maximum alias index for a stem
authorSascha Hauer <s.hauer@pengutronix.de>
Thu, 22 May 2014 15:30:22 +0000 (17:30 +0200)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:48:47 +0000 (14:48 -0500)
commitda248c0308078f63386c8606e64c9eb96c124416
tree20becec026b7fd2c8929e5d213c1ffd76947bb88
parentc6ebdf5ce6dba6e15bcb7c79267a992858cc7671
of: Add helper for getting the maximum alias index for a stem

of_alias_max_index will return the maximum number for which an
alias of a given stem exists. This is useful for frameworks
whishing to reserve a number of device slots from dynamic
allocation.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
(cherry picked from commit 5ce2ad39b36fd48b9f77249198655da7cbcc7ee5)

Conflicts:
include/linux/of.h
drivers/of/base.c
include/linux/of.h