Commit 83898234 authored by Benjamin Tissoires's avatar Benjamin Tissoires

HID: logitech-dj: reshuffle logi_dj_recv_forward_*

logi_dj_recv_forward_report() was only intended for DJ reports.
logi_dj_recv_forward_hidpp() is more generic at forwarding random HID
reports.

So rename logi_dj_recv_forward_report() into logi_dj_recv_forward_dj()
and logi_dj_recv_forward_hidpp() into logi_dj_recv_forward_report().
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarBenjamin Tissoires <benjamin.tissoires@redhat.com>
parent 43cd97af
......@@ -552,7 +552,7 @@ static void logi_dj_recv_forward_null_report(struct dj_receiver_dev *djrcv_dev,
}
}
static void logi_dj_recv_forward_report(struct dj_receiver_dev *djrcv_dev,
static void logi_dj_recv_forward_dj(struct dj_receiver_dev *djrcv_dev,
struct dj_report *dj_report)
{
/* We are called from atomic context (tasklet && djrcv->lock held) */
......@@ -573,7 +573,7 @@ static void logi_dj_recv_forward_report(struct dj_receiver_dev *djrcv_dev,
}
}
static void logi_dj_recv_forward_hidpp(struct dj_device *dj_dev, u8 *data,
static void logi_dj_recv_forward_report(struct dj_device *dj_dev, u8 *data,
int size)
{
/* We are called from atomic context (tasklet && djrcv->lock held) */
......@@ -893,7 +893,7 @@ static int logi_dj_dj_event(struct hid_device *hdev,
}
break;
default:
logi_dj_recv_forward_report(djrcv_dev, dj_report);
logi_dj_recv_forward_dj(djrcv_dev, dj_report);
}
out:
......@@ -948,7 +948,7 @@ static int logi_dj_hidpp_event(struct hid_device *hdev,
/* received an event for an unknown device, bail out */
goto out;
logi_dj_recv_forward_hidpp(djrcv_dev->paired_dj_devices[device_index],
logi_dj_recv_forward_report(djrcv_dev->paired_dj_devices[device_index],
data, size);
out:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment