From 9e5047976b1aa777d92508d55a8011dced1eeb19 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 4 Oct 2017 20:18:18 +1000 Subject: [PATCH] hidpp10: rename a variable from 'profile' to 'typestr' To avoid confusion Signed-off-by: Peter Hutterer --- src/driver-hidpp10.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/driver-hidpp10.c b/src/driver-hidpp10.c index 21acde15..c18a9200 100644 --- a/src/driver-hidpp10.c +++ b/src/driver-hidpp10.c @@ -532,7 +532,7 @@ hidpp10drv_probe(struct ratbag_device *device) struct hidpp10_device *dev = NULL; struct hidpp_device base; enum hidpp10_profile_type type = HIDPP10_PROFILE_UNKNOWN; - const char *profile; + const char *typestr; int device_idx = HIDPP_WIRED_DEVICE_IDX; unsigned int profile_count = 1; @@ -544,13 +544,13 @@ hidpp10drv_probe(struct ratbag_device *device) hidpp_device_init(&base, device->hidraw.fd); hidpp_device_set_log_handler(&base, hidpp10_log, HIDPP_LOG_PRIORITY_RAW, device); - profile = ratbag_device_data_hidpp10_get_profile_type(device->data); - if (profile) { - if (strcasecmp("G500", profile) == 0) + typestr = ratbag_device_data_hidpp10_get_profile_type(device->data); + if (typestr) { + if (strcasecmp("G500", typestr) == 0) type = HIDPP10_PROFILE_G500; - else if (strcasecmp("G700", profile) == 0) + else if (strcasecmp("G700", typestr) == 0) type = HIDPP10_PROFILE_G700; - else if (strcasecmp("G9", profile) == 0) + else if (strcasecmp("G9", typestr) == 0) type = HIDPP10_PROFILE_G9; profile_count = ratbag_device_data_hidpp10_get_profile_count(device->data);