From patchwork Fri Aug 10 01:37:09 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: axel lin X-Patchwork-Id: 1303711 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id CADE83FC66 for ; Fri, 10 Aug 2012 01:37:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757629Ab2HJBhQ (ORCPT ); Thu, 9 Aug 2012 21:37:16 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:52144 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755941Ab2HJBhP (ORCPT ); Thu, 9 Aug 2012 21:37:15 -0400 Received: by pbbrr13 with SMTP id rr13so1835071pbb.19 for ; Thu, 09 Aug 2012 18:37:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:cc:date:in-reply-to:references :content-type:x-mailer:content-transfer-encoding:mime-version; bh=zKElg1dbwoQZ6m53pUnZNslWXlxUJs6WFzkOW4EWNg8=; b=hcKwE9Ls7IVGbpMWwmAley6fAiPuBibvoAEXc//+mXE1HTV73/XnphvCkZlg7VL8JK O8atwKSXTS8I/WDTBOHei66AcJbQAAvh6MRjKsDIfiwBkHB+SQqFbRr15AIvWSEHPudu h7NJ2YcGlb5JF7fKawqG9Czy7H5qjrjU2pe1vls5f/8TwYC4eOmDNA3v9OYB7q2qC8Ee VvAflCNIpo739in9IlxjGKqAcmFabXAddziy1kV3Mj0HxpcM4VSivAv737eREBalUEIl XhmF9zrCDsydjz1/5pZ6ng/cRdvnm11hfQhDc1owyWdOvJX96qJsDlzIAytqWk0W6vi+ 3/8A== Received: by 10.66.76.106 with SMTP id j10mr2414911paw.51.1344562634825; Thu, 09 Aug 2012 18:37:14 -0700 (PDT) Received: from [114.40.9.121] (114-40-9-121.dynamic.hinet.net. [114.40.9.121]) by mx.google.com with ESMTPS id pq1sm2226879pbb.3.2012.08.09.18.37.11 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 09 Aug 2012 18:37:14 -0700 (PDT) Message-ID: <1344562629.2996.5.camel@phoenix> Subject: [PATCH 5/6] regulator: twl: Remove get_voltage implementation for single voltage regulators From: Axel Lin To: Mark Brown Cc: Liam Girdwood , linux-kernel@vger.kernel.org, Rajendra Nayak , Peter Ujfalusi , loml , Graeme Gregory Date: Fri, 10 Aug 2012 09:37:09 +0800 In-Reply-To: <1344562353.2996.1.camel@phoenix> References: <1344562353.2996.1.camel@phoenix> X-Mailer: Evolution 3.2.3-0ubuntu6 Mime-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org This is not required after commit f7df20ec "regulator: core: Use list_voltage() to read single voltage regulators" Signed-off-by: Axel Lin --- drivers/regulator/twl-regulator.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/drivers/regulator/twl-regulator.c b/drivers/regulator/twl-regulator.c index f2f49e2..2d9a2a8 100644 --- a/drivers/regulator/twl-regulator.c +++ b/drivers/regulator/twl-regulator.c @@ -624,18 +624,9 @@ static int twlfixed_list_voltage(struct regulator_dev *rdev, unsigned index) return info->min_mV * 1000; } -static int twlfixed_get_voltage(struct regulator_dev *rdev) -{ - struct twlreg_info *info = rdev_get_drvdata(rdev); - - return info->min_mV * 1000; -} - static struct regulator_ops twl4030fixed_ops = { .list_voltage = twlfixed_list_voltage, - .get_voltage = twlfixed_get_voltage, - .enable = twl4030reg_enable, .disable = twl4030reg_disable, .is_enabled = twl4030reg_is_enabled, @@ -648,8 +639,6 @@ static struct regulator_ops twl4030fixed_ops = { static struct regulator_ops twl6030fixed_ops = { .list_voltage = twlfixed_list_voltage, - .get_voltage = twlfixed_get_voltage, - .enable = twl6030reg_enable, .disable = twl6030reg_disable, .is_enabled = twl6030reg_is_enabled,