Commit e63a006f authored by Bartosz Golaszewski's avatar Bartosz Golaszewski Committed by Linus Walleij

gpio: mockup: rename gpio_mockup_params_nr to gpio_mockup_num_ranges

This variable holds the number of mockup GPIO ranges so rename it
accordingly.
Signed-off-by: default avatarBartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 1e0dca67
...@@ -72,8 +72,8 @@ struct gpio_mockup_platform_data { ...@@ -72,8 +72,8 @@ struct gpio_mockup_platform_data {
}; };
static int gpio_mockup_ranges[GPIO_MOCKUP_MAX_RANGES]; static int gpio_mockup_ranges[GPIO_MOCKUP_MAX_RANGES];
static int gpio_mockup_params_nr; static int gpio_mockup_num_ranges;
module_param_array(gpio_mockup_ranges, int, &gpio_mockup_params_nr, 0400); module_param_array(gpio_mockup_ranges, int, &gpio_mockup_num_ranges, 0400);
static bool gpio_mockup_named_lines; static bool gpio_mockup_named_lines;
module_param_named(gpio_mockup_named_lines, module_param_named(gpio_mockup_named_lines,
...@@ -338,13 +338,13 @@ static int __init gpio_mockup_init(void) ...@@ -338,13 +338,13 @@ static int __init gpio_mockup_init(void)
struct gpio_mockup_platform_data pdata; struct gpio_mockup_platform_data pdata;
struct platform_device *pdev; struct platform_device *pdev;
if ((gpio_mockup_params_nr < 2) || if ((gpio_mockup_num_ranges < 2) ||
(gpio_mockup_params_nr % 2) || (gpio_mockup_num_ranges % 2) ||
(gpio_mockup_params_nr > GPIO_MOCKUP_MAX_RANGES)) (gpio_mockup_num_ranges > GPIO_MOCKUP_MAX_RANGES))
return -EINVAL; return -EINVAL;
/* Each chip is described by two values. */ /* Each chip is described by two values. */
num_chips = gpio_mockup_params_nr / 2; num_chips = gpio_mockup_num_ranges / 2;
/* /*
* The second value in the <base GPIO - number of GPIOS> pair must * The second value in the <base GPIO - number of GPIOS> pair must
......
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