Re: [PATCH RESEND] firmware: turris-mox-rwtm: make kobj_type structure constant

From: Thomas Weißschuh
Date: Sun Mar 26 2023 - 20:06:21 EST


Hi Marek,

On 2023-03-26 14:58:16+0200, Marek Behún wrote:
> Didn't I already give reviewed-by tag?

Yes indeed. Sorry for that oversight.

> Reviewed-by: Marek Behún <kabel@xxxxxxxxxx>
>
> On Fri, Mar 24, 2023 at 04:27:50PM +0000, Thomas Weißschuh wrote:
> > Since commit ee6d3dd4ed48 ("driver core: make kobj_type constant.")
> > the driver core allows the usage of const struct kobj_type.
> >
> > Take advantage of this to constify the structure definition to prevent
> > modification at runtime.
> >
> > Signed-off-by: Thomas Weißschuh <linux@xxxxxxxxxxxxxx>
> > ---
> > drivers/firmware/turris-mox-rwtm.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)