From patchwork Tue Jul 8 19:09:13 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 33247 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f70.google.com (mail-pa0-f70.google.com [209.85.220.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6B53C20969 for ; Tue, 8 Jul 2014 19:10:19 +0000 (UTC) Received: by mail-pa0-f70.google.com with SMTP id lj1sf44392154pab.5 for ; Tue, 08 Jul 2014 12:10:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=dDR4Jtp9V8O3X7OaAOISUeR0Pi7uTd/ADakj9dlICXQ=; b=DHvMsbUGUxRqehwJjrTbURagLF5sFeKQATbpue7tavez+DrU5EQ87BubigzIxUxvjg z/FrdvBxo2t7TgMDOvkhN7YaszJGicZ2o2TRAyVjLKR/Epa6blID0jEpYENEu38CDtHY BqS71j5B0kX6fL1g4Nca3e0dwJN6xXKiPNNWJkadUwYZd+c99beXo9xNJ+/mnft2BQ97 Lq9Szj7Qd3bwqCAF0+rmsJ36FenHwrgREx0a5ynqmYQwMGe5ArIrt5F1eMhWLkVJzX/z MbIqx+xeeRi41+FkEr9gGla62rTDvgCufzE9TpkWs0EO8vT4qPcgDwqDx4sKyfjXoBp2 NRIg== X-Gm-Message-State: ALoCoQmwRW68Ex9NnT7xdKzQ9awdG8fKsZ4lCf3bzq2o5L8+qKhrKEEKaPNqUgjQyyspss9PI3DR X-Received: by 10.66.182.130 with SMTP id ee2mr3652284pac.37.1404846618643; Tue, 08 Jul 2014 12:10:18 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.101.23 with SMTP id t23ls2357615qge.32.gmail; Tue, 08 Jul 2014 12:10:18 -0700 (PDT) X-Received: by 10.220.59.65 with SMTP id k1mr35374528vch.22.1404846618524; Tue, 08 Jul 2014 12:10:18 -0700 (PDT) Received: from mail-ve0-f177.google.com (mail-ve0-f177.google.com [209.85.128.177]) by mx.google.com with ESMTPS id xb10si20546903vcb.45.2014.07.08.12.10.18 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 08 Jul 2014 12:10:18 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.177 as permitted sender) client-ip=209.85.128.177; Received: by mail-ve0-f177.google.com with SMTP id i13so6087878veh.36 for ; Tue, 08 Jul 2014 12:10:18 -0700 (PDT) X-Received: by 10.58.112.65 with SMTP id io1mr27473veb.61.1404846618427; Tue, 08 Jul 2014 12:10:18 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp798264vcb; Tue, 8 Jul 2014 12:10:17 -0700 (PDT) X-Received: by 10.68.231.7 with SMTP id tc7mr37201349pbc.32.1404846617506; Tue, 08 Jul 2014 12:10:17 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bh2si6401610pdb.343.2014.07.08.12.10.16; Tue, 08 Jul 2014 12:10:16 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755972AbaGHTKG (ORCPT + 27 others); Tue, 8 Jul 2014 15:10:06 -0400 Received: from devils.ext.ti.com ([198.47.26.153]:49316 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755909AbaGHTJr (ORCPT ); Tue, 8 Jul 2014 15:09:47 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id s68J9LLb019906; Tue, 8 Jul 2014 14:09:21 -0500 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id s68J9LCQ009145; Tue, 8 Jul 2014 14:09:21 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.3.174.1; Tue, 8 Jul 2014 14:09:21 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s68J9KmL022241; Tue, 8 Jul 2014 14:09:20 -0500 From: Felipe Balbi To: , CC: Linux Kernel Mailing List , Linux OMAP Mailing List , Linux ARM Kernel Mailing List , Keerthy , Felipe Balbi Subject: [PATCH 2/3] regulator: tps65218: drop unneeded field from our regulator macro Date: Tue, 8 Jul 2014 14:09:13 -0500 Message-ID: <1404846554-4095-2-git-send-email-balbi@ti.com> X-Mailer: git-send-email 2.0.0.390.gcb682f8 In-Reply-To: <1404846554-4095-1-git-send-email-balbi@ti.com> References: <1404846554-4095-1-git-send-email-balbi@ti.com> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: balbi@ti.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.177 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , volt table is always NULL for all regulators, might as well drop the argument. Signed-off-by: Felipe Balbi --- drivers/regulator/tps65218-regulator.c | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/drivers/regulator/tps65218-regulator.c b/drivers/regulator/tps65218-regulator.c index 8b7a0a9..7fc8b3a 100644 --- a/drivers/regulator/tps65218-regulator.c +++ b/drivers/regulator/tps65218-regulator.c @@ -29,7 +29,7 @@ enum tps65218_regulators { DCDC1, DCDC2, DCDC3, DCDC4, DCDC5, DCDC6, LDO1 }; -#define TPS65218_REGULATOR(_name, _id, _ops, _n, _vr, _vm, _er, _em, _t, \ +#define TPS65218_REGULATOR(_name, _id, _ops, _n, _vr, _vm, _er, _em, \ _lr, _nlr, _delay) \ { \ .name = _name, \ @@ -42,7 +42,7 @@ enum tps65218_regulators { DCDC1, DCDC2, DCDC3, DCDC4, DCDC5, DCDC6, LDO1 }; .vsel_mask = _vm, \ .enable_reg = _er, \ .enable_mask = _em, \ - .volt_table = _t, \ + .volt_table = NULL, \ .linear_ranges = _lr, \ .n_linear_ranges = _nlr, \ .ramp_delay = _delay, \ @@ -185,33 +185,32 @@ static const struct regulator_desc regulators[] = { TPS65218_REGULATOR("DCDC1", TPS65218_DCDC_1, tps65218_dcdc12_ops, 64, TPS65218_REG_CONTROL_DCDC1, TPS65218_CONTROL_DCDC1_MASK, - TPS65218_REG_ENABLE1, TPS65218_ENABLE1_DC1_EN, NULL, + TPS65218_REG_ENABLE1, TPS65218_ENABLE1_DC1_EN, dcdc1_dcdc2_ranges, 2, 4000), TPS65218_REGULATOR("DCDC2", TPS65218_DCDC_2, tps65218_dcdc12_ops, 64, TPS65218_REG_CONTROL_DCDC2, TPS65218_CONTROL_DCDC2_MASK, - TPS65218_REG_ENABLE1, TPS65218_ENABLE1_DC2_EN, NULL, + TPS65218_REG_ENABLE1, TPS65218_ENABLE1_DC2_EN, dcdc1_dcdc2_ranges, 2, 4000), TPS65218_REGULATOR("DCDC3", TPS65218_DCDC_3, tps65218_ldo1_dcdc34_ops, 64, TPS65218_REG_CONTROL_DCDC3, TPS65218_CONTROL_DCDC3_MASK, TPS65218_REG_ENABLE1, - TPS65218_ENABLE1_DC3_EN, NULL, - ldo1_dcdc3_ranges, 2, 0), + TPS65218_ENABLE1_DC3_EN, ldo1_dcdc3_ranges, 2, 0), TPS65218_REGULATOR("DCDC4", TPS65218_DCDC_4, tps65218_ldo1_dcdc34_ops, 53, TPS65218_REG_CONTROL_DCDC4, TPS65218_CONTROL_DCDC4_MASK, - TPS65218_REG_ENABLE1, TPS65218_ENABLE1_DC4_EN, NULL, + TPS65218_REG_ENABLE1, TPS65218_ENABLE1_DC4_EN, dcdc4_ranges, 2, 0), TPS65218_REGULATOR("DCDC5", TPS65218_DCDC_5, tps65218_dcdc56_pmic_ops, 1, -1, -1, TPS65218_REG_ENABLE1, - TPS65218_ENABLE1_DC5_EN, NULL, NULL, 0, 0), + TPS65218_ENABLE1_DC5_EN, NULL, 0, 0), TPS65218_REGULATOR("DCDC6", TPS65218_DCDC_6, tps65218_dcdc56_pmic_ops, 1, -1, -1, TPS65218_REG_ENABLE1, - TPS65218_ENABLE1_DC6_EN, NULL, NULL, 0, 0), + TPS65218_ENABLE1_DC6_EN, NULL, 0, 0), TPS65218_REGULATOR("LDO1", TPS65218_LDO_1, tps65218_ldo1_dcdc34_ops, 64, TPS65218_REG_CONTROL_LDO1, TPS65218_CONTROL_LDO1_MASK, TPS65218_REG_ENABLE2, - TPS65218_ENABLE2_LDO1_EN, NULL, ldo1_dcdc3_ranges, + TPS65218_ENABLE2_LDO1_EN, ldo1_dcdc3_ranges, 2, 0), };