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:
Igor Knippenberg 2021-10-03 22:15:54 +02:00 committed by Anas Nashif
commit bd7b7a6423

View file

@ -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);