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:
parent
be38a87089
commit
1788b036fb
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue