]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/input/keyboard/mpr121_touchkey.c
Input: mpr121 - remove unused field in struct mpr121_touchkey
[karo-tx-linux.git] / drivers / input / keyboard / mpr121_touchkey.c
index 0fd612dd76edec57f8cf18d5ea6df87f06de56cb..90be99d58c85c1409e6122e9003d5ff7fbb8dc4b 100644 (file)
@@ -59,7 +59,6 @@
 struct mpr121_touchkey {
        struct i2c_client       *client;
        struct input_dev        *input_dev;
-       unsigned int            key_val;
        unsigned int            statusbits;
        unsigned int            keycount;
        u16                     keycodes[MPR121_MAX_KEY_COUNT];
@@ -266,8 +265,7 @@ static int mpr_touchkey_probe(struct i2c_client *client,
        return 0;
 }
 
-#ifdef CONFIG_PM_SLEEP
-static int mpr_suspend(struct device *dev)
+static int __maybe_unused mpr_suspend(struct device *dev)
 {
        struct i2c_client *client = to_i2c_client(dev);
 
@@ -279,7 +277,7 @@ static int mpr_suspend(struct device *dev)
        return 0;
 }
 
-static int mpr_resume(struct device *dev)
+static int __maybe_unused mpr_resume(struct device *dev)
 {
        struct i2c_client *client = to_i2c_client(dev);
        struct mpr121_touchkey *mpr121 = i2c_get_clientdata(client);
@@ -292,7 +290,6 @@ static int mpr_resume(struct device *dev)
 
        return 0;
 }
-#endif
 
 static SIMPLE_DEV_PM_OPS(mpr121_touchkey_pm_ops, mpr_suspend, mpr_resume);