diff options
| author | Marek Vasut <[email protected]> | 2026-05-08 00:07:15 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-05-18 16:56:07 -0600 |
| commit | d6a87d042e55d989751fa70f45d44dc230eedefb (patch) | |
| tree | e2233d0858a7dceca8b9b2cfadfae6b607006ec8 | |
| parent | 0bda59b1fac580accda9e810cebead29585e6a5c (diff) | |
misc: i2c: eeprom-emul: 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]>
| -rw-r--r-- | drivers/misc/i2c_eeprom_emul.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/i2c_eeprom_emul.c b/drivers/misc/i2c_eeprom_emul.c index 3ad2e047ee3..40f34ad03a4 100644 --- a/drivers/misc/i2c_eeprom_emul.c +++ b/drivers/misc/i2c_eeprom_emul.c @@ -144,7 +144,7 @@ static int sandbox_i2c_eeprom_xfer(struct udevice *emul, struct i2c_msg *msg, return 0; } -struct dm_i2c_ops sandbox_i2c_emul_ops = { +static const struct dm_i2c_ops sandbox_i2c_emul_ops = { .xfer = sandbox_i2c_eeprom_xfer, }; |
