From patchwork Tue Aug 13 08:19:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 13761539 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 56F04C52D7C for ; Tue, 13 Aug 2024 08:21:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=eM5GJdw2liyDiBqk20MzWSAss6RVd1cYc5EGBXwPSV0=; b=KMHtm/MwSacUImW1lRjvJjpe3n xCzgPVq3/21XvDJUPWd5KnhWPs+e4IPd3laDCd71qXCjHZUIBAWbk3MLQ2sgXY1NrxCm+Kmqhc2g+ dG8fBWMCiEOw+iuaivToNdJyFc66gA/IxzYevqDpQGK3JRoOCd/kHzEMJq//v1WyD5NSjIo/pa2Yj Xs5X92y9iAQ2myyXogyQ28aTbqLsqCrT8VfmOC+d4P9zESk2FHhMC5CZxynB+CFhXqJEsWZck70AJ hG5wEgHCSemlPJ9XiWi37uE+UjN3KAQBz/L1JWJuWVHpn4NETLGAT/GXVAJvD2geFPb58cPrMWnE9 VW4JQxcQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdmm4-00000002rwv-2sWN; Tue, 13 Aug 2024 08:21:01 +0000 Received: from mgamail.intel.com ([192.198.163.12]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdmlM-00000002rke-2xNk; Tue, 13 Aug 2024 08:20:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1723537217; x=1755073217; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=k0wWO84T3G2KXqLOeqWQvKS+xPlgf/sdldpOl2wRm/Q=; b=FGp8CP3aScY4bwBRsYX4O2jzZRuuUns//vu+Y8oco+kE9v4LeUGlmCuQ ZvbBb1qHunWkJvzNSql+It/GZ3grwSgWqJk6cBxzo1DG1rpaH0SZOi/cn DwO884i/GmgJeezJRAdyN0EMOs702KEt1Y73anKv7hkBjYFsvXUDExLkG 5q3ttOMq+iBESXJ8wpRWtxuttsOMNuVg443TZI5OcNwiNeUKXikku0cNk lQrfHWR99CEndI0Z1KWs0N5+xHut4lnIZSuHpzcYHVM3Wli0VutyfjhKq k5oOGabFIGF8/NnD/ooAEMzMZXcApT7dens8xYXi7YZA//X5j15QDmj/Q A==; X-CSE-ConnectionGUID: 0yc8haYeR5ioHo1UxfRCtg== X-CSE-MsgGUID: HInL5KxPSXqlo54zDYhBTQ== X-IronPort-AV: E=McAfee;i="6700,10204,11162"; a="25549022" X-IronPort-AV: E=Sophos;i="6.09,285,1716274800"; d="scan'208";a="25549022" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Aug 2024 01:20:16 -0700 X-CSE-ConnectionGUID: NDKVixBiTjezY2HhuE5Uqw== X-CSE-MsgGUID: m0ajqOPKRPeuEbShamisaQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,285,1716274800"; d="scan'208";a="62750806" Received: from black.fi.intel.com ([10.237.72.28]) by fmviesa003.fm.intel.com with ESMTP; 13 Aug 2024 01:20:13 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 178FF86D; Tue, 13 Aug 2024 11:20:12 +0300 (EEST) From: Andy Shevchenko To: Greg Kroah-Hartman , Andy Shevchenko , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org Cc: Jiri Slaby , Florian Fainelli , Broadcom internal kernel review list , Ray Jui , Scott Branden Subject: [PATCH v2 1/1] serial: 8250_bcm2835aux: Switch to DEFINE_SIMPLE_DEV_PM_OPS() Date: Tue, 13 Aug 2024 11:19:04 +0300 Message-ID: <20240813081954.1408792-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.43.0.rc1.1336.g36b5255a03ac MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240813_012016_782389_D16FFC24 X-CRM114-Status: GOOD ( 11.13 ) 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 The definition of the PM operations opens code the existing macro, replace it with the DEFINE_SIMPLE_DEV_PM_OPS() for setting the driver's PM routines. Signed-off-by: Andy Shevchenko --- v2: fixed the copy'n'pasted commit message text (Stefan) drivers/tty/serial/8250/8250_bcm2835aux.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/tty/serial/8250/8250_bcm2835aux.c b/drivers/tty/serial/8250/8250_bcm2835aux.c index 36e2bb34d82b..829abef2564d 100644 --- a/drivers/tty/serial/8250/8250_bcm2835aux.c +++ b/drivers/tty/serial/8250/8250_bcm2835aux.c @@ -245,9 +245,7 @@ static int bcm2835aux_resume(struct device *dev) return 0; } -static const struct dev_pm_ops bcm2835aux_dev_pm_ops = { - SYSTEM_SLEEP_PM_OPS(bcm2835aux_suspend, bcm2835aux_resume) -}; +static DEFINE_SIMPLE_DEV_PM_OPS(bcm2835aux_dev_pm_ops, bcm2835aux_suspend, bcm2835aux_resume); static struct platform_driver bcm2835aux_serial_driver = { .driver = {