From 27aafcf1fd23f7ad8c0a56f9ef59c07191e3201f Mon Sep 17 00:00:00 2001 From: Richard Sailer Date: Mon, 19 Aug 2019 05:29:54 +0200 Subject: [PATCH] refactor: set_color_region() -> set_color_string_region() --- src/tuxedo_keyboard.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/tuxedo_keyboard.c b/src/tuxedo_keyboard.c index b9080bb..1329a1f 100644 --- a/src/tuxedo_keyboard.c +++ b/src/tuxedo_keyboard.c @@ -373,7 +373,7 @@ static int set_color(u32 region, u32 color) return tuxedo_evaluate_wmi_method(SET_KB_LED, cmd, NULL); } -static int set_color_region(const char *color_string, size_t size, u32 region) +static int set_color_string_region(const char *color_string, size_t size, u32 region) { u32 colorcode; int err = kstrtouint(color_string, 0, &colorcode); @@ -408,28 +408,28 @@ static ssize_t set_color_left_fs(struct device *child, struct device_attribute *attr, const char *color_string, size_t size) { - return set_color_region(color_string, size, REGION_LEFT); + return set_color_string_region(color_string, size, REGION_LEFT); } static ssize_t set_color_center_fs(struct device *child, struct device_attribute *attr, const char *color_string, size_t size) { - return set_color_region(color_string, size, REGION_CENTER); + return set_color_string_region(color_string, size, REGION_CENTER); } static ssize_t set_color_right_fs(struct device *child, struct device_attribute *attr, const char *color_string, size_t size) { - return set_color_region(color_string, size, REGION_RIGHT); + return set_color_string_region(color_string, size, REGION_RIGHT); } static ssize_t set_color_extra_fs(struct device *child, struct device_attribute *attr, const char *color_string, size_t size) { - return set_color_region(color_string, size, REGION_EXTRA); + return set_color_string_region(color_string, size, REGION_EXTRA); } static void set_blinking_pattern(u8 blinkling_pattern)