From: Lee Jones Date: Tue, 2 Apr 2013 12:24:06 +0000 (+0100) Subject: regulator: ab8500-ext: Add support for AB9540 regulators X-Git-Tag: v3.10-rc1~186^2~25^2~36 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0fe17e20a6af5cbe4d0a7739300f7b818c79620f;p=profile%2Fivi%2Fkernel-x86-ivi.git regulator: ab8500-ext: Add support for AB9540 regulators Add the support for ab9540 external regulators. Signed-off-by: Michel JAOUEN Signed-off-by: Lee Jones Reviewed-by: Jonas ABERG Signed-off-by: Mark Brown --- diff --git a/drivers/regulator/ab8500-ext.c b/drivers/regulator/ab8500-ext.c index debae34..1e92e01 100644 --- a/drivers/regulator/ab8500-ext.c +++ b/drivers/regulator/ab8500-ext.c @@ -393,6 +393,12 @@ int ab8500_ext_regulator_init(struct platform_device *pdev) config.init_data = &pdata->ext_regulator[i]; config.driver_data = info; + if (is_ab9540(ab8500) && + ((info->desc.id == AB8500_EXT_SUPPLY1) || + (info->desc.id == AB8500_EXT_SUPPLY2) || + (info->desc.id == AB8500_EXT_SUPPLY3))) + info->desc.ops = &ab8500_ext_regulator_ops; + /* register regulator with framework */ info->rdev = regulator_register(&info->desc, &config);