Skip to content
Commit fed0f891 authored by Walter Lozano's avatar Walter Lozano Committed by Simon Glass
Browse files

core: extend struct driver_info to point to device



Currently when creating an U_BOOT_DEVICE entry a struct driver_info
is declared, which contains the data needed to instantiate the device.
However, the actual device is created at runtime and there is no proper
way to get the device based on its struct driver_info.

This patch extends struct driver_info adding a pointer to udevice which
is populated during the bind process, allowing to generate a set of
functions to get the device based on its struct driver_info.

Signed-off-by: default avatarWalter Lozano <walter.lozano@collabora.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent 908d0243
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment