Re: [PATCH 2/2] device property: allow constify properties

From: Mika Westerberg
Date: Mon Jan 23 2017 - 09:40:29 EST


On Sun, Jan 22, 2017 at 11:38:49PM -0800, Dmitry Torokhov wrote:
> There is no reason why statically defined properties should be modifiable,
> so let's make device_add_properties() and the rest of pset_*() functions to
> take const pointers to properties.
>
> This will allow us to mark properties as const/__initconst at definition
> sites.
>
> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>

Reviewed-by: Mika Westerberg <mika.westerberg@xxxxxxxxxxxxxxx>