dm: syscon: Allow finding devices by driver data
authorSimon Glass <sjg@chromium.org>
Sun, 17 Jan 2016 23:11:08 +0000 (16:11 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Sun, 24 Jan 2016 04:07:19 +0000 (12:07 +0800)
commitac94b7bcbed9a5ee71f6fb9a507c72abf601cb8a
tree8158f7f6868c310d114e0336413f75d239850a00
parent907eed2ce36db8407d56edc305c32b0923934322
dm: syscon: Allow finding devices by driver data

We have a way to find a regmap by its syscon driver data value. Add the same
for syscon itself.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/core/syscon-uclass.c
include/syscon.h
test/dm/syscon.c