[PATCH 3/3] ata: sata_mv: Staticize and constify driver ops
Stefan Roese
stefan.roese at mailbox.org
Fri May 8 08:37:58 CEST 2026
On 5/7/26 18:42, 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 <marek.vasut+renesas at mailbox.org>
> ---
> Cc: Andrew Goodbody <andrew.goodbody at linaro.org>
> Cc: Stefan Roese <stefan.roese at mailbox.org>
> Cc: Tom Rini <trini at konsulko.com>
> Cc: u-boot at lists.denx.de
Reviewed-by: Stefan Roese <stefan.roese at mailbox.org>
Thanks,
Stefan
> ---
> drivers/ata/sata_mv.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/ata/sata_mv.c b/drivers/ata/sata_mv.c
> index b8c73b4a9dd..3fb1a245698 100644
> --- a/drivers/ata/sata_mv.c
> +++ b/drivers/ata/sata_mv.c
> @@ -1122,7 +1122,7 @@ static const struct udevice_id sata_mv_ids[] = {
> { }
> };
>
> -struct ahci_ops sata_mv_ahci_ops = {
> +static const struct ahci_ops sata_mv_ahci_ops = {
> .scan = sata_mv_scan,
> };
>
More information about the U-Boot
mailing list