dm: core: Allow access to the device's driver_id data
authorSimon Glass <sjg@chromium.org>
Tue, 11 Nov 2014 17:46:18 +0000 (10:46 -0700)
committerSimon Glass <sjg@chromium.org>
Sat, 22 Nov 2014 09:16:45 +0000 (10:16 +0100)
commit2ef249b4420818d7ea31a031f48825e5f38ed3ac
tree5f02f7a902dd73e2c7bd0fafe9fa643d0f69c361
parentc1a6f371ae65f1a3709e872e08bed51321e292fc
dm: core: Allow access to the device's driver_id data

When the device is created from a device tree node, it matches a compatible
string. Allow access to that string and the associated data.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@ti.com>
Acked-by: Heiko Schocher <hs@denx.de>
drivers/core/device.c
drivers/core/lists.c
include/dm/device.h