mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
i2c: pm_smbus: Add interrupt handling
Add the necessary code so that interrupts actually work from the pm_smbus device. Signed-off-by: Corey Minyard <cminyard@mvista.com> Cc: Michael S. Tsirkin <mst@redhat.com> Cc: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <1534796770-10295-7-git-send-email-minyard@acm.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
38ad4fae43
commit
e724385a70
3 changed files with 31 additions and 1 deletions
|
@ -23,6 +23,8 @@ typedef struct PMSMBus {
|
|||
|
||||
/* Set by the user. */
|
||||
bool i2c_enable;
|
||||
void (*set_irq)(struct PMSMBus *s, bool enabled);
|
||||
void *opaque;
|
||||
|
||||
/* Internally used by pm_smbus. */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue