From patchwork Wed Jun 18 19:42:10 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Graham Williams X-Patchwork-Id: 32155 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yk0-f199.google.com (mail-yk0-f199.google.com [209.85.160.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DF5B0203F3 for ; Wed, 18 Jun 2014 19:43:25 +0000 (UTC) Received: by mail-yk0-f199.google.com with SMTP id 200sf2751128ykr.2 for ; Wed, 18 Jun 2014 12:43:25 -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 :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=WFhxWicw5sr1ty0I//HKvPDnjBCRWPxO+6HHWIQFcvo=; b=YUffaBXZ7K5DrJmNurTmnS+qm3yu8RDet2C30pNuo3sv170fkt77ljw1Nf/r6XE5Jo JMJvmGkoi/CzyCYU2ez651dWkbgwmVonYuUxIuWm+WC/3HKX1WOz5fOkSRM1ea2tsNIA 8eZqt8rKWklpLWT/eDw5TdKflCXTGHH+WmgdFgkL8PR3/mSVH9tx4d/OAOCkVIyBbHIw OBc3MvzClTlg9Sglwm5+OrBONGBNzU5tAl3hIJ+SIdpLfZ8fE8sFhuApidPnS0sS1W7k iDUWb7Ny70jZFpkisht8QNF/yQaxRDj9zHP5vvKKiqBuws7JU5PSrBbdvskhGy3wQ2QK JipA== X-Gm-Message-State: ALoCoQkzIclnjNUBjzEmQruNr5Xmtv8LEad1BP0iOnfX4EAhKxQ9FTP9ZLElSItQiBsC03Qe4sjn X-Received: by 10.236.136.231 with SMTP id w67mr55425yhi.37.1403120605733; Wed, 18 Jun 2014 12:43:25 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.102.178 with SMTP id w47ls283896qge.55.gmail; Wed, 18 Jun 2014 12:43:25 -0700 (PDT) X-Received: by 10.52.12.229 with SMTP id b5mr120164vdc.52.1403120605654; Wed, 18 Jun 2014 12:43:25 -0700 (PDT) Received: from mail-ve0-f179.google.com (mail-ve0-f179.google.com [209.85.128.179]) by mx.google.com with ESMTPS id kb8si1320418vec.96.2014.06.18.12.43.25 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 18 Jun 2014 12:43:25 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.179 as permitted sender) client-ip=209.85.128.179; Received: by mail-ve0-f179.google.com with SMTP id sa20so1335218veb.38 for ; Wed, 18 Jun 2014 12:43:25 -0700 (PDT) X-Received: by 10.221.26.10 with SMTP id rk10mr191511vcb.0.1403120605539; Wed, 18 Jun 2014 12:43:25 -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.54.6 with SMTP id vs6csp309044vcb; Wed, 18 Jun 2014 12:43:25 -0700 (PDT) X-Received: by 10.66.118.71 with SMTP id kk7mr63612pab.147.1403120604667; Wed, 18 Jun 2014 12:43:24 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id tx5si3165214pbc.207.2014.06.18.12.43.24; Wed, 18 Jun 2014 12:43:24 -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 S1754837AbaFRTnW (ORCPT + 6 others); Wed, 18 Jun 2014 15:43:22 -0400 Received: from mail-gw2-out.broadcom.com ([216.31.210.63]:16274 "EHLO mail-gw2-out.broadcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752892AbaFRTnV (ORCPT ); Wed, 18 Jun 2014 15:43:21 -0400 X-IronPort-AV: E=Sophos;i="5.01,501,1400050800"; d="scan'208";a="35095558" Received: from irvexchcas07.broadcom.com (HELO IRVEXCHCAS07.corp.ad.broadcom.com) ([10.9.208.55]) by mail-gw2-out.broadcom.com with ESMTP; 18 Jun 2014 12:47:39 -0700 Received: from IRVEXCHSMTP2.corp.ad.broadcom.com (10.9.207.52) by IRVEXCHCAS07.corp.ad.broadcom.com (10.9.208.55) with Microsoft SMTP Server (TLS) id 14.3.174.1; Wed, 18 Jun 2014 12:43:10 -0700 Received: from mail-irva-13.broadcom.com (10.10.10.20) by IRVEXCHSMTP2.corp.ad.broadcom.com (10.9.207.52) with Microsoft SMTP Server id 14.3.174.1; Wed, 18 Jun 2014 12:43:10 -0700 Received: from mail.broadcom.com (mps-infra-lab2.sj.broadcom.com [10.19.114.108]) by mail-irva-13.broadcom.com (Postfix) with ESMTP id 12D239FA7B; Wed, 18 Jun 2014 12:42:13 -0700 (PDT) From: Graham Williams To: Liam Girdwood , Mark Brown , "Matt Porter" , Lee Jones CC: Dave Jones , Linux Kernel Mailing List Subject: [PATCH] regulator: bcm590xx: fix vbus name Date: Wed, 18 Jun 2014 12:42:10 -0700 Message-ID: <1403120530-27395-1-git-send-email-graham.williams@linaro.org> X-Mailer: git-send-email 1.7.9.5 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: graham.williams@linaro.org 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.179 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: , The vbus regulator was not getting its name set. This results in the sysfs entry being empty. The lack of a bcm590xx_regs[] table entry also upsets Coverity runs. Add the table entry so the name gets set properly. Signed-off-by: Graham Williams Acked-by: Matt Porter --- drivers/regulator/bcm590xx-regulator.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/regulator/bcm590xx-regulator.c b/drivers/regulator/bcm590xx-regulator.c index 57544e2..58ece59 100644 --- a/drivers/regulator/bcm590xx-regulator.c +++ b/drivers/regulator/bcm590xx-regulator.c @@ -119,6 +119,10 @@ static const unsigned int ldo_c_table[] = { 2900000, 3000000, 3300000, }; +static const unsigned int ldo_vbus[] = { + 5000000, +}; + /* DCDC group CSR: supported voltages in microvolts */ static const struct regulator_linear_range dcdc_csr_ranges[] = { REGULATOR_LINEAR_RANGE(860000, 2, 50, 10000), @@ -192,6 +196,7 @@ static struct bcm590xx_info bcm590xx_regs[] = { BCM590XX_REG_TABLE(gpldo4, ldo_a_table), BCM590XX_REG_TABLE(gpldo5, ldo_a_table), BCM590XX_REG_TABLE(gpldo6, ldo_a_table), + BCM590XX_REG_TABLE(vbus, ldo_vbus), }; struct bcm590xx_reg {