Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4977392imu; Wed, 19 Dec 2018 03:37:17 -0800 (PST) X-Google-Smtp-Source: AFSGD/W3WgEJc4D43qBY/CZxueGepoaTmDrzdBZLGa2avKqvQWSyfK/FPZKV26R2PRMVgfbRc4j9 X-Received: by 2002:a62:4e83:: with SMTP id c125mr20385624pfb.101.1545219437317; Wed, 19 Dec 2018 03:37:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545219437; cv=none; d=google.com; s=arc-20160816; b=xaGYL/Ppp0+qvfcPG2wk7XZKTdVsPygEVQ6OkcHpHjfMsYfrD1PGoBBPFqqXFUu0r8 vk+e+i2qvsMwLbZS7h9W/qv/ywO8Ddx3kkRS/5/3PU9YzzEb6q3NBWHoBdb2VtY7f1D3 hza3dahR6aCMlfmAN1X4ipeEknhLrCgjFMkQvGRsJUBlS5o1kvOz8WSlzJ3ATOWh9rEG HOFdANIMZp05H/tCzmHuWo0ZkqMfeOynXZKqwQQBOEm3LI11rZndupgeG1rTILeoRkRQ rG88B+5eDhfFLvkJ+xu6AJTG0GlgNqPrSBrNGLAbBK7DvlhMsS8sstazAH6DD9VaspEN 9cRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=W6pQQtiooT/ADwr0XYoNIMzL8tlsJR0JaZNF4kZWDrI=; b=09THwAOzJZm8TPmfudxuqPYfQWZEcStV5OT46gcBW/wF7hhR1kOLM/DCAHA4za+xr0 20sdomE9L57EF2RVb/zlK9/kqFVmG6i1+b5VM7wgdEdzqFSqtPd4PgcfI5KTtUzMEo0i BQfVBOpnb3bIX8Eop00awhRosx7RLwS7AwZbHkk8qwdfFuKX1r+TYy+cu2kUfofwuWhz MmSeYxal64LxWFcDeVELTc7Wp0PrW8aakzuI6LGS1qXFV5aOQzdWphkLvgOc7wvyx3Qy Ab1IkisDV9ppc3mz6Wi92MYbMTZO3OO5PVRbZzgroFCoZEyRB1JZJK0wZoEGWjyN0avw f9Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ingics-com.20150623.gappssmtp.com header.s=20150623 header.b=F6JKn1yV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o2si15993684pfb.166.2018.12.19.03.36.59; Wed, 19 Dec 2018 03:37:17 -0800 (PST) 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; Authentication-Results: mx.google.com; dkim=pass header.i=@ingics-com.20150623.gappssmtp.com header.s=20150623 header.b=F6JKn1yV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728437AbeLSI6Q (ORCPT + 99 others); Wed, 19 Dec 2018 03:58:16 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:36527 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727060AbeLSI6Q (ORCPT ); Wed, 19 Dec 2018 03:58:16 -0500 Received: by mail-pl1-f195.google.com with SMTP id g9so9165510plo.3 for ; Wed, 19 Dec 2018 00:58:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ingics-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=W6pQQtiooT/ADwr0XYoNIMzL8tlsJR0JaZNF4kZWDrI=; b=F6JKn1yVP5lueLtgwPxp+yDvWTFKRqcarEHE2WzP54jpxFRj9lmSC5ZAG00/jHWcTY Gbo3IX0oRABOpflxVI8bc9aFze4u4uLuY97yD/5lKm9M0HWoPHiVljCz5/YQ/1gZsqys 3FTpC/eVnii5SxDq3XNKdlBHavq6IQ3xJy0MhNGXZsoSZTgdPqjQphveI7xkkutmQo5V RQ3wScEFadf9+sRXO6hEWuyVJ7HC292JEsRdSAQttv+kL1Vw3CBRIKlUs2ttVtEgc+iy Z53LQwi3/mwVUXYpgO02ButEAKKnlpF249qTToh4dWqX4XhcXgYaMqxMqoyvRteQ+Qaq +Rtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=W6pQQtiooT/ADwr0XYoNIMzL8tlsJR0JaZNF4kZWDrI=; b=NNveMbe9hXUtZW8RRGozrxdxqcHLukCwRanUod3CknSXXEsZDDbvE4yNus9uZJyv/e Wvdm9j2Dt+QuaQwwBrMrIh/zwHlnkuVyPxy9zJVw19nkohNrCnpW/bySzV4eMBRxnP5Y MNIBJuC8dtF2mb9a+/oE1Dm016d9MDjTlCfAErKr5myRxQ5yuVoBAiRRX/sLBAYeKkEJ ByYG06r6zjGL7XBp/g8erT9d5WJxQ70s0nMbCy6gaejrj0N9rCBirasTj9GziSN25YQ1 RXESQfaxi0FzL7UZAUNm53cXv/hpPn156L0Cne6r9XIHmoAbWu0pBqDy1Lu9Fq3m8t+g 3BBg== X-Gm-Message-State: AA+aEWZZbCRvOBOtdM9SeDNQLtPffs0zkXpTyNFN8c/Hk90QX9EUshdx TQrg203+mjd6Gb3DsvGsqyc9NQ== X-Received: by 2002:a17:902:e290:: with SMTP id cf16mr20038663plb.81.1545209895409; Wed, 19 Dec 2018 00:58:15 -0800 (PST) Received: from localhost.localdomain (36-239-224-74.dynamic-ip.hinet.net. [36.239.224.74]) by smtp.gmail.com with ESMTPSA id e188sm21896281pfg.130.2018.12.19.00.58.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Dec 2018 00:58:14 -0800 (PST) From: Axel Lin To: Mark Brown Cc: Andrei Stefanescu , Liam Girdwood , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Axel Lin Subject: [PATCH] regulator: mcp16502: Fix missing n_voltages setting Date: Wed, 19 Dec 2018 16:58:04 +0800 Message-Id: <20181219085804.9601-1-axel.lin@ingics.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The n_voltages setting is not set, fix it. Signed-off-by: Axel Lin --- drivers/regulator/mcp16502.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/regulator/mcp16502.c b/drivers/regulator/mcp16502.c index 25d7b433fafd..ec5b6836a20c 100644 --- a/drivers/regulator/mcp16502.c +++ b/drivers/regulator/mcp16502.c @@ -90,6 +90,7 @@ static unsigned int mcp16502_of_map_mode(unsigned int mode) .ops = &(_ops), \ .type = REGULATOR_VOLTAGE, \ .owner = THIS_MODULE, \ + .n_voltages = MCP16502_VSEL + 1, \ .linear_ranges = _ranges, \ .n_linear_ranges = ARRAY_SIZE(_ranges), \ .of_match = of_match_ptr(_name), \ -- 2.17.1