/** * ishtp_hid_parse() - hid-core .parse() callback * @hid: hid device instance * * This function gets called during call to hid_add_device * * Return: 0 on success and non zero on error
*/ staticint ishtp_hid_parse(struct hid_device *hid)
{ struct ishtp_hid_data *hid_data = hid->driver_data; struct ishtp_cl_data *client_data = hid_data->client_data; int rv;
rv = hid_parse_report(hid, client_data->report_descr[hid_data->index],
client_data->report_descr_size[hid_data->index]); if (rv) return rv;
/** * ishtp_wait_for_response() - hid-core .wait() callback * @hid: hid device instance * * This function is used to wait after get feaure/input report. * * Return: 0 on success and non zero on error
*/ staticint ishtp_wait_for_response(struct hid_device *hid)
{ struct ishtp_hid_data *hid_data = hid->driver_data; int rv;
/** * ishtp_hid_probe() - hid register ll driver * @cur_hid_dev: Index of hid device calling to register * @client_data: Client data pointer * * This function is used to allocate and add HID device. * * Return: 0 on success, non zero on error
*/ int ishtp_hid_probe(unsignedint cur_hid_dev, struct ishtp_cl_data *client_data)
{ int rv; struct hid_device *hid; struct ishtp_hid_data *hid_data;
hid = hid_allocate_device(); if (IS_ERR(hid)) return PTR_ERR(hid);
/** * ishtp_hid_remove() - Remove registered hid device * @client_data: client data pointer * * This function is used to destroy allocatd HID device.
*/ void ishtp_hid_remove(struct ishtp_cl_data *client_data)
{ void *data; int i;
for (i = 0; i < client_data->num_hid_devices; ++i) { if (client_data->hid_sensor_hubs[i]) {
data = client_data->hid_sensor_hubs[i]->driver_data;
hid_destroy_device(client_data->hid_sensor_hubs[i]);
kfree(data);
client_data->hid_sensor_hubs[i] = NULL;
}
}
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.0 Sekunden
(vorverarbeitet am 2026-04-29)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.