Re: [PATCH] mfd: qcom-spmi-pmic: Add support for more chips versions

From: Fabio Estevam
Date: Tue Nov 04 2014 - 09:56:11 EST


On Tue, Nov 4, 2014 at 11:33 AM, Ivan T. Ivanov <iivanov@xxxxxxxxxx> wrote:

> + ret = regmap_read(map, PMIC_SUBTYPE, &subtype);
> + if (ret < 0)
> + return ret;
> +
> + rev2 = regmap_read(map, PMIC_REV2, &rev2);
> + if (ret < 0)
> + return ret;

I think you meant:
ret = regmap_read(map, PMIC_REV2, &rev2);

> +
> + rev3 = regmap_read(map, PMIC_REV3, &rev3);

Likewise.

> + if (ret < 0)
> + return ret;
> +
> + rev4 = regmap_read(map, PMIC_REV4, &rev4);

Likewise.

> + if (ret < 0)
> + return ret;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/