commit | 9779eb91135bede02592bdc014a4318ef807b4d7 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Mon Jan 27 08:49:53 2020 -0700 |
committer | Simon Glass <sjg@chromium.org> | Wed Feb 05 19:33:46 2020 -0700 |
tree | 322647ee00bba89ef97d1b5b19f137aac4d572e3 | |
parent | 3e85ea0c43fb1c97d9d5a1ccf6cc69147512e489 [diff] |
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: Simon Glass <sjg@chromium.org>