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;