[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZeXMuHFfBqarnUfA@ninjato>
Date: Mon, 4 Mar 2024 14:29:28 +0100
From: Wolfram Sang <wsa+renesas@...g-engineering.com>
To: "Ricardo B. Marliere" <ricardo@...liere.net>
Cc: linux-i2c@...r.kernel.org, linux-kernel@...r.kernel.org,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Subject: Re: [PATCH] i2c: constify the struct device_type usage
On Mon, Feb 19, 2024 at 09:38:47AM -0300, Ricardo B. Marliere wrote:
> Since commit aed65af1cc2f ("drivers: make device_type const"), the driver
> core can properly handle constant struct device_type. Move the
> i2c_adapter_type and i2c_client_type variables to be constant structures as
> well, placing it into read-only memory which can not be modified at
> runtime.
>
> Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
> Signed-off-by: Ricardo B. Marliere <ricardo@...liere.net>
Applied to for-next, thanks!
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists