From patchwork Wed Feb 14 09:33:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= X-Patchwork-Id: 13556204 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 96DB3C48BC4 for ; Wed, 14 Feb 2024 09:40:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=w1gosVQcgeqgr584nUCEmBcmDC/MtLw0N6IW0mm1/Zw=; b=HquPSvAodmTFkH wo2a+cHM925ivNPSpQxQVG4FqqG+LOBBE6jj2u5c85hPbivwALL6vJdSrqoQxKwsGqrKcvt9PjlcE J4tPvI+GSJc9fSyPiJ+Bbo+Z+nwJ2wClmkAx/3U4gKK9qe+VzviqxPo87bKnvnpkZCKh5rI7m5oPB Yt+CWLCzWmEafXN0cFC7j8Y6qOI3z2mEL6tPahYgP/ttbiNmZBD9tURdXLOLXx68qLmk3Ol//iHci UDR5JN03S6HzvWO+OcSTatx1LJ3sIg1wXzJYiwLoVsDXurm97C/S04dvPnj4MLhoa2x1+u7XcjZjF hSflJC4W3zWX80EvctpQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1raBkb-0000000COVY-3oG0; Wed, 14 Feb 2024 09:40:21 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1raBfb-0000000CKx7-25k9 for linux-arm-kernel@bombadil.infradead.org; Wed, 14 Feb 2024 09:35:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender :Reply-To:Content-ID:Content-Description; bh=hijiZSmKK8/xensJkuR9JZMRjLjdWZ+PS+PEIaIhvfY=; b=WURsWrlM0nPfYw7MBmOASsD9Q4 NC3wv2Dcfjs5lPDdm9te86o35/Zm3e6Zm+Oxp46P1vSPM+n9yrg3/dcdRXVCL0xfPwsh6aw7c+qPh lJXnJ1LARs0vLZNenR20DlHGo+tm3CjQKu6+ZpF46Nl81bcYclzQScKj8KwT0o4YzIqVsVQ+eX12I Lh1bLcWbBOL17CynmoQFZtE06Q6GKBITKwLePituusmBYqESyR08d/VdTVI+fRaw9YP8oSS4FbyiU 1A13vime0CkbZqFItJFq8S2qH4ziSD1lDH/hbiSbG7ZbcWZVkOqWCEDvV4bj5UbXjVkK9UMS4Ao+V xmzLnsRQ==; Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by casper.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1raBfS-0000000GDl8-3NpS for linux-arm-kernel@lists.infradead.org; Wed, 14 Feb 2024 09:35:10 +0000 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1raBfA-0006A1-G0; Wed, 14 Feb 2024 10:34:44 +0100 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1raBf6-000fHs-DH; Wed, 14 Feb 2024 10:34:40 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1raBf6-004Y9m-15; Wed, 14 Feb 2024 10:34:40 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: linux-pwm@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, kernel@pengutronix.de Subject: [PATCH v6 147/164] pwm: vt8500: Make use of pwmchip_parent() accessor Date: Wed, 14 Feb 2024 10:33:14 +0100 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1440; i=u.kleine-koenig@pengutronix.de; h=from:subject:message-id; bh=3B/r01Rwt+UpfKUdprpNwpdkLZbZZF74SsJaxMTgaIQ=; b=owEBbQGS/pANAwAKAY+A+1h9Ev5OAcsmYgBlzIjzD/xlcSPQXypy6w9oOawV6+HN83LLUeSew mwiR7QytKOJATMEAAEKAB0WIQQ/gaxpOnoeWYmt/tOPgPtYfRL+TgUCZcyI8wAKCRCPgPtYfRL+ TunzB/0aK/XGscWyd87L1OKzi3lKLC4rIHujMBlVR5nG42obyi6agVhWVRHI9os/Gx8D6MZtOkB SzNwW6mA40v8ZnRLhieHRooWW8o6WMglcBTRnTtNK9zhc7vXpaINmljRAyKRHpK7BpjcKk7oVYk LUDet1UiPmGfwxsrkxD8pi4W95t0HJvlI+F690wQuA1oYhkdtOvEBqMHncZL57VugKKPb2Yonu6 uJzGuSEQ8NHHzESwObNmMJ8ghos7NNSzoc+/9tgjeEUMtC7U38RtZL6k73vcxku1cDgmvhKVpdV jS6rJVtmuw0OeApoaTQWwSWm62s4vHo7WF1NqI3zJP+wg3tu X-Developer-Key: i=u.kleine-koenig@pengutronix.de; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-arm-kernel@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240214_093504_310080_00A185C4 X-CRM114-Status: GOOD ( 11.22 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org struct pwm_chip::dev is about to change. To not have to touch this driver in the same commit as struct pwm_chip::dev, use the accessor function provided for exactly this purpose. Signed-off-by: Uwe Kleine-König --- drivers/pwm/pwm-vt8500.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/pwm/pwm-vt8500.c b/drivers/pwm/pwm-vt8500.c index 6da9b8f88afc..fb4dbc88b0a3 100644 --- a/drivers/pwm/pwm-vt8500.c +++ b/drivers/pwm/pwm-vt8500.c @@ -63,7 +63,7 @@ static inline void vt8500_pwm_busy_wait(struct pwm_chip *chip, int nr, u8 bitmas cpu_relax(); if (unlikely(!loops)) - dev_warn(chip->dev, "Waiting for status bits 0x%x to clear timed out\n", + dev_warn(pwmchip_parent(chip), "Waiting for status bits 0x%x to clear timed out\n", mask); } @@ -78,7 +78,7 @@ static int vt8500_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, err = clk_enable(vt8500->clk); if (err < 0) { - dev_err(chip->dev, "failed to enable clock\n"); + dev_err(pwmchip_parent(chip), "failed to enable clock\n"); return err; } @@ -129,7 +129,7 @@ static int vt8500_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) err = clk_enable(vt8500->clk); if (err < 0) { - dev_err(chip->dev, "failed to enable clock\n"); + dev_err(pwmchip_parent(chip), "failed to enable clock\n"); return err; }