From 906f17add2efde3c6912aaf8041fc7e23f9375ef Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 31 Jul 2019 08:08:44 +1000 Subject: [PATCH] Rename ratbag_test_driver to ratbag_try_driver This is confusing because we do have a test driver and we have an optional test_device argument here too. Signed-off-by: Peter Hutterer --- src/libratbag.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libratbag.c b/src/libratbag.c index c0eb74b3..88ded13e 100644 --- a/src/libratbag.c +++ b/src/libratbag.c @@ -322,7 +322,7 @@ out: } static inline bool -ratbag_test_driver(struct ratbag_device *device, +ratbag_try_driver(struct ratbag_device *device, const struct input_id *dev_id, const char *driver_name, const struct ratbag_test_device *test_device) @@ -377,9 +377,9 @@ ratbag_driver_fallback_logitech(struct ratbag_device *device, if (dev_id->vendor != USB_VENDOR_ID_LOGITECH) return false; - rc = ratbag_test_driver(device, dev_id, "hidpp20", NULL); + rc = ratbag_try_driver(device, dev_id, "hidpp20", NULL); if (!rc) - rc = ratbag_test_driver(device, dev_id, "hidpp10", NULL); + rc = ratbag_try_driver(device, dev_id, "hidpp10", NULL); return rc; } @@ -401,7 +401,7 @@ ratbag_assign_driver(struct ratbag_device *device, if (driver_name) { log_debug(device->ratbag, "device assigned driver %s\n", driver_name); - rc = ratbag_test_driver(device, dev_id, driver_name, test_device); + rc = ratbag_try_driver(device, dev_id, driver_name, test_device); } else { rc = ratbag_driver_fallback_logitech(device, dev_id); }