From patchwork Tue Aug 31 16:18:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 504706 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=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable 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 A1723C4320A for ; Tue, 31 Aug 2021 16:18:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 851C2610D1 for ; Tue, 31 Aug 2021 16:18:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239916AbhHaQTn (ORCPT ); Tue, 31 Aug 2021 12:19:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239733AbhHaQTm (ORCPT ); Tue, 31 Aug 2021 12:19:42 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97B18C061575 for ; Tue, 31 Aug 2021 09:18:46 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id k13so5322339lfv.2 for ; Tue, 31 Aug 2021 09:18:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=a90IV7Egq/r+3uDHoTAyGeC9Z9/mMbft4v1gvx1iTU4=; b=C2UzrMOR6kUCej434fOZWsrMKiKkqdvr7GsK3WyLzBeU+LMCRj/3hMIOnE4zAo6q1B Mh1NZIDg9kqx8D9qxmpal7VDmXb2p2qeCNBLGLMwYze4PAvnc5mHbKB5rgJHmtMVKSdz W1W00LGVdI/Mpl63aPGO4xVZPaP5K8lZ/NQj6j4Uz7Bh2UlM8TdBek9sAXJXLyWtFdmO 57vgC0XPXYpqWYtSeSZgWtBfZzK7vpfBqOIRCVCGYXu1zJCE29zMr+0qsBbEiFsvvCVK payeP93XdbCpHVeU0nW9pwQoic+nzObFal49gyJcbtx2Rdida7Yx0xXt2sUbromlEVEk roRw== 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:mime-version :content-transfer-encoding; bh=a90IV7Egq/r+3uDHoTAyGeC9Z9/mMbft4v1gvx1iTU4=; b=UQg0eoIQ+SMExGX8Xi1c3ZUQU7F1LVQbJgCscQS/61Z1h6NqocaI4jIetsphkvdLsC P74LUqbpbg++DN/rcNxkHnsXOYnoURDYcV8Awa2eoXJRL1YvAz04rpJxDOjtVPaNe2HN asiCOVNWB6wLdyFD2dmt3Hroa+MqZxL+QZoNw9HeqFRqHdFnTTBx0Rs9P6yVOwxQSQEg DwB4oOL+swsfWVaGrVU5pGtIOUE4jvd4KG36unlYPdeEz7+w750Vi21ciMSBZBwLX1FL D+TwCiKabaAHe1tKcdIRIkqRhwncSlj85R76gYeBK2Q7WNP0fERtKPeKFUGRivPeX0jv pasg== X-Gm-Message-State: AOAM532shsnYmcHC3ZGQl06d8U30EZjVwOjxxzOyPmO2YzBMHrbfxK96 xCz++eTAFYnVGPpRSzFWtgMqRQ== X-Google-Smtp-Source: ABdhPJzifFsef3GDCXzguVsyIROXhZRUe/DucjCQcBVM729U62bC3OXOVxEZbc/hRih0rPLr3Vq41g== X-Received: by 2002:a19:ac42:: with SMTP id r2mr21676423lfc.167.1630426725009; Tue, 31 Aug 2021 09:18:45 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id q11sm2229921ljp.91.2021.08.31.09.18.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Aug 2021 09:18:44 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Liam Girdwood , Mark Brown Cc: Vinod Koul , linux-arm-msm@vger.kernel.org, Manivannan Sadhasivam , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] regulator: qcom-rpmh-regulator: fix pm8009-1 ldo7 resource name Date: Tue, 31 Aug 2021 19:18:43 +0300 Message-Id: <20210831161843.1044580-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Fix a typo in the pm8009 LDO7 declaration, it uses resource name ldo%s6 instead of ldo%s7. Fixes: 951384cabc5d ("regulator: qcom-rpmh-regulator: add pm8009-1 chip revision") Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/dp/dp_drm.c | 6 ++++++ drivers/regulator/qcom-rpmh-regulator.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/dp/dp_drm.c b/drivers/gpu/drm/msm/dp/dp_drm.c index 764f4b81017e..486a653e2fea 100644 --- a/drivers/gpu/drm/msm/dp/dp_drm.c +++ b/drivers/gpu/drm/msm/dp/dp_drm.c @@ -114,6 +114,11 @@ static enum drm_mode_status dp_connector_mode_valid( return dp_display_validate_mode(dp_disp, mode->clock); } +static struct drm_encoder *dp_connector_best_encoder(struct drm_connector *connector) +{ + return to_dp_connector(connector)->dp_display->encoder; +} + static const struct drm_connector_funcs dp_connector_funcs = { .detect = dp_connector_detect, .fill_modes = drm_helper_probe_single_connector_modes, @@ -126,6 +131,7 @@ static const struct drm_connector_funcs dp_connector_funcs = { static const struct drm_connector_helper_funcs dp_connector_helper_funcs = { .get_modes = dp_connector_get_modes, .mode_valid = dp_connector_mode_valid, + .best_encoder = dp_connector_best_encoder, }; /* connector initialization */ diff --git a/drivers/regulator/qcom-rpmh-regulator.c b/drivers/regulator/qcom-rpmh-regulator.c index 6cca910a76de..7f458d510483 100644 --- a/drivers/regulator/qcom-rpmh-regulator.c +++ b/drivers/regulator/qcom-rpmh-regulator.c @@ -991,7 +991,7 @@ static const struct rpmh_vreg_init_data pm8009_1_vreg_data[] = { RPMH_VREG("ldo4", "ldo%s4", &pmic5_nldo, "vdd-l4"), RPMH_VREG("ldo5", "ldo%s5", &pmic5_pldo, "vdd-l5-l6"), RPMH_VREG("ldo6", "ldo%s6", &pmic5_pldo, "vdd-l5-l6"), - RPMH_VREG("ldo7", "ldo%s6", &pmic5_pldo_lv, "vdd-l7"), + RPMH_VREG("ldo7", "ldo%s7", &pmic5_pldo_lv, "vdd-l7"), {} };