Fix build warning when CONFIG_PM_SLEEP=n, the warning message is:
drivers/input/misc/mpl3115.c:290:12: warning: ‘mpl3115_start_chip’ defined but not used [-Wunused-function]
static int mpl3115_start_chip(struct i2c_client *client)
^~~~~~~~~~~~~~~~~~
Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>
return 0;
}
+
+#ifdef CONFIG_PM_SLEEP
static int mpl3115_start_chip(struct i2c_client *client)
{
u8 val;
return 0;
}
+#endif
+
static int mpl3115_remove(struct i2c_client *client)
{
struct mpl3115_data *pdata = i2c_get_clientdata(client);