Commit e3549cd01347ef211d01353bdf2572b086574007

Authored by Mark Brown
1 parent ddffeb8c4d

regmap: Rename n_ranges to num_ranges

This makes things consistent with the rest of the API and is actually what
the documentation says. We don't currently have any in tree users so low
cost.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

Showing 2 changed files with 3 additions and 3 deletions Side-by-side Diff

drivers/base/regmap/regmap.c
... ... @@ -519,7 +519,7 @@
519 519 }
520 520  
521 521 map->range_tree = RB_ROOT;
522   - for (i = 0; i < config->n_ranges; i++) {
  522 + for (i = 0; i < config->num_ranges; i++) {
523 523 const struct regmap_range_cfg *range_cfg = &config->ranges[i];
524 524 struct regmap_range_node *new;
525 525  
... ... @@ -532,7 +532,7 @@
532 532  
533 533 /* Make sure, that this register range has no selector
534 534 or data window within its boundary */
535   - for (j = 0; j < config->n_ranges; j++) {
  535 + for (j = 0; j < config->num_ranges; j++) {
536 536 unsigned sel_reg = config->ranges[j].selector_reg;
537 537 unsigned win_min = config->ranges[j].window_start;
538 538 unsigned win_max = win_min +
include/linux/regmap.h
... ... @@ -133,7 +133,7 @@
133 133 enum regmap_endian val_format_endian;
134 134  
135 135 const struct regmap_range_cfg *ranges;
136   - unsigned int n_ranges;
  136 + unsigned int num_ranges;
137 137 };
138 138  
139 139 /**