diff options
author | Pete Johanson <peter@peterjohanson.com> | 2020-12-30 09:29:57 -0500 |
---|---|---|
committer | Pete Johanson <peter@peterjohanson.com> | 2020-12-30 09:29:57 -0500 |
commit | d6988477692f6892096885ed39953a7814a8f53a (patch) | |
tree | 907828981bd113d503ce36753291375ccd72bd2a | |
parent | 1c822754c018ad88e281f834f62b38a690ce38c2 (diff) |
fix(power): Fix for 2.4 API changes.
-rw-r--r-- | app/src/ext_power_generic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/ext_power_generic.c b/app/src/ext_power_generic.c index c2e89ab..d8e7844 100644 --- a/app/src/ext_power_generic.c +++ b/app/src/ext_power_generic.c @@ -178,7 +178,7 @@ static int ext_power_generic_init(const struct device *dev) { static int ext_power_generic_pm_control(const struct device *dev, uint32_t ctrl_command, void *context, device_pm_cb cb, void *arg) { int rc; - struct ext_power_generic_data *data = dev->driver_data; + struct ext_power_generic_data *data = dev->data; switch (ctrl_command) { case DEVICE_PM_SET_POWER_STATE: |