drivers: sensor: Fix ina219 driver when device pm enabled

Fixes a build error in the ina219 sensor driver when device power
management is enabled.

Signed-off-by: Maureen Helm <maureen.helm@intel.com>
This commit is contained in:
Maureen Helm 2021-10-25 14:05:16 -05:00 committed by Anas Nashif
commit 1788b036fb

View file

@ -219,6 +219,8 @@ static int ina219_channel_get(const struct device *dev,
#ifdef CONFIG_PM_DEVICE #ifdef CONFIG_PM_DEVICE
static int ina219_pm_ctrl(const struct device *dev, enum pm_device_action action) static int ina219_pm_ctrl(const struct device *dev, enum pm_device_action action)
{ {
uint16_t reg_val;
switch (action) { switch (action) {
case PM_DEVICE_ACTION_RESUME: case PM_DEVICE_ACTION_RESUME:
return ina219_init(dev); return ina219_init(dev);