Merge remote-tracking branches 'regulator/topic/db8500', 'regulator/topic/gpio',...
authorMark Brown <broonie@linaro.org>
Thu, 23 Jan 2014 12:01:27 +0000 (12:01 +0000)
committerMark Brown <broonie@linaro.org>
Thu, 23 Jan 2014 12:01:27 +0000 (12:01 +0000)
1  2  3  4  5  6  7  8  9  10 
drivers/regulator/Kconfig
drivers/regulator/Makefile
drivers/regulator/gpio-regulator.c
drivers/regulator/mc13892-regulator.c
drivers/regulator/pfuze100-regulator.c

Simple merge
Simple merge
index 234960dc96077389460632cdc832f0c6ea5e69e1,04406a918c041b5773adcf9adf331eadf289caf4,49fe20f58d2ab1ed85dd521354921a2e83021de3,04406a918c041b5773adcf9adf331eadf289caf4,04406a918c041b5773adcf9adf331eadf289caf4,04406a918c041b5773adcf9adf331eadf289caf4,04406a918c041b5773adcf9adf331eadf289caf4,98a98ffa7fe07d2bcb23f2c9cad593b416aaf203,04406a918c041b5773adcf9adf331eadf289caf4,234960dc96077389460632cdc832f0c6ea5e69e1..c0a1d00b78c932a6982961334f9e3e9501592c50
@@@@@@@@@@@ -203,17 -202,13 -203,18 -202,13 -202,13 -202,13 -202,13 -202,13 -202,13 -203,17 +203,18 @@@@@@@@@@@ of_get_gpio_regulator_config(struct dev
                }
                config->nr_states = i;
          
 - ------       of_property_read_string(np, "regulator-type", &regtype);
 - ------ 
 - ------       if (!strncmp("voltage", regtype, 7))
 - ------               config->type = REGULATOR_VOLTAGE;
 - ------       else if (!strncmp("current", regtype, 7))
 - ------               config->type = REGULATOR_CURRENT;
++ +++++++      config->type = REGULATOR_VOLTAGE;
 + ++++++       ret = of_property_read_string(np, "regulator-type", &regtype);
-        -      if (ret < 0) {
-        -              dev_err(dev, "Missing 'regulator-type' property\n");
-        -              return ERR_PTR(-EINVAL);
++ +++++++      if (ret >= 0) {
++ +++++++              if (!strncmp("voltage", regtype, 7))
++ +++++++                      config->type = REGULATOR_VOLTAGE;
++ +++++++              else if (!strncmp("current", regtype, 7))
++ +++++++                      config->type = REGULATOR_CURRENT;
++ +++++++              else
++ +++++++                      dev_warn(dev, "Unknown regulator-type '%s'\n",
++ +++++++                               regtype);
 + ++++++       }
          
-        -      if (!strncmp("voltage", regtype, 7))
-        -              config->type = REGULATOR_VOLTAGE;
-        -      else if (!strncmp("current", regtype, 7))
-        -              config->type = REGULATOR_CURRENT;
-        -
                return config;
          }
          
Simple merge
index c31e0485de25252c0a32a220fb40630a03db0b11,ba67b2c4e2e7fe4da91fdd6afd269ab1233a284e,ba67b2c4e2e7fe4da91fdd6afd269ab1233a284e,ba67b2c4e2e7fe4da91fdd6afd269ab1233a284e,ba67b2c4e2e7fe4da91fdd6afd269ab1233a284e,ba67b2c4e2e7fe4da91fdd6afd269ab1233a284e,ba67b2c4e2e7fe4da91fdd6afd269ab1233a284e,ba67b2c4e2e7fe4da91fdd6afd269ab1233a284e,ba67b2c4e2e7fe4da91fdd6afd269ab1233a284e,f68e5d5a011e3b532d10bea19c64dff1b00907d2..ab174f20ca11f473c889848b1d7e6b7545a9e3ef
@@@@@@@@@@@ -308,15 -308,9 -308,9 -308,9 -308,9 -308,9 -308,9 -308,9 -308,9 -308,18 +308,18 @@@@@@@@@@@ static int pfuze_identify(struct pfuze_
                if (ret)
                        return ret;
          
 --------       if (value & 0x0f) {
 ++++++++       switch (value & 0x0f) {
-                       /* Freescale misprogrammed 1-3% of parts prior to week 8 of 2013 as ID=8 */
-                       case 0x8:
-                               dev_info(pfuze_chip->dev, "Assuming misprogrammed ID=0x8");
-                       case 0x0:
-                               break;
-                       default:
-                               dev_warn(pfuze_chip->dev, "Illegal ID: %x\n", value);
-                               return -ENODEV;
+++++++++       /*
+++++++++        * Freescale misprogrammed 1-3% of parts prior to week 8 of 2013
+++++++++        * as ID=8
+++++++++        */
+++++++++       case 0x8:
+++++++++               dev_info(pfuze_chip->dev, "Assuming misprogrammed ID=0x8");
+++++++++       case 0x0:
+++++++++               break;
+++++++++       default:
+                       dev_warn(pfuze_chip->dev, "Illegal ID: %x\n", value);
+                       return -ENODEV;
                }
          
                ret = regmap_read(pfuze_chip->regmap, PFUZE100_REVID, &value);