]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
regmap: Rename n_ranges to num_ranges
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 2 Oct 2012 19:17:15 +0000 (20:17 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 15 Oct 2012 00:59:59 +0000 (09:59 +0900)
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>
drivers/base/regmap/regmap.c
include/linux/regmap.h

index 52069d29ff12ef197c7d8a447ab27ffb7096d85e..ea9d6eb826bdaa611313e6eaf6e4d9b3d5c84a01 100644 (file)
@@ -519,7 +519,7 @@ struct regmap *regmap_init(struct device *dev,
        }
 
        map->range_tree = RB_ROOT;
-       for (i = 0; i < config->n_ranges; i++) {
+       for (i = 0; i < config->num_ranges; i++) {
                const struct regmap_range_cfg *range_cfg = &config->ranges[i];
                struct regmap_range_node *new;
 
@@ -532,7 +532,7 @@ struct regmap *regmap_init(struct device *dev,
 
                /* Make sure, that this register range has no selector
                   or data window within its boundary */
-               for (j = 0; j < config->n_ranges; j++) {
+               for (j = 0; j < config->num_ranges; j++) {
                        unsigned sel_reg = config->ranges[j].selector_reg;
                        unsigned win_min = config->ranges[j].window_start;
                        unsigned win_max = win_min +
index e3bcc3f4dcb8426c4e5e487016417e0e43113666..afc8e1a2cd1bdcd2fdf5cdfb716d7413b1844f44 100644 (file)
@@ -133,7 +133,7 @@ struct regmap_config {
        enum regmap_endian val_format_endian;
 
        const struct regmap_range_cfg *ranges;
-       unsigned int n_ranges;
+       unsigned int num_ranges;
 };
 
 /**