From a5576289fd547104e38649834acfacde2a9316f7 Mon Sep 17 00:00:00 2001 From: Ryan Lattrel Date: Wed, 23 Sep 2020 12:29:05 -0500 Subject: [PATCH] sx933x: Add a dummy flush function Add a flush function that returns success. This is needed to pass VTS testing. Change-Id: I0550eb39694b4bf33ed7ba872107a135edf27a71 Reviewed-on: https://gerrit.mot.com/1759290 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Konstantin Makariev Submit-Approved: Jira Key --- drivers/misc/sx933x/sx933x_sar.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/misc/sx933x/sx933x_sar.c b/drivers/misc/sx933x/sx933x_sar.c index f59499ecf67e..43b8f67f42c9 100644 --- a/drivers/misc/sx933x/sx933x_sar.c +++ b/drivers/misc/sx933x/sx933x_sar.c @@ -990,6 +990,12 @@ static int capsensor_set_poll_delay(struct sensors_classdev *sensors_cdev, unsig return 0; } +static int capsensor_flush(struct sensors_classdev *sensors_cdev) +{ + LOG_DBG("Dummy flush called\n"); + return 0; +} + #ifdef CONFIG_CAPSENSE_USB_CAL static void ps_notify_callback_work(struct work_struct *work) { @@ -1281,6 +1287,7 @@ static int sx933x_probe(struct i2c_client *client, const struct i2c_device_id *i pButtonInformationData->buttons[i].sensors_capsensor_cdev.sensors_enable = capsensor_set_enable; pButtonInformationData->buttons[i].sensors_capsensor_cdev.sensors_poll_delay = capsensor_set_poll_delay; /* Dummy function */ + pButtonInformationData->buttons[i].sensors_capsensor_cdev.sensors_flush = capsensor_flush; /* Dummy function */ pButtonInformationData->buttons[i].sensors_capsensor_cdev.name = pButtonInformationData->buttons[i].name; pButtonInformationData->buttons[i].sensors_capsensor_cdev.vendor = "semtech"; pButtonInformationData->buttons[i].sensors_capsensor_cdev.version = 1;