From patchwork Wed Jan 28 02:46:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 5723991 Return-Path: X-Original-To: patchwork-linux-arm-msm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 98BFCBFFA8 for ; Wed, 28 Jan 2015 02:47:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DA57C2024F for ; Wed, 28 Jan 2015 02:47:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EE24E201ED for ; Wed, 28 Jan 2015 02:47:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933519AbbA1CrE (ORCPT ); Tue, 27 Jan 2015 21:47:04 -0500 Received: from seldrel01.sonyericsson.com ([212.209.106.2]:18649 "EHLO seldrel01.sonyericsson.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933456AbbA1CrD (ORCPT ); Tue, 27 Jan 2015 21:47:03 -0500 From: Bjorn Andersson To: Liam Girdwood , Mark Brown , CC: , , , Subject: [PATCH 7/9] regulator: wm8400: move to set_optimum_mode Date: Tue, 27 Jan 2015 18:46:37 -0800 Message-ID: <1422413199-17273-8-git-send-email-bjorn.andersson@sonymobile.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1422413199-17273-1-git-send-email-bjorn.andersson@sonymobile.com> References: <1422413199-17273-1-git-send-email-bjorn.andersson@sonymobile.com> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Bjorn Andersson --- drivers/regulator/wm8400-regulator.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/regulator/wm8400-regulator.c b/drivers/regulator/wm8400-regulator.c index 82d8290..7f4c924 100644 --- a/drivers/regulator/wm8400-regulator.c +++ b/drivers/regulator/wm8400-regulator.c @@ -99,11 +99,11 @@ static int wm8400_dcdc_set_mode(struct regulator_dev *dev, unsigned int mode) } } -static unsigned int wm8400_dcdc_get_optimum_mode(struct regulator_dev *dev, - int input_uV, int output_uV, - int load_uA) +static int wm8400_dcdc_set_optimum_mode(struct regulator_dev *dev, + int input_uV, int output_uV, + int load_uA) { - return REGULATOR_MODE_NORMAL; + return wm8400_dcdc_set_mode(rdev, REGULATOR_MODE_NORMAL); } static struct regulator_ops wm8400_dcdc_ops = { @@ -116,7 +116,7 @@ static struct regulator_ops wm8400_dcdc_ops = { .set_voltage_sel = regulator_set_voltage_sel_regmap, .get_mode = wm8400_dcdc_get_mode, .set_mode = wm8400_dcdc_set_mode, - .get_optimum_mode = wm8400_dcdc_get_optimum_mode, + .set_optimum_mode = wm8400_dcdc_set_optimum_mode, }; static struct regulator_desc regulators[] = {