arm: tegra: cardhu: Cleanup to support multiboards configuration
Laxman Dewangan [Thu, 10 Mar 2011 11:31:44 +0000 (16:31 +0530)]
Cleanup in the configuration related to board is done so that
it will be easier to add another board configuration on same
build configuration.

Original-Change-Id: Id030d70e4893b886ee73aaf944450526e7722e7e
Reviewed-on: http://git-master/r/22392
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Mohit Singh <mpsingh@nvidia.com>
Tested-by: Mohit Singh <mpsingh@nvidia.com>
Reviewed-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
Tested-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-by: Ramachandrudu Kandhala <rkandhala@nvidia.com>
Original-Change-Id: Id737a2668ce13470be80086e3d3764c4f9ac6096

Rebase-Id: Rc650446ce8e9e419605086760b52bb58b0447c8c

drivers/regulator/gpio-switch-regulator.c
include/linux/regulator/gpio-switch-regulator.h [moved from include/linux/gpio-switch-regulator.h with 97% similarity]

index 0c7816a..9abd3ab 100755 (executable)
@@ -30,7 +30,7 @@
 #include <linux/regulator/driver.h>
 #include <linux/regulator/machine.h>
 #include <linux/gpio.h>
-#include <linux/gpio-switch-regulator.h>
+#include <linux/regulator/gpio-switch-regulator.h>
 
 struct gpio_switch_regulator {
        struct regulator_desc           reg_desc;
@@ -236,7 +236,7 @@ static int __devinit gpio_switch_regulator_probe(struct platform_device *pdev)
 
        for (rcount = 0; rcount < pdata->num_subdevs; ++rcount) {
                ri = &gswitch_reg[rcount];
-               sdata = &pdata->subdevs[rcount];
+               sdata = pdata->subdevs[rcount];
 
                /* Initialize the regulator parameter */
                ri->reg_desc.name = sdata->regulator_name;
similarity index 97%
rename from include/linux/gpio-switch-regulator.h
rename to include/linux/regulator/gpio-switch-regulator.h
index 6110812..06e584b 100755 (executable)
@@ -63,7 +63,7 @@ struct gpio_switch_regulator_subdev_data {
  */
 struct gpio_switch_regulator_platform_data {
        int num_subdevs;
-       struct gpio_switch_regulator_subdev_data *subdevs;
+       struct gpio_switch_regulator_subdev_data **subdevs;
 };
 
 #endif