Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions drivers/sensor/fdc2x1x/fdc2x1x.c
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,6 @@ static int fdc2x1x_device_pm_ctrl(const struct device *dev,
enum pm_device_action action)
{
int ret;
struct fdc2x1x_data *data = dev->data;
const struct fdc2x1x_config *cfg = dev->config;
enum pm_device_state curr_state;

Expand Down Expand Up @@ -613,7 +612,6 @@ static int fdc2x1x_sample_fetch(const struct device *dev,
enum sensor_channel chan)
{
#ifdef CONFIG_PM_DEVICE
struct fdc2x1x_data *data = dev->data;
enum pm_device_state state;

(void)pm_device_state_get(dev, &state);
Expand Down
5 changes: 2 additions & 3 deletions samples/sensor/fdc2x1x/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 ");
Expand All @@ -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) {
Expand Down