diff options
author | Corey Minyard <cminyard@mvista.com> | 2018-08-20 15:26:06 -0500 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2018-08-23 18:46:25 +0200 |
commit | e724385a7071483b95c3cc8a33d130f781daa217 (patch) | |
tree | bdfc43938cc97676fd6919685e4175530871a0b6 /include/hw/i2c | |
parent | 38ad4fae43b9c57a4ef3111217b110b25dbd3c50 (diff) |
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>
Diffstat (limited to 'include/hw/i2c')
-rw-r--r-- | include/hw/i2c/pm_smbus.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/i2c/pm_smbus.h b/include/hw/i2c/pm_smbus.h index 99d5489e1b..1afa3cfacd 100644 --- a/include/hw/i2c/pm_smbus.h +++ b/include/hw/i2c/pm_smbus.h @@ -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. */ |