From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from rere.qmqm.pl (rere.qmqm.pl [91.227.64.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 637FF34D4E9 for ; Sat, 22 Aug 2026 10:24:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.227.64.183 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787394265; cv=none; b=Ah4tpzt8wpYhI50q3dyjQUaiPxqvbwBJo/z4ERLvkSs/4y1J9o0sU1qDQPWG0f67WAfe8tyPulikez0WlLZDsDdk2ww1DoNwoDlXzIuoPZ6p30evhXzx5BF/T5Gyu1iZaT/JrSe+hnFrM8/GiZLmqfOeRsJ761Vh5VMisFPfElg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787394265; c=relaxed/simple; bh=BXsaNU9UPyjviYVeKmC2bFQk/c6gAmdYAFhv91Yg5TA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=INSYmA4HZMJc+LloQ98b5QohaVXPewFefRaBADD5Ji0e+g8gXlxBuO3rBsByv8E41WJjtD33JGSeUESGbkB0VG3N0PUGLsruDuCIHwD6RaIL3X6OOoEasWJ1RymIcgfpKO1qz8CQYfX/c55LmJuFwztLepoPgsVjG+1JuNgTDKA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=rere.qmqm.pl; spf=pass smtp.mailfrom=rere.qmqm.pl; dkim=pass (2048-bit key) header.d=rere.qmqm.pl header.i=@rere.qmqm.pl header.b=dcnOiV9T; arc=none smtp.client-ip=91.227.64.183 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=rere.qmqm.pl Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rere.qmqm.pl Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=rere.qmqm.pl header.i=@rere.qmqm.pl header.b="dcnOiV9T" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rere.qmqm.pl; s=1; t=1787393663; bh=BXsaNU9UPyjviYVeKmC2bFQk/c6gAmdYAFhv91Yg5TA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dcnOiV9TIbRHz7aczkzX82uIrjGxHPNL4B3hN8JyY0gdmgLfyKEWslpqfJFxrsX6D vu+WMLuQe34zX+tRQZf2hbC1jbmVSb2Dcxild/7G+xdbC42sole058887nJcO+Tz4N bvNwAgi85PCZsFO4sPw6zDGiNwmKIb773PdVHVFwG2ONFv+uS0GeuyBc/y+MP32kSA gE5EwqwFYFp25OpcTULv3tFXfiEPFvzKD0cNR3nGKREp6vQWfnYEB6Ipf9mpmlN5EY Vy9DIQjxpzdBIyOVbs3OdC68TdBUleGrwAJavionQy5C905lxPPG8P1rwfWK1a+VmL n4tjMjdtb+JBg== X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 1.4.3 at mail Received: from remote.user (localhost [127.0.0.1]) by rere.qmqm.pl (Postfix) with ESMTPSA id 4hRtM266lbz5J; Sat, 22 Aug 2026 12:14:22 +0200 (CEST) Date: Sat, 22 Aug 2026 12:14:21 +0200 From: =?iso-8859-2?Q?Micha=B3_Miros=B3aw?= To: Triet Hoang Cc: arnd@arndb.de, gregkh@linuxfoundation.org, eric.piel@tremplin-utc.net, jirislaby@kernel.org, oakad@yahoo.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drivers: misc: Convert to DEFINE_SIMPLE_DEV_PM_OPS() Message-ID: References: <20260821121315.23574-1-triet.hoang.dev@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20260821121315.23574-1-triet.hoang.dev@gmail.com> On Fri, Aug 21, 2026 at 12:13:15PM +0000, Triet Hoang wrote: > Convert the deprecated SIMPLE_DEV_PM_OPS > to DEFINE_SIMPLE_DEV_PM_OPS > and pm_sleep_ptr(). > > This lets us drop the __maybe_unused annotations > from the suspend and resume callbacks, > also reduces kernel size in case CONFIG_PM or > CONFIG_PM_SLEEP is disabled. > > Also allow to remove #ifdef CONFIG_PM_SLEEP. > > Signed-off-by: Triet Hoang > --- [...] > drivers/misc/cb710/core.c | 8 ++++---- Acked-by: Michał Mirosław