Re: driver core: make platform_device_id table const

From: Eric Miao
Date: Fri Jan 01 2010 - 02:45:22 EST


Forget to make linux-kernel CC'ed.

On Fri, Jan 1, 2010 at 3:43 PM, Eric Miao <eric.y.miao@xxxxxxxxx> wrote:
> The platform ID table is normally const, force that by adding the attribute.
>
> Â ÂSigned-off-by: Eric Miao <eric.y.miao@xxxxxxxxx>
>
> diff --git a/include/linux/platform_device.h b/include/linux/platform_device.h
> index 71ff887..f5c1e7b 100644
> --- a/include/linux/platform_device.h
> +++ b/include/linux/platform_device.h
> @@ -21,7 +21,7 @@ struct platform_device {
> Â Â Â Âu32 Â Â Â Â Â Â num_resources;
> Â Â Â Âstruct resource * resource;
>
> -    struct platform_device_id    *id_entry;
> + Â Â Â const struct platform_device_id *id_entry;
>
> Â Â Â Â/* arch specific additions */
>    Âstruct pdev_archdata  Âarchdata;
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/