uclass: Add dev_get_uclass_index() to get the uclass/index of a device
authorJean-Jacques Hiblot <jjhiblot@ti.com>
Thu, 9 Aug 2018 14:17:42 +0000 (16:17 +0200)
committerMarek Vasut <marex@denx.de>
Tue, 21 Aug 2018 14:21:37 +0000 (16:21 +0200)
commite7c865620e569df493e67d3772673108fce62064
tree11a06f4f6941bc79c1caf7e20885772c73a6fa86
parentc3211708cf721163733f03330bdb579d8c0f689b
uclass: Add dev_get_uclass_index() to get the uclass/index of a device

This function is the reciprocal of uclass_find_device().
It will be used to print the index information in dm tree dump.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
drivers/core/uclass.c
include/dm/uclass-internal.h