From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EBE07C56201 for ; Wed, 11 Nov 2020 09:07:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8E806206FB for ; Wed, 11 Nov 2020 09:07:50 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="s6ROAJMO" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726569AbgKKJHs (ORCPT ); Wed, 11 Nov 2020 04:07:48 -0500 Received: from esa2.microchip.iphmx.com ([68.232.149.84]:33345 "EHLO esa2.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726514AbgKKJH3 (ORCPT ); Wed, 11 Nov 2020 04:07:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1605085649; x=1636621649; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=2XK5086b4/MoCuZ+5zlGoPQBBXPieOKx5f8lfuzIdtM=; b=s6ROAJMOA/2L7OBSzOIV7M3yVfSwrLGdBuJBEwfrqCsz3uwnvjKRHzNP RF/PhTwqIF5b8P4+K/9jL1cpCzGXt0bRT60f5yHbeG5/YjsePhk5hD7zY qrzPZkYEOaBgHLksZG6cLNR9xlTEgqMiBBK2P9tPl/92OhJ/gyEfiTcso ASiN26TVZ+CX11Ay7Q/s2p422Ul1qqSsFgykMyfJOGAaCEBIP3CPJDFg8 RfydUeDXDqlWpFhn0tL/AjlN0JwQARPGihlN1gHBaRU4TSx8ub177Elj4 H4RE7uHw8ClDKZtyYLb434BnlsGsHlbVEOkleA/mPutnaq+QHYQjjhgos A==; IronPort-SDR: T/bf+MrKpolLffhcRK8MsDJGib57H4fMZfNyUUoWL9MaifZIaJWPFKO9QRzcRi9csX9Iw1XXZu FwHZt55pfzEtKhtWiGmZaUxy4XOOTvf5FWAEbqNt2CgQPlgBaKdrcrMIFcsCxNkpgqSqL7XgZl ITVR8nohICEYVaA6ZWSqYIuVruidIVT5Yru7D18DVD8eYHujfhbtvviovq61iGqA0tKtrnJ2th hp4HKUnuiPKD2rhPWIhpITPvg/v/VJFtRoRrw6/tWGKkmZa7EIm29Pynq3zBJIZIldzbF1Knzx wzk= X-IronPort-AV: E=Sophos;i="5.77,469,1596524400"; d="scan'208";a="95887113" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 11 Nov 2020 02:07:28 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Wed, 11 Nov 2020 02:07:28 -0700 Received: from m18063-ThinkPad-T460p.microchip.com (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.1979.3 via Frontend Transport; Wed, 11 Nov 2020 02:07:24 -0700 From: Claudiu Beznea To: , CC: , , , , , , Claudiu Beznea Subject: [PATCH v2 3/6] regulator: mcp16502: add linear_min_sel Date: Wed, 11 Nov 2020 11:06:15 +0200 Message-ID: <1605085578-6783-4-git-send-email-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1605085578-6783-1-git-send-email-claudiu.beznea@microchip.com> References: <1605085578-6783-1-git-send-email-claudiu.beznea@microchip.com> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Selectors b/w zero and VDD_LOW_SEL are not valid. Use linear_min_sel. Fixes: 919261c03e7ca ("regulator: mcp16502: add regulator driver for MCP16502") Signed-off-by: Claudiu Beznea --- drivers/regulator/mcp16502.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/regulator/mcp16502.c b/drivers/regulator/mcp16502.c index 6d0ad74935b3..ab78f831f5bf 100644 --- a/drivers/regulator/mcp16502.c +++ b/drivers/regulator/mcp16502.c @@ -93,6 +93,7 @@ static unsigned int mcp16502_of_map_mode(unsigned int mode) .owner = THIS_MODULE, \ .n_voltages = MCP16502_VSEL + 1, \ .linear_ranges = _ranges, \ + .linear_min_sel = VDD_LOW_SEL, \ .n_linear_ranges = ARRAY_SIZE(_ranges), \ .of_match = of_match_ptr(_name), \ .of_map_mode = mcp16502_of_map_mode, \ -- 2.7.4 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8CB23C4742C for ; Wed, 11 Nov 2020 09:09:06 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 11411206E3 for ; Wed, 11 Nov 2020 09:09:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="mgZqhaX3"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="s6ROAJMO" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 11411206E3 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-ID:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=+kwv0bC+5FqOWMvcS3+wLN6YkHlS1RMuyeKx2Ug5h2o=; b=mgZqhaX34OF+MiwIbJV5ekUun F8DlFOD585IUg2yE9qN+oRseqwKcyFo+l65uGKfprwuogqLSJ/p5CCd8e5RMx/9kxfHlwz83z8qei +KMj31cD2Hw7FHfP00WHbO1mD0TLxiYrmuiNIvVIaJEKlxvgCjXBOUmc9LqxiZTiJfkQ4KBzK05E2 qKfWUxV0Z4ZwKUm5A+bpxP41VFTDyzDU+CJ7Ru+cTHsNFgr09BeNKUrL9VjX3zGmOt+0sn0QGfLQZ racy0nFvjQan70U06ZVBFcPnTKY8bmHmJpndtvCDayBLHZ1TcRXUkUT3yvpmZEl9YodwP/ysKcBDu g0XkyGOTg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kcm6I-00041C-OG; Wed, 11 Nov 2020 09:07:34 +0000 Received: from esa2.microchip.iphmx.com ([68.232.149.84]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kcm6D-0003ze-8e for linux-arm-kernel@lists.infradead.org; Wed, 11 Nov 2020 09:07:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1605085649; x=1636621649; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=2XK5086b4/MoCuZ+5zlGoPQBBXPieOKx5f8lfuzIdtM=; b=s6ROAJMOA/2L7OBSzOIV7M3yVfSwrLGdBuJBEwfrqCsz3uwnvjKRHzNP RF/PhTwqIF5b8P4+K/9jL1cpCzGXt0bRT60f5yHbeG5/YjsePhk5hD7zY qrzPZkYEOaBgHLksZG6cLNR9xlTEgqMiBBK2P9tPl/92OhJ/gyEfiTcso ASiN26TVZ+CX11Ay7Q/s2p422Ul1qqSsFgykMyfJOGAaCEBIP3CPJDFg8 RfydUeDXDqlWpFhn0tL/AjlN0JwQARPGihlN1gHBaRU4TSx8ub177Elj4 H4RE7uHw8ClDKZtyYLb434BnlsGsHlbVEOkleA/mPutnaq+QHYQjjhgos A==; IronPort-SDR: T/bf+MrKpolLffhcRK8MsDJGib57H4fMZfNyUUoWL9MaifZIaJWPFKO9QRzcRi9csX9Iw1XXZu FwHZt55pfzEtKhtWiGmZaUxy4XOOTvf5FWAEbqNt2CgQPlgBaKdrcrMIFcsCxNkpgqSqL7XgZl ITVR8nohICEYVaA6ZWSqYIuVruidIVT5Yru7D18DVD8eYHujfhbtvviovq61iGqA0tKtrnJ2th hp4HKUnuiPKD2rhPWIhpITPvg/v/VJFtRoRrw6/tWGKkmZa7EIm29Pynq3zBJIZIldzbF1Knzx wzk= X-IronPort-AV: E=Sophos;i="5.77,469,1596524400"; d="scan'208";a="95887113" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 11 Nov 2020 02:07:28 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Wed, 11 Nov 2020 02:07:28 -0700 Received: from m18063-ThinkPad-T460p.microchip.com (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.1979.3 via Frontend Transport; Wed, 11 Nov 2020 02:07:24 -0700 From: Claudiu Beznea To: , Subject: [PATCH v2 3/6] regulator: mcp16502: add linear_min_sel Date: Wed, 11 Nov 2020 11:06:15 +0200 Message-ID: <1605085578-6783-4-git-send-email-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1605085578-6783-1-git-send-email-claudiu.beznea@microchip.com> References: <1605085578-6783-1-git-send-email-claudiu.beznea@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201111_040729_478824_D9E6F180 X-CRM114-Status: GOOD ( 11.88 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: axel.lin@ingics.com, s.hauer@pengutronix.de, linux-kernel@vger.kernel.org, Claudiu Beznea , ttynkkynen@nvidia.com, linus.walleij@linaro.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Selectors b/w zero and VDD_LOW_SEL are not valid. Use linear_min_sel. Fixes: 919261c03e7ca ("regulator: mcp16502: add regulator driver for MCP16502") Signed-off-by: Claudiu Beznea --- drivers/regulator/mcp16502.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/regulator/mcp16502.c b/drivers/regulator/mcp16502.c index 6d0ad74935b3..ab78f831f5bf 100644 --- a/drivers/regulator/mcp16502.c +++ b/drivers/regulator/mcp16502.c @@ -93,6 +93,7 @@ static unsigned int mcp16502_of_map_mode(unsigned int mode) .owner = THIS_MODULE, \ .n_voltages = MCP16502_VSEL + 1, \ .linear_ranges = _ranges, \ + .linear_min_sel = VDD_LOW_SEL, \ .n_linear_ranges = ARRAY_SIZE(_ranges), \ .of_match = of_match_ptr(_name), \ .of_map_mode = mcp16502_of_map_mode, \ -- 2.7.4 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel