regulator: act8865: Rename platform_data field to init_data
authorMaarten ter Huurne <maarten@treewalker.org>
Sun, 28 Feb 2016 15:53:26 +0000 (16:53 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 29 Feb 2016 11:33:46 +0000 (20:33 +0900)
Make the field name match its type.

Signed-off-by: Maarten ter Huurne <maarten@treewalker.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/act8865-regulator.c
include/linux/regulator/act8865.h

index 984c30fa951610b3e5bc4b36318008cebdb930ef..1994795407c54ad58f35f7609d4574bf1951f6e7 100644 (file)
@@ -369,7 +369,7 @@ static int act8865_pdata_from_dt(struct device *dev,
        for (i = 0; i < num_matches; i++) {
                regulator->id = i;
                regulator->name = matches[i].name;
-               regulator->platform_data = matches[i].init_data;
+               regulator->init_data = matches[i].init_data;
                of_node[i] = matches[i].of_node;
                regulator++;
        }
@@ -396,7 +396,7 @@ static struct regulator_init_data
 
        for (i = 0; i < pdata->num_regulators; i++) {
                if (pdata->regulators[i].id == id)
-                       return pdata->regulators[i].platform_data;
+                       return pdata->regulators[i].init_data;
        }
 
        return NULL;
index 15fa8f2d35c9a58fc2e563418ee00981eb1da13f..2eb386017fa58fe5106c27b7bf76a27214690249 100644 (file)
@@ -68,12 +68,12 @@ enum {
  * act8865_regulator_data - regulator data
  * @id: regulator id
  * @name: regulator name
- * @platform_data: regulator init data
+ * @init_data: regulator init data
  */
 struct act8865_regulator_data {
        int id;
        const char *name;
-       struct regulator_init_data *platform_data;
+       struct regulator_init_data *init_data;
 };
 
 /**