[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <550D5DDA.9080108@kernel.org>
Date: Sat, 21 Mar 2015 12:02:34 +0000
From: Jonathan Cameron <jic23@...nel.org>
To: Fabian Frederick <fabf@...net.be>, linux-kernel@...r.kernel.org
CC: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Hartmut Knaack <knaack.h@....de>,
Lars-Peter Clausen <lars@...afoo.de>,
Peter Meerwald <pmeerw@...erw.net>, linux-iio@...r.kernel.org
Subject: Re: [PATCH 09/35 linux-next] iio: constify of_device_id array
On 16/03/15 19:17, Fabian Frederick wrote:
> of_device_id is always used as const.
> (See driver.of_match_table and open firmware functions)
>
> Signed-off-by: Fabian Frederick <fabf@...net.be>
Applied to the togreg branch of iio.git - initially pushed out as testing for the
autobuilders to play with it.
thanks,
Jonathan
> ---
> drivers/iio/common/ssp_sensors/ssp_dev.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/iio/common/ssp_sensors/ssp_dev.c b/drivers/iio/common/ssp_sensors/ssp_dev.c
> index 55a90082..9a40097 100644
> --- a/drivers/iio/common/ssp_sensors/ssp_dev.c
> +++ b/drivers/iio/common/ssp_sensors/ssp_dev.c
> @@ -437,7 +437,7 @@ int ssp_queue_ssp_refresh_task(struct ssp_data *data, unsigned int delay)
> }
>
> #ifdef CONFIG_OF
> -static struct of_device_id ssp_of_match[] = {
> +static const struct of_device_id ssp_of_match[] = {
> {
> .compatible = "samsung,sensorhub-rinato",
> .data = &ssp_rinato_info,
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists