From patchwork Fri Aug 9 07:36:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 170892 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp9635301ile; Fri, 9 Aug 2019 00:37:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqzDgjO2iF+fjo5SKkTFR69SblZh+4aVERKPNEfM52YZ/+uAuRFs/qfjcTsm5k8TDE1/3JCV X-Received: by 2002:a17:902:b591:: with SMTP id a17mr17017594pls.96.1565336279788; Fri, 09 Aug 2019 00:37:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565336279; cv=none; d=google.com; s=arc-20160816; b=jsxXi3X9xWv6Waeki+iuTsdp5KZXdMJc/m/ecHyZQzHsfYZ+f/0bT+Uua/ksOhbHgX txdWtCuzNjnhepUaYD4cittg+NEpKCa7Mw62+CQm26/tpFKS1SLCiNUCcP28ZK7yNCuS 6MkRQnoASCrQT+MjnCENdbulgwx92eQF0lN29jctgi+cdajxYReVvi5+6KWMkcDwTHGX pCMWcEyCblWlRRBiLMe+1SRIC/k1aZuhgyRGDxSIUiiATNPSJlvMNLrmT+hwfSAZZBo5 gpSKzEnfsoiEJ6XRqw44iTRH4dTardVbYHIpg2T2QFuPKDEuv4yQ6P6vGjfBB3QOkjYx LE9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=cUZYcqVUDIjqy5V6IM1GsXWyaFGBsxgWHVhH53okFow=; b=C0XdgYkltvSdotrHKNZ+x5cwIupllBMSF+49E4xQH87R68R30HAZmjNCywCQPMktz2 PvQC3XEB83Pmu7lITYWQsth69TehZakvmxFzMkwKban3Z9/XlJkM+Lj7moLz8kOfpSQR YBD8dJ0TAzBel43+vrfz5IbAol6hFKCo3s3TT5HwinTj2m2Vza2ysu9s5o4FnAjIPLrN wFMWICE70j0sioLbHnKsdct9ZH434Iye9ySpvLjPCmJkERG+v+kAGtkLUCA6PWx+0Yl1 NG8kBgyNTQ8uWZKsWPrqxAHiriAWZdcb9xAFpk8WMhYhUdr3zETnZEaY1330fgSzvAtg EMNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="EWM/JM1+"; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b21si52196460plz.21.2019.08.09.00.37.59; Fri, 09 Aug 2019 00:37:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=@kernel.org header.s=default header.b="EWM/JM1+"; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405914AbfHIHh7 (ORCPT + 8 others); Fri, 9 Aug 2019 03:37:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:35826 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725980AbfHIHh6 (ORCPT ); Fri, 9 Aug 2019 03:37:58 -0400 Received: from localhost.localdomain (unknown [122.167.65.92]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 167E42173E; Fri, 9 Aug 2019 07:37:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565336277; bh=xJ06Rw2bD98VbzbDaAf9MrgpGSViWRaA7VrMXNT/U6U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EWM/JM1+NhPmxd8fC6vvqkbglJ7pLii3xhqL4DpFDZJxPEhilA7zXwIQbZchu4vT2 INu6QlP6AGqqhx2zmI1IdxcqxMDJXRjm4jIBHNQJhEgAMX/IvkPFNy8pQh4Fv3FTCf 2SsjXOW9jSdWhkN8BIHe6DVTbI3dHAvUDsjT3kCw= From: Vinod Koul To: Mark Brown Cc: linux-arm-msm@vger.kernel.org, Bjorn Andersson , Vinod Koul , Andy Gross , Liam Girdwood , Rob Herring , Mark Rutland , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 2/4] regulator: qcom-rpmh: Sort the compatibles Date: Fri, 9 Aug 2019 13:06:14 +0530 Message-Id: <20190809073616.1235-2-vkoul@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190809073616.1235-1-vkoul@kernel.org> References: <20190809073616.1235-1-vkoul@kernel.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org It helps to keep sorted order for compatibles, so sort them Suggested-by: Bjorn Andersson Signed-off-by: Vinod Koul --- drivers/regulator/qcom-rpmh-regulator.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) -- 2.20.1 diff --git a/drivers/regulator/qcom-rpmh-regulator.c b/drivers/regulator/qcom-rpmh-regulator.c index 693ffec62f3e..0ef2716da3bd 100644 --- a/drivers/regulator/qcom-rpmh-regulator.c +++ b/drivers/regulator/qcom-rpmh-regulator.c @@ -878,18 +878,14 @@ static int rpmh_regulator_probe(struct platform_device *pdev) } static const struct of_device_id rpmh_regulator_match_table[] = { - { - .compatible = "qcom,pm8998-rpmh-regulators", - .data = pm8998_vreg_data, - }, - { - .compatible = "qcom,pmi8998-rpmh-regulators", - .data = pmi8998_vreg_data, - }, { .compatible = "qcom,pm8005-rpmh-regulators", .data = pm8005_vreg_data, }, + { + .compatible = "qcom,pm8009-rpmh-regulators", + .data = pm8009_vreg_data, + }, { .compatible = "qcom,pm8150-rpmh-regulators", .data = pm8150_vreg_data, @@ -899,8 +895,12 @@ static const struct of_device_id rpmh_regulator_match_table[] = { .data = pm8150l_vreg_data, }, { - .compatible = "qcom,pm8009-rpmh-regulators", - .data = pm8009_vreg_data, + .compatible = "qcom,pm8998-rpmh-regulators", + .data = pm8998_vreg_data, + }, + { + .compatible = "qcom,pmi8998-rpmh-regulators", + .data = pmi8998_vreg_data, }, {} }; From patchwork Fri Aug 9 07:36:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 170893 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp9635373ile; Fri, 9 Aug 2019 00:38:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqxZVeIQHOoNDE7mH/+ajq/tzxYLG1L2BIqsUmTEgj02AcPUPNa4h3Ed/B0+elbI3WAvNrA9 X-Received: by 2002:aa7:9a8a:: with SMTP id w10mr19844714pfi.66.1565336284421; Fri, 09 Aug 2019 00:38:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565336284; cv=none; d=google.com; s=arc-20160816; b=QtSi+04LYiOWIr2Am48MGYt0lGeTmxnhk9/5TI7SnXJDh6Cept/gKrUcxEng7pNy1H u6Q49kDiCvyvi3OdxtWVVMLkFNG71WNnfujOwdgp/SfhKSx7UL5rpctenw8Ms2dYttyQ 9prxOlhTfjgMFR7cv6x4D1lBPol7Wzj3X8LwljzT2LU7rWPvtckdn7QccLlSVfcq//NG v1QKQtXv9iAdyqkz9zv2Wllb9VeyZEnAJdvp+X9tXeuVr3WQQSS+ASjNKXFhQ0CVyxeK oViOm53m3F+z10o2cg9OLAThjo5WoqCIqNL5vXvrlSAFxjSlzIrWw00vCobqsLDdWwc6 PQww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=JP3IWBdRZ2WnKt14wbypic9gzInpngyxcv0NQDWy5X0=; b=0XDyZ3ZLAO8M2o9eFmk+n76ifWxewlT6t6KxkQkJ/5LJSXpqlPhG4XcP+2zEFgLGaC jZ6ezAioyoNmev04UjdXMbO4jKlCE1B0ewk3pqMms79JA460jgk9OqS/H5b/KlFoQyhC N/zWloXUs2aHUhhoo/MQKJ7ntWq175OO8gyiMyuIQTo5p8fO73dwSSRtwYJhXbmywWY2 yZNQn+TfmiCFA8+IrP3Ao+pGh0NsMF01v9hNtpQbT8qrOv7b46QES1lF3YYNtj7v8w0R R1GsjnFddWVLj4ckRMlDs7Nrc8LJmQcniQfJ+eSfYpF5DaOqHvKEubi4Jn33LIjmPbqO AYzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fLw7z2SP; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m17si23738743pgc.461.2019.08.09.00.38.04; Fri, 09 Aug 2019 00:38:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=@kernel.org header.s=default header.b=fLw7z2SP; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405925AbfHIHiC (ORCPT + 8 others); Fri, 9 Aug 2019 03:38:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:35904 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725980AbfHIHiC (ORCPT ); Fri, 9 Aug 2019 03:38:02 -0400 Received: from localhost.localdomain (unknown [122.167.65.92]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7934921743; Fri, 9 Aug 2019 07:37:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565336281; bh=eEfBiOqceaUs54hxS2mvioQdvqdD5U2JbF1RwFVOym8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fLw7z2SPjZQKd1d+HKGa5ZwRjCu6Zr2wTlAW4oiDIkZYylXi6DSnlHqwCQGgjQQhu tV8FtDnpsRoBD/6INIe/YUPr69WtcRT/6n0IC0v4gr741LzI5ABb1wTZt1KD0fBKrO Z8zWCVkDVzjg52Hy6n2ITO9CwaOTvcIIlRqHm55w= From: Vinod Koul To: Mark Brown Cc: linux-arm-msm@vger.kernel.org, Bjorn Andersson , Vinod Koul , Andy Gross , Liam Girdwood , Rob Herring , Mark Rutland , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 3/4] regulator: qcom-rpmh: Fix pmic5_bob voltage count Date: Fri, 9 Aug 2019 13:06:15 +0530 Message-Id: <20190809073616.1235-3-vkoul@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190809073616.1235-1-vkoul@kernel.org> References: <20190809073616.1235-1-vkoul@kernel.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org pmic5_bob voltages count is 136 [0,135] so update it Signed-off-by: Vinod Koul --- drivers/regulator/qcom-rpmh-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.1 Reviewed-by: Bjorn Andersson diff --git a/drivers/regulator/qcom-rpmh-regulator.c b/drivers/regulator/qcom-rpmh-regulator.c index 0ef2716da3bd..391ed844a251 100644 --- a/drivers/regulator/qcom-rpmh-regulator.c +++ b/drivers/regulator/qcom-rpmh-regulator.c @@ -698,7 +698,7 @@ static const struct rpmh_vreg_hw_data pmic5_bob = { .regulator_type = VRM, .ops = &rpmh_regulator_vrm_bypass_ops, .voltage_range = REGULATOR_LINEAR_RANGE(300000, 0, 135, 32000), - .n_voltages = 135, + .n_voltages = 136, .pmic_mode_map = pmic_mode_map_pmic4_bob, .of_map_mode = rpmh_regulator_pmic4_bob_of_map_mode, };