mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
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 <marek.vasut+renesas@mailbox.org> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user