Skip to content
Snippets Groups Projects
Commit eb7387ae authored by Simon Glass's avatar Simon Glass
Browse files

sandbox: pmic: Correct i2c pmic emulator platdata method


This currently reads the uclass's private data in the ofdata_to_platdata
method which is not allowed, since the uclass has not read it from the
device tree. This happens in the probe method.

Fix it by adding a probe() method and moving the code there.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent b83994de
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment