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 <igor.knippenberg@gmail.com>
This commit is contained in:
parent
6807e02655
commit
bd7b7a6423
1 changed files with 0 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue