Skip to content

Commit 903b5d7

Browse files
skullbox305cfriedt
authored andcommitted
drivers: sensors: fdc2x1x: removed unused fdc2x1x_data
Removing two unused "struct fdc2x1x_data" to fix warnings when compiling with PM_DEVICE=y. Signed-off-by: Igor Knippenberg <[email protected]>
1 parent 2df7257 commit 903b5d7

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/sensor/fdc2x1x/fdc2x1x.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,6 @@ static int fdc2x1x_device_pm_ctrl(const struct device *dev,
485485
enum pm_device_action action)
486486
{
487487
int ret;
488-
struct fdc2x1x_data *data = dev->data;
489488
const struct fdc2x1x_config *cfg = dev->config;
490489
enum pm_device_state curr_state;
491490

@@ -613,7 +612,6 @@ static int fdc2x1x_sample_fetch(const struct device *dev,
613612
enum sensor_channel chan)
614613
{
615614
#ifdef CONFIG_PM_DEVICE
616-
struct fdc2x1x_data *data = dev->data;
617615
enum pm_device_state state;
618616

619617
(void)pm_device_state_get(dev, &state);

0 commit comments

Comments
 (0)