drivers: gpio: sx1509b: fix interrupt handler argument

The handler is directly invoked so can take an appropriately qualified
pointer to const device.

Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
Peter Bigot 2020-09-03 09:57:57 -05:00 committed by Anas Nashif
parent e314cf12d1
commit 6f51526980

View file

@ -176,9 +176,8 @@ static inline int i2c_reg_write_byte_be(const struct device *dev,
}
#ifdef CONFIG_GPIO_SX1509B_INTERRUPT
static int sx1509b_handle_interrupt(void *arg)
static int sx1509b_handle_interrupt(const struct device *dev)
{
const struct device *dev = (const struct device *) arg;
const struct sx1509b_config *cfg = dev->config;
struct sx1509b_drv_data *drv_data = dev->data;
int ret = 0;