From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=194.117.254.33 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796165430; b=dh5VIKPshCTESI+tgDrHsxSLwo1qWzsYvVnTe7qEf1pbXcA4WPoeQoPj+bOJzhHK09Mw WQhb3r5SyTSRKImFF5QimyUsLPdjYGUhAX8selV0cpWAc1b1K/LoDZWllxlgV/2HeNoJh 1ErDdwWtalooesh3zeSVbmOnUeDHb4ZM+BcqSqa2frtrVt6LDpYfP5wIEtlC9r7bJ5XeJ GVBWs2UyLxXrsb5j9GXxN0jkBNz76EJbCC+7mfLYK0kkwqzI25DNBAAnYL5BC7l6pKkDW XMudDBabBvNc5y8+EzrXD3V+M/f9/GKx6VBEsToBNV5z/YZiBUFiQAkFFhGm0yaQs5Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796165430; h=DMARC-Filter:DKIM-Signature:Received:Received:X-UD-Smtp-Session:Date: From:To:Cc:Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; bh=lqsn1P5VX1T3D6QReTAZ6mKA9UpiWZXg3rhT1gVWkg8=; b=AxU6c6NZpfvTBO9b9iv0+sDqDeya7qT5UuCTjZKz3oMYjiLwRo8aHEDq16I0NLgLoJsl klGDn/nRzDmDYkpnPbJSJJcks+18q8WL/h991Lw9iaTu4oNNGpAVAJpoBnbgTsoBHTBjk tZ1iePbzcGksEVSwPd/kA+xDPhLfzNMc6a5wpXdyQHI+FvEWtMaqUDR0vxyRtQ0XOODuH p7Fd7r0U/9Zczwxr7ZB4p5COR4sSwCMHftKBlPVZVF8zC4/24zinTBeqaM9dNz0s7NPnD 4nxQ024JzcudpgIX0ric1PHmFCoEXOMbWcop2Efm3xcDvn7uxIWtkm778NkzTm5hKWA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=sang-engineering.com; spf=pass smtp.mailfrom=sang-engineering.com; dkim=pass header.d=sang-engineering.com header.i=@sang-engineering.com header.a=rsa-sha256 header.s=k1 header.b=LyZl+XMc; arc=none smtp.remote-ip=194.117.254.33 Received: from mail.zeus03.de (zeus03.de [194.117.254.33]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B5E3B606A322 for ; Tue, 1 Dec 2026 22:50:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B5E3B606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=sang-engineering.com header.i=@sang-engineering.com header.a=rsa-sha256 header.s=k1 header.b=LyZl+XMc DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= sang-engineering.com; h=date:from:to:cc:subject:message-id :references:mime-version:content-type:in-reply-to; s=k1; bh=lqsn 1P5VX1T3D6QReTAZ6mKA9UpiWZXg3rhT1gVWkg8=; b=LyZl+XMcCEIGka9e5EOB FhC3J+/t1seEekvlKCYk4sxaT9TuP7qN+wNjCLaT+udL5IlBfoYhBEiu0pDw/sau OUUmd8lAM/b9v80xWbTkMzlAGO6kU8qLptTykEssLPkdqvLbFIdDzT9g0a0e9k8e ySMjX72yDP/wDLwHxdxPgw0IQdztidssrhnsJSvhTuMldyjnrUEnMdF57GxYbNJZ 4DL4RQIiEIAj3A7hZ8uwv/cXmlUQG+p3RFFWMMRx62PQEdGZm/6Mb62hJoUq6Ylf /DJaFGv+ClKJqsV2oAaFG+DwatYZZ0UaV2tHlDyJkbvvEH7hUCkDp7/xFn+/BcAn vg== Received: (qmail 483222 invoked from network); 1 Dec 2026 23:50:27 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 1 Dec 2026 23:50:27 +0100 X-UD-Smtp-Session: l3s3148p1@T4I+WpphQoYujnuD Date: Tue, 1 Dec 2026 23:50:27 +0100 From: Wolfram Sang To: Peng Fan Cc: Andi Shyti , Lee Jones , Support Opensource , Charles Keepax , Richard Fitzgerald , Chanwoo Choi , Krzysztof Kozlowski , Aaro Koskinen , Andreas Kemnade , Kevin Hilman , Roger Quadros , Tony Lindgren , Matti Vaittinen , linux-i2c@vger.kernel.org, mfd@lists.linux.dev, patches@opensource.cirrus.com, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, Peng Fan Subject: Re: [PATCH 1/2] i2c: add subsys_i2c_driver() macro Message-ID: References: <20261201-add-i2c-subsys-mfd-v1-0-e7b1db408abf@nxp.com> <20261201-add-i2c-subsys-mfd-v1-1-e7b1db408abf@nxp.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261201-add-i2c-subsys-mfd-v1-1-e7b1db408abf@nxp.com> On Tue, Dec 01, 2026 at 05:45:51PM +0800, Peng Fan wrote: > From: Peng Fan > > Add subsys_i2c_driver() and subsys_i2c_driver_probe() macros so that > I2C drivers registered at the subsys_initcall() level can avoid the > open-coded init/exit boilerplate. > > subsys_i2c_driver() replaces subsys_initcall() plus module_exit() for > drivers that need an unregister path. subsys_i2c_driver_probe() replaces > subsys_initcall() for drivers without an exit callback. > > Signed-off-by: Peng Fan Acked-by: Wolfram Sang Applied to my for-andi branch, thanks!