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
@@@@@@@@@@@ -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
@@@@@@@@@@@ -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);