On 5/9/26 17:12, Marek Vasut wrote: > Set the ops structure as static const. The structure is not accessible > from outside of this driver and is not going to be modified at runtime. > > Signed-off-by: Marek Vasut <[email protected]> > --- > Cc: Patrice Chotard <[email protected]> > Cc: Tom Rini <[email protected]> > Cc: [email protected] > --- > drivers/reset/sti-reset.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/reset/sti-reset.c b/drivers/reset/sti-reset.c > index 412a0c5b452..37a37a72fd3 100644 > --- a/drivers/reset/sti-reset.c > +++ b/drivers/reset/sti-reset.c > @@ -290,7 +290,7 @@ static int sti_reset_deassert(struct reset_ctl *reset_ctl) > return sti_reset_program_hw(reset_ctl, false); > } > > -struct reset_ops sti_reset_ops = { > +static const struct reset_ops sti_reset_ops = { > .rst_assert = sti_reset_assert, > .rst_deassert = sti_reset_deassert, > }; Hi Marek Reviewed-by: Patrice Chotard <[email protected]> Thanks Patrice
- [PATCH 03/14] reset: at91: Staticize and constify driver ... Marek Vasut
- [PATCH 05/14] reset: dra7: Staticize and constify driver ... Marek Vasut
- [PATCH 04/14] reset: bcm6345: Staticize and constify driv... Marek Vasut
- [PATCH 06/14] reset: mediatek: Staticize and constify dri... Marek Vasut
- [PATCH 07/14] reset: meson: Staticize and constify driver... Marek Vasut
- [PATCH 08/14] reset: npcm: Staticize and constify driver ... Marek Vasut
- [PATCH 09/14] reset: raspberrypi: Staticize and constify ... Marek Vasut
- [PATCH 11/14] reset: sandbox: Staticize and constify driv... Marek Vasut
- [PATCH 10/14] reset: sunxi: Staticize and constify driver... Marek Vasut
- [PATCH 12/14] reset: sti: Staticize and constify driver o... Marek Vasut
- Re: [PATCH 12/14] reset: sti: Staticize and constify... Patrice CHOTARD
- [PATCH 13/14] reset: tegra-car: Staticize and constify dr... Marek Vasut
- Re: [PATCH 13/14] reset: tegra-car: Staticize and co... Svyatoslav Ryhel
- [PATCH 14/14] reset: tegra186: Staticize and constify dri... Marek Vasut
- Re: [PATCH 14/14] reset: tegra186: Staticize and con... Svyatoslav Ryhel
- Re: [PATCH 01/14] reset: ast2500: Staticize and constify ... Tom Rini

