From patchwork Mon Jun 30 15:57:34 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nishanth Menon X-Patchwork-Id: 32767 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 984AE203C0 for ; Mon, 30 Jun 2014 15:58:02 +0000 (UTC) Received: by mail-pa0-f70.google.com with SMTP id lj1sf44964769pab.1 for ; Mon, 30 Jun 2014 08:58:01 -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=FhMi2zCc4jfSMdZvW+GEg/6G44eg+5x/fNSGicGTOec=; b=WIcnRUbAdZSqjrS6UNrtTqVir569FPR0X6eIvHM0cOYfDrYjSMM28OKBFPUgaujQZx LFO5cBHSJx7cvM5hc1XPpCp10UHZqknz2v4av+xTPhW1FcgcpXgMkrqXfkYZrhLkxZ8V vB2ZTMJTYMFANoWi4qmR5gc3cAzLTdUywsVhTpapdlntOvsOINN6yAlK0hyNra2JWCku /zbTUZvpVueMenA6Fu1y/d58TJ2gV6FsDDQqkF91+uSeXp6SaPnljhfrMxWjixDJyLVL 5lR8iM9A7xRrPM7zdCAW/u/z/lY9vl0LP5fDkJLcVc5F4t6ue4fGoIF2CGlMArF4bKyT WnUQ== X-Gm-Message-State: ALoCoQlK5/JjFFDIIek27aZmFIlHSeMc+nPndc9MVwDO+VtVXX5QAhJUjCJuXLyJTEOj5kGt6Ppj X-Received: by 10.66.151.140 with SMTP id uq12mr22915033pab.23.1404143881935; Mon, 30 Jun 2014 08:58:01 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.102.178 with SMTP id w47ls1522467qge.55.gmail; Mon, 30 Jun 2014 08:58:01 -0700 (PDT) X-Received: by 10.58.182.105 with SMTP id ed9mr16101676vec.16.1404143881716; Mon, 30 Jun 2014 08:58:01 -0700 (PDT) Received: from mail-ve0-f181.google.com (mail-ve0-f181.google.com [209.85.128.181]) by mx.google.com with ESMTPS id ak16si1245189vdc.93.2014.06.30.08.58.01 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 30 Jun 2014 08:58:01 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.181 as permitted sender) client-ip=209.85.128.181; Received: by mail-ve0-f181.google.com with SMTP id db11so8263958veb.40 for ; Mon, 30 Jun 2014 08:58:01 -0700 (PDT) X-Received: by 10.221.26.10 with SMTP id rk10mr38987234vcb.0.1404143881639; Mon, 30 Jun 2014 08:58:01 -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 tc5csp150369vcb; Mon, 30 Jun 2014 08:58:01 -0700 (PDT) X-Received: by 10.68.139.36 with SMTP id qv4mr53488456pbb.82.1404143880886; Mon, 30 Jun 2014 08:58:00 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a10si23633156pat.43.2014.06.30.08.58.00; Mon, 30 Jun 2014 08:58:00 -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 S1756096AbaF3P5z (ORCPT + 27 others); Mon, 30 Jun 2014 11:57:55 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:35799 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755074AbaF3P5r (ORCPT ); Mon, 30 Jun 2014 11:57:47 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id s5UFvh7h003975; Mon, 30 Jun 2014 10:57:43 -0500 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s5UFvhrC026726; Mon, 30 Jun 2014 10:57:43 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.3.174.1; Mon, 30 Jun 2014 10:57:43 -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 s5UFvhfw011763; Mon, 30 Jun 2014 10:57:43 -0500 From: Nishanth Menon To: Liam Girdwood , Mark Brown , Samuel Ortiz , Lee Jones , Keerthy J CC: Tero Kristo , , , , Nishanth Menon Subject: [PATCH V2 1/6] regulator: palmas: Squelch sparse warnings Date: Mon, 30 Jun 2014 10:57:34 -0500 Message-ID: <1404143859-8160-2-git-send-email-nm@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1404143859-8160-1-git-send-email-nm@ti.com> References: <1404143859-8160-1-git-send-email-nm@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: nm@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.181 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: , convert to static variables to squelch the following sparse warnings: drivers/regulator/palmas-regulator.c:325:36: warning: symbol 'palma_sleep_req_info' was not declared. Should it be static? drivers/regulator/palmas-regulator.c:1414:32: warning: symbol 'palmas_ddata' was not declared. Should it be static? drivers/regulator/palmas-regulator.c:1427:32: warning: symbol 'tps65917_ddata' was not declared. Should it be static? Signed-off-by: Nishanth Menon --- drivers/regulator/palmas-regulator.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/regulator/palmas-regulator.c b/drivers/regulator/palmas-regulator.c index 7c8b441..91f60fa 100644 --- a/drivers/regulator/palmas-regulator.c +++ b/drivers/regulator/palmas-regulator.c @@ -322,7 +322,7 @@ static struct regs_info tps65917_regs_info[] = { .bit_pos = _pos, \ } -struct palmas_sleep_requestor_info palma_sleep_req_info[] = { +static struct palmas_sleep_requestor_info palma_sleep_req_info[] = { EXTERNAL_REQUESTOR(REGEN1, 0, 0), EXTERNAL_REQUESTOR(REGEN2, 0, 1), EXTERNAL_REQUESTOR(SYSEN1, 0, 2), @@ -1408,7 +1408,7 @@ static struct of_regulator_match tps65917_matches[] = { { .name = "sysen2", }, }; -struct palmas_pmic_driver_data palmas_ddata = { +static struct palmas_pmic_driver_data palmas_ddata = { .smps_start = PALMAS_REG_SMPS12, .smps_end = PALMAS_REG_SMPS10_OUT1, .ldo_begin = PALMAS_REG_LDO1, @@ -1421,7 +1421,7 @@ struct palmas_pmic_driver_data palmas_ddata = { .ldo_register = palmas_ldo_registration, }; -struct palmas_pmic_driver_data tps65917_ddata = { +static struct palmas_pmic_driver_data tps65917_ddata = { .smps_start = TPS65917_REG_SMPS1, .smps_end = TPS65917_REG_SMPS5, .ldo_begin = TPS65917_REG_LDO1,