static int cyttsp4_mt_wake_attention(struct cyttsp4_device *ttsp) { struct cyttsp4_mt_data *md = dev_get_drvdata(&ttsp->dev); mutex_lock(&md->report_lock); cyttsp4_mt_send_dummy_event(md); mutex_unlock(&md->report_lock); return 0; }
static int cyttsp4_mt_wake_attention(struct device *dev) { struct cyttsp4_core_data *cd = dev_get_drvdata(dev); struct cyttsp4_mt_data *md = &cd->md; mutex_lock(&md->mt_lock); cyttsp4_mt_send_dummy_event(md); mutex_unlock(&md->mt_lock); return 0; }