Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp96589pxb; Mon, 25 Oct 2021 04:39:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwT8f2TlFkXV6jMVD966PDl2BZYYlZJFXQDz2fz4V8eTGK5mvbJzz8UEPNvw4USdyM6Rikv X-Received: by 2002:a17:906:37c7:: with SMTP id o7mr22716758ejc.406.1635161964878; Mon, 25 Oct 2021 04:39:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635161964; cv=none; d=google.com; s=arc-20160816; b=0q0HnIzeUrpCJVEC1pHxMQsmb/hcpmfhTbewqqEzJE25xtmMvcYDl9nOWrQkdRUw/f gWgc6BqzEupTlmrAkOb8EGGxfwEgGMFO6xqPdmuDdGa/d+qCYq6xzaQ8rMcEzGv6jPaa n8s7V0TZbjvoZwkmgda9h7dI2rbl2t6dX/NILMnuycQSTJG2kzdDIKCpVnmXJpCNSF52 Q02+4KYTNbvI6oVRKHtsqj59fOy1b3bTrZx7iqyxR+0N3XROrPvaoviqnDQcfG+u6Erg FLrEld/eZnccbj2HIDydz1noon+TVvNSCuxU292jEsFwpY8h1z/UA2kQVo2M2mS7F28S piIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=qE6SMYoRQzVadKkaxPJOujbvaC++jF3gyfOey8v1upo=; b=JogacH6DI+rPvIJMu6oqDDaz/jkk7lnWvZfthqHCebgSH6Qc+NLFfPZ5eR+26PKK1b FTFoLVW21UjgBpye6WbA/4XKM1leJ+KLRRXhF6Jh0wNahbrZBjC5n9lL/G7L/zfopmBe CaOTAS0XpbVuUb8oBUiPvhtqHABXqYEjMRKfXNCFwtLMEZyFI7ZSzQj561LLH6f+0Kon lYBWjPR9zLp8BPpxN1rJG5kzQ5g1oSX+mRTkcrPkWoAbp3i8FtkwcpUt2e5eL9jp0upN yjhDGpqk/5ssY79bxqT+4QikqiZZt/zQ6HcuoiCIn81KSSfxLrkJrQMN9ekefBFe/soA tYkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alistair23.me header.s=fm2 header.b=Hoev4zvS; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b="kYznf7/6"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dp16si9383364ejc.458.2021.10.25.04.38.41; Mon, 25 Oct 2021 04:39:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@alistair23.me header.s=fm2 header.b=Hoev4zvS; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b="kYznf7/6"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232964AbhJYK42 (ORCPT + 99 others); Mon, 25 Oct 2021 06:56:28 -0400 Received: from new4-smtp.messagingengine.com ([66.111.4.230]:37855 "EHLO new4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232960AbhJYK4Z (ORCPT ); Mon, 25 Oct 2021 06:56:25 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailnew.nyi.internal (Postfix) with ESMTP id D693F58045A; Mon, 25 Oct 2021 06:54:02 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Mon, 25 Oct 2021 06:54:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alistair23.me; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm2; bh=qE6SMYoRQzVad KkaxPJOujbvaC++jF3gyfOey8v1upo=; b=Hoev4zvS9ET4XlsAfsLElP3S1h8/A pnK2HRnC0V7y60HoURLkek+NIkyjiCgyqLQPvrnCYevEzDn5bag2IiGsGtaCBFIO FUVDBWt1bvVTgSXOPSo37mFJ/MxbIGnbdSwkeAnjlb83R1QAj2H0nCAa4l+Nc4xF 7rQ92ugfNkePmnDi5eK5MisMhTaCh2c/0FTV5kGY96x+g+N7I8j2s8zkni8wX4EH Goq5+PezE2j24hoBXTT10DA1hULEA4BaNBxGj/DDq+H0RZrgqAk64+WycyvAVyAh kS2dPbwRgZdCHCvHqP1VAnABz6M1GGuMgXZtj3lDRTude8YtyUxoQ7xvQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=qE6SMYoRQzVadKkaxPJOujbvaC++jF3gyfOey8v1upo=; b=kYznf7/6 TY/wCgYmnnRYUE417/4eqa6irsHlBEka7VUGHAaoU2fcpkeotmx25dQi84qQw+/6 JPKKtJVt1v5x1REhN4+19o3tG+cV2AX4iu/OMtqpseXilCQJuKlJtmcBj5rWkFiX ByIPXJ43nExftd/437UarJfNZmHoyuhv/7sM2RoNp/0rM/mnTGVYusIy5zpwJPgY 7yQrbU/b4hQ2tcRa06rX0Gv+sNa9vpExzyeUHfol3iyhLrKPDiDZxac8+WL8TWby QyyX/zc8BaklQxyjoowV64eGF9t4yt9o9p5O5+K8Sla1uKD+m+IUL75SbYtceBKZ bB2WfQbIoR5SiA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvdefhedgfedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhgggfestdekre dtredttdenucfhrhhomheptehlihhsthgrihhrucfhrhgrnhgtihhsuceorghlihhsthgr ihhrsegrlhhishhtrghirhdvfedrmhgvqeenucggtffrrghtthgvrhhnpeeggedtteejke eggeeugfehueevudegvdetjeeviedugedvtdekffekhedtteduhfenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhishhtrghirhesrghlih hsthgrihhrvdefrdhmvg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 25 Oct 2021 06:53:54 -0400 (EDT) From: Alistair Francis To: robh+dt@kernel.org, kernel@pengutronix.de, lgirdwood@gmail.com, lee.jones@linaro.org, broonie@kernel.org Cc: s.hauer@pengutronix.de, rui.zhang@intel.com, linux-hwmon@vger.kernel.org, linux-arm-kernel@lists.infradead.org, amitk@kernel.org, shawnguo@kernel.org, alistair23@gmail.com, devicetree@vger.kernel.org, linux-imx@nxp.com, andreas@kemnade.info, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Alistair Francis Subject: [PATCH v14 4/8] regulator: sy7636a: Remove requirement on sy7636a mfd Date: Mon, 25 Oct 2021 20:53:05 +1000 Message-Id: <20211025105309.37942-5-alistair@alistair23.me> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211025105309.37942-1-alistair@alistair23.me> References: <20211025105309.37942-1-alistair@alistair23.me> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Alistair Francis --- drivers/regulator/Kconfig | 1 - drivers/regulator/sy7636a-regulator.c | 9 ++++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/regulator/Kconfig b/drivers/regulator/Kconfig index 4fd13b06231f..21077cb14625 100644 --- a/drivers/regulator/Kconfig +++ b/drivers/regulator/Kconfig @@ -1199,7 +1199,6 @@ config REGULATOR_STW481X_VMMC config REGULATOR_SY7636A tristate "Silergy SY7636A voltage regulator" - depends on MFD_SY7636A help This driver supports Silergy SY3686A voltage regulator. diff --git a/drivers/regulator/sy7636a-regulator.c b/drivers/regulator/sy7636a-regulator.c index 8360b3947ead..29fc27c2cda0 100644 --- a/drivers/regulator/sy7636a-regulator.c +++ b/drivers/regulator/sy7636a-regulator.c @@ -7,11 +7,14 @@ // Authors: Lars Ivar Miljeteig // Alistair Francis +#include +#include +#include #include #include +#include +#include #include -#include -#include struct sy7636a_data { struct regmap *regmap; @@ -70,7 +73,7 @@ static const struct regulator_desc desc = { static int sy7636a_regulator_probe(struct platform_device *pdev) { - struct regmap *regmap = dev_get_drvdata(pdev->dev.parent); + struct regmap *regmap = dev_get_regmap(pdev->dev.parent, NULL); struct regulator_config config = { }; struct regulator_dev *rdev; struct gpio_desc *gdp; -- 2.31.1