diff options
| author | Marek Vasut <[email protected]> | 2026-05-08 00:07:14 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-05-18 16:56:07 -0600 |
| commit | 0bda59b1fac580accda9e810cebead29585e6a5c (patch) | |
| tree | c5f8207bd202bcf40803833c68543bfcf7987b0c | |
| parent | e253640e3ffa9dff8a0b5c3f8735039552fba5e9 (diff) | |
misc: cros_ec: 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 <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Acked-by: Quentin Schulz <[email protected]>
| -rw-r--r-- | drivers/misc/cros_ec_sandbox.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/cros_ec_sandbox.c b/drivers/misc/cros_ec_sandbox.c index 432b1fbb0c4..5b9c6354bef 100644 --- a/drivers/misc/cros_ec_sandbox.c +++ b/drivers/misc/cros_ec_sandbox.c @@ -726,7 +726,7 @@ int cros_ec_probe(struct udevice *dev) return cros_ec_register(dev); } -struct dm_cros_ec_ops cros_ec_ops = { +static const struct dm_cros_ec_ops cros_ec_ops = { .packet = cros_ec_sandbox_packet, .get_switches = cros_ec_sandbox_get_switches, }; |
