mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
lm832x: Take DeviceState pointer in lm832x_key_event()
Since lm832x has been qdev'ified, its users will generally have a DeviceState pointer rather than an i2c_slave pointer, so adjust lm832x_key_event's prototype to suit. This allows the n810 (its only user) to actually pass a correct pointer to it rather than NULL. The effect is that we no longer segfault when a key is pressed. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
This commit is contained in:
parent
77831c204f
commit
c4f05c8cf7
3 changed files with 6 additions and 7 deletions
2
hw/i2c.h
2
hw/i2c.h
|
@ -72,6 +72,6 @@ void wm8750_set_bclk_in(void *opaque, int new_hz);
|
|||
void tmp105_set(i2c_slave *i2c, int temp);
|
||||
|
||||
/* lm832x.c */
|
||||
void lm832x_key_event(i2c_slave *i2c, int key, int state);
|
||||
void lm832x_key_event(DeviceState *dev, int key, int state);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue