fix(power): Fix for 2.4 API changes.

This commit is contained in:
Pete Johanson 2020-12-30 09:29:57 -05:00
parent 1c822754c0
commit d698847769

View file

@ -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: