Re: [PATCH 2/5] i2c: pxa: Make of_device_id array const

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, May 7, 2014 at 4:57 PM, Jingoo Han <jg1.han@xxxxxxxxxxx> wrote:
> Make of_device_id array const, because all OF functions
> handle it as const.
>
> Signed-off-by: Jingoo Han <jg1.han@xxxxxxxxxxx>
> ---
>  drivers/i2c/busses/i2c-pxa.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/i2c/busses/i2c-pxa.c b/drivers/i2c/busses/i2c-pxa.c
> index bbe6dfb..be671f7 100644
> --- a/drivers/i2c/busses/i2c-pxa.c
> +++ b/drivers/i2c/busses/i2c-pxa.c
> @@ -1084,7 +1084,7 @@ static const struct i2c_algorithm i2c_pxa_pio_algorithm = {
>         .functionality  = i2c_pxa_functionality,
>  };
>
> -static struct of_device_id i2c_pxa_dt_ids[] = {
> +static const struct of_device_id i2c_pxa_dt_ids[] = {
>         { .compatible = "mrvl,pxa-i2c", .data = (void *)REGS_PXA2XX },
>         { .compatible = "mrvl,pwri2c", .data = (void *)REGS_PXA3XX },
>         { .compatible = "mrvl,mmp-twsi", .data = (void *)REGS_PXA2XX },
> --
> 1.7.10.4
>
>

Acked-by: Haojian Zhuang <haojian.zhuang@xxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux