hw/i2c: pmbus: refactor uint handling
commit78fdfc59b1b7f0b93ea7259d81bc7b4b48cd846e
authorTitus Rwantare <titusr@google.com>
Mon, 7 Mar 2022 20:06:00 +0000 (7 12:06 -0800)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Tue, 8 Mar 2022 17:46:48 +0000 (8 18:46 +0100)
tree78ee27d14d616f2f64f359702e47944d0c4c95a5
parent2192aaae1c36b00a4a97b7d25220a62c245f89b7
hw/i2c: pmbus: refactor uint handling

This change cleans up the inputs to pmbus_receive uint, the length of
received data is contained in PMBusDevice state and doesn't need to be
passed around.

Signed-off-by: Titus Rwantare <titusr@google.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Acked-by: Corey Minyard <cminyard@mvista.com>
Message-Id: <20220307200605.4001451-5-titusr@google.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
hw/i2c/pmbus_device.c