projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c18684
)
pm_smbus: rename variable to avoid shadowing
author
Paolo Bonzini
<pbonzini@redhat.com>
Mon, 25 Sep 2023 10:21:29 +0000
(12:21 +0200)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Tue, 26 Sep 2023 14:39:20 +0000
(16:39 +0200)
Acked-by: Corey Minyard <cminyard@mvista.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/i2c/pm_smbus.c
patch
|
blob
|
history
diff --git
a/hw/i2c/pm_smbus.c
b/hw/i2c/pm_smbus.c
index 9ad6a47739b2dc7628fd560991633896bdd1ff70..4e1b8a5182ded541bc43759ccd2fd8b2e07195d4 100644
(file)
--- a/
hw/i2c/pm_smbus.c
+++ b/
hw/i2c/pm_smbus.c
@@
-279,7
+279,7
@@
static void smb_ioport_writeb(void *opaque, hwaddr addr, uint64_t val,
if (!read && s->smb_index == s->smb_data0) {
uint8_t prot = (s->smb_ctl >> 2) & 0x07;
uint8_t cmd = s->smb_cmd;
- uint8_t addr = s->smb_addr >> 1;
+ uint8_t
smb_
addr = s->smb_addr >> 1;
int ret;
if (prot == PROT_I2C_BLOCK_READ) {
@@
-287,7
+287,7
@@
static void smb_ioport_writeb(void *opaque, hwaddr addr, uint64_t val,
goto out;
}
- ret = smbus_write_block(s->smbus, addr, cmd, s->smb_data,
+ ret = smbus_write_block(s->smbus,
smb_
addr, cmd, s->smb_data,
s->smb_data0, !s->i2c_enable);
if (ret < 0) {
s->smb_stat |= STS_DEV_ERR;