Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1d7534b6 authored by Charles Keepax's avatar Charles Keepax Committed by Wolfram Sang
Browse files

i2c: core: Allow whole core to use i2c_dev_irq_from_resources



Remove the static from i2c_dev_irq_from _resources so that other parts
of the core code can use this helper function.

Reviewed-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarCharles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 45c9cc68
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -687,7 +687,7 @@ static void i2c_dev_set_name(struct i2c_adapter *adap,
		     i2c_encode_flags_to_addr(client));
}

static int i2c_dev_irq_from_resources(const struct resource *resources,
int i2c_dev_irq_from_resources(const struct resource *resources,
			       unsigned int num_resources)
{
	struct irq_data *irqd;
+2 −0
Original line number Diff line number Diff line
@@ -28,6 +28,8 @@ extern struct list_head __i2c_board_list;
extern int		__i2c_first_dynamic_bus_num;

int i2c_check_7bit_addr_validity_strict(unsigned short addr);
int i2c_dev_irq_from_resources(const struct resource *resources,
			       unsigned int num_resources);

/*
 * We only allow atomic transfers for very late communication, e.g. to send