summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Johanson <peter@peterjohanson.com>2020-12-30 09:29:57 -0500
committerPete Johanson <peter@peterjohanson.com>2020-12-30 09:29:57 -0500
commitd6988477692f6892096885ed39953a7814a8f53a (patch)
tree907828981bd113d503ce36753291375ccd72bd2a
parent1c822754c018ad88e281f834f62b38a690ce38c2 (diff)
fix(power): Fix for 2.4 API changes.
-rw-r--r--app/src/ext_power_generic.c2
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: