samples: sensors: fdc2x1x: fixed bugs in pm_info()
Both ARG_UNUSED in pm_info(), cause errors when using PM_DEVICE=y. Added a default case in pm_info(), to fix warnings. Signed-off-by: Igor Knippenberg <igor.knippenberg@gmail.com>
This commit is contained in:
parent
bd7b7a6423
commit
e32c974336
|
@ -36,9 +36,6 @@ static void trigger_handler(const struct device *dev,
|
|||
#ifdef CONFIG_PM_DEVICE
|
||||
static void pm_info(enum pm_device_state state, int status)
|
||||
{
|
||||
ARG_UNUSED(dev);
|
||||
ARG_UNUSED(arg);
|
||||
|
||||
switch (state) {
|
||||
case PM_DEVICE_STATE_ACTIVE:
|
||||
printk("Enter ACTIVE_STATE ");
|
||||
|
@ -49,6 +46,8 @@ static void pm_info(enum pm_device_state state, int status)
|
|||
case PM_DEVICE_STATE_OFF:
|
||||
printk("Enter OFF_STATE ");
|
||||
break;
|
||||
default:
|
||||
printk("Unknown power state");
|
||||
}
|
||||
|
||||
if (status) {
|
||||
|
|
Loading…
Reference in New Issue