[PATCH 3/3] misc: x86: Staticize and constify driver ops
Marek Vasut
marek.vasut at mailbox.org
Fri May 8 19:25:17 CEST 2026
On 5/8/26 6:59 PM, Simon Glass wrote:
> Hi Marek,
>
> On 2026-05-07T22:07:14, Marek Vasut <marek.vasut+renesas at mailbox.org> wrote:
>> misc: x86: Staticize and constify driver ops
>>
>> 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>
>>
>> drivers/misc/qfw.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>> diff --git a/drivers/misc/qfw.c b/drivers/misc/qfw.c
>> @@ -152,7 +152,7 @@ UCLASS_DRIVER(qfw) = {
>> .per_device_auto = sizeof(struct qfw_dev),
>> };
>>
>> -struct bootdev_ops qfw_bootdev_ops = {
>> +static const struct bootdev_ops qfw_bootdev_ops = {
>> .get_bootflow = qfw_get_bootflow,
>> };
>
> How about calling this 'misc: qfw: Staticize and constify bootdev ops' ?
Sure, some one those files didn't have a good consistent subject tag I
could dig out of git log .
More information about the U-Boot
mailing list