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 <kmakariev@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
Ryan Lattrel 2020-09-23 12:29:05 -05:00
commit a5576289fd

View file

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