Rename hid_pidff_init

This commit is contained in:
Oleg
2024-07-16 12:30:29 +03:00
parent d132ca633f
commit 3db0eef19a
3 changed files with 3 additions and 3 deletions

View File

@@ -69,7 +69,7 @@ static int universal_pidff_probe(struct hid_device *hdev,
goto err;
}
ret = hid_pidff_init(hdev, id);
ret = hid_pidff_init_quirks(hdev, id);
if (ret) {
hid_warn(hdev, "Force feedback is not supported\n");
goto err;

View File

@@ -1322,7 +1322,7 @@ static int pidff_check_autocenter(struct pidff_device *pidff,
/*
* Check if the device is PID and initialize it, with quirks
*/
int hid_pidff_init(struct hid_device *hid, const struct hid_device_id *id)
int hid_pidff_init_quirks(struct hid_device *hid, const struct hid_device_id *id)
{
struct pidff_device *pidff;
struct hid_input *hidinput = list_entry(hid->inputs.next,

View File

@@ -20,6 +20,6 @@
#define PIDFF_QUIRK_NO_DELAY_EFFECT BIT(2)
int hid_pidff_init(struct hid_device *hid, const struct hid_device_id *id);
int hid_pidff_init_quirks(struct hid_device *hid, const struct hid_device_id *id);
#endif