From patchwork Thu Apr 10 20:04:00 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Kryger X-Patchwork-Id: 28243 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ig0-f199.google.com (mail-ig0-f199.google.com [209.85.213.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id F310B20671 for ; Thu, 10 Apr 2014 20:04:22 +0000 (UTC) Received: by mail-ig0-f199.google.com with SMTP id c1sf11688164igq.10 for ; Thu, 10 Apr 2014 13:04:22 -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=mP5tO9fyKwWL0Ob4uq44gdvLUIKHY8c4MC4m64lB24U=; b=g8uCECaVGPWUSyahLTxU4GbKtH5YZUYMdzph8JpQ3U3DiuGmvrmPE+oULFyv0/OvWt 3YCdmbIdqhjPgbeSUaQzPFNs+/nt7jDvygVY/9XD4eZuwDGUnl6hBvwjSZzaLIsejcjp 4rDGLlazCBd/pFVKG9AVOVRggEdmHp9a+8GE4C/Tqz7vATWSwVW73j6skxJK6F5xZie7 t6mQU7akFguk49MJRo/IvlZ+oN+qyfSRx4gqTH3Q+Qp0bnZmVDNX9NHmpWP14pPOHmeI J81Df/1pP1VBinjvbuJMdPyXj/UYm9FvAiGR6iS5b1Vy8XZfLFHArwqiGHucahq9AYIs Nnww== X-Gm-Message-State: ALoCoQnqGd9EP2vB/y78aZV5uFXAv5lSTwwpUiEO22Tl1Oh3WvXFXAIhPW3GzC5IB+Am2iBzf3N9 X-Received: by 10.42.216.144 with SMTP id hi16mr7864024icb.7.1397160262438; Thu, 10 Apr 2014 13:04:22 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.104.163 with SMTP id a32ls1343202qgf.73.gmail; Thu, 10 Apr 2014 13:04:22 -0700 (PDT) X-Received: by 10.220.12.66 with SMTP id w2mr15672174vcw.15.1397160262286; Thu, 10 Apr 2014 13:04:22 -0700 (PDT) Received: from mail-ve0-f176.google.com (mail-ve0-f176.google.com [209.85.128.176]) by mx.google.com with ESMTPS id sn5si876942vdc.137.2014.04.10.13.04.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 10 Apr 2014 13:04:22 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.176; Received: by mail-ve0-f176.google.com with SMTP id db11so3826282veb.21 for ; Thu, 10 Apr 2014 13:04:22 -0700 (PDT) X-Received: by 10.220.250.203 with SMTP id mp11mr15856274vcb.2.1397160262206; Thu, 10 Apr 2014 13:04:22 -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.220.221.72 with SMTP id ib8csp87900vcb; Thu, 10 Apr 2014 13:04:21 -0700 (PDT) X-Received: by 10.68.190.200 with SMTP id gs8mr22090875pbc.130.1397160261402; Thu, 10 Apr 2014 13:04:21 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b4si2785837pbl.431.2014.04.10.13.04.20; Thu, 10 Apr 2014 13:04:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1422708AbaDJUEK (ORCPT + 27 others); Thu, 10 Apr 2014 16:04:10 -0400 Received: from mail-gw3-out.broadcom.com ([216.31.210.64]:37821 "EHLO mail-gw3-out.broadcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1422694AbaDJUEI (ORCPT ); Thu, 10 Apr 2014 16:04:08 -0400 X-IronPort-AV: E=Sophos;i="4.97,835,1389772800"; d="scan'208";a="23692774" Received: from irvexchcas08.broadcom.com (HELO IRVEXCHCAS08.corp.ad.broadcom.com) ([10.9.208.57]) by mail-gw3-out.broadcom.com with ESMTP; 10 Apr 2014 13:21:34 -0700 Received: from IRVEXCHSMTP1.corp.ad.broadcom.com (10.9.207.51) by IRVEXCHCAS08.corp.ad.broadcom.com (10.9.208.57) with Microsoft SMTP Server (TLS) id 14.3.174.1; Thu, 10 Apr 2014 13:04:07 -0700 Received: from mail-sj1-12.sj.broadcom.com (10.10.10.20) by IRVEXCHSMTP1.corp.ad.broadcom.com (10.9.207.51) with Microsoft SMTP Server id 14.3.174.1; Thu, 10 Apr 2014 13:04:07 -0700 Received: from dhcp-sv1-10-19-114-209.sj.broadcom.com (mps-infra-lab3.sj.broadcom.com [10.19.114.109]) by mail-sj1-12.sj.broadcom.com (Postfix) with ESMTP id 499D227A81; Thu, 10 Apr 2014 13:04:07 -0700 (PDT) Received: by dhcp-sv1-10-19-114-209.sj.broadcom.com (Postfix, from userid 1004) id 2F8852520E7E; Thu, 10 Apr 2014 13:04:07 -0700 (PDT) From: Tim Kryger To: Matt Porter , Liam Girdwood , Mark Brown CC: Tim Kryger , Linux Kernel Mailing List Subject: [PATCH] regulator: bcm590xx: Set n_voltages for linear reg Date: Thu, 10 Apr 2014 13:04:00 -0700 Message-ID: <1397160240-2833-1-git-send-email-tim.kryger@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: tim.kryger@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) 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: , Fix the macro used to define linear range regulators to include the number of voltages. Signed-off-by: Tim Kryger Acked-by: Matt Porter --- drivers/regulator/bcm590xx-regulator.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/regulator/bcm590xx-regulator.c b/drivers/regulator/bcm590xx-regulator.c index ab08ca7..c3750c5 100644 --- a/drivers/regulator/bcm590xx-regulator.c +++ b/drivers/regulator/bcm590xx-regulator.c @@ -123,6 +123,7 @@ struct bcm590xx_info { #define BCM590XX_REG_RANGES(_name, _ranges) \ { \ .name = #_name, \ + .n_voltages = 64, \ .n_linear_ranges = ARRAY_SIZE(_ranges), \ .linear_ranges = _ranges, \ }