mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
tmp105: change len and alorm to uint8_t
They were using only with very small integers, and they are sent/read as bytes. They can't become negative as far as I can see Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
committed by
Anthony Liguori
parent
289070c715
commit
6f3a7798ec
+2
-2
@@ -23,7 +23,7 @@
|
||||
|
||||
typedef struct {
|
||||
i2c_slave i2c;
|
||||
int len;
|
||||
uint8_t len;
|
||||
uint8_t buf[2];
|
||||
qemu_irq pin;
|
||||
|
||||
@@ -32,7 +32,7 @@ typedef struct {
|
||||
int16_t temperature;
|
||||
int16_t limit[2];
|
||||
int faults;
|
||||
int alarm;
|
||||
uint8_t alarm;
|
||||
} TMP105State;
|
||||
|
||||
static void tmp105_interrupt_update(TMP105State *s)
|
||||
|
||||
Reference in New Issue
Block a user