[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <dcdf8c46-acdc-466d-afc6-caf0e0fa39e8@sirena.org.uk>
Date: Tue, 26 Mar 2024 18:21:48 +0000
From: Mark Brown <broonie@...nel.org>
To: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Cc: linux-spi@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
Daniel Mack <daniel@...que.org>,
Haojian Zhuang <haojian.zhuang@...il.com>,
Robert Jarzmik <robert.jarzmik@...e.fr>,
Russell King <linux@...linux.org.uk>
Subject: Re: [PATCH v1 07/10] spi: pxa2xx: Provide num-cs for Sharp PDAs via
device properties
On Tue, Mar 26, 2024 at 08:07:57PM +0200, Andy Shevchenko wrote:
> Since driver can parse num-cs device property, replace platform data
> with this new approach.
But why?
> -static struct pxa2xx_spi_controller spitz_spi_info = {
> - .num_chipselect = 3,
> -};
> +static const struct property_entry spitz_spi_properties[] = {
> + PROPERTY_ENTRY_U32("num-cs", 3),
> + { }
> +};
This is just platform data with less validation AFAICT.
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists