1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-28 08:02:54 +00:00

gpiobus: Make gpiobus_read_ivar extern

This allows acpi_gpiobus to override the method and fall back to the
generic gpiobus_read_ivar function if needed.

Reviewed by:	andrew
MFC after:	1 week
Sponsored by:	Amazon
Differential Revision:	https://reviews.freebsd.org/D47250
This commit is contained in:
Colin Percival 2024-10-22 10:51:57 -07:00
parent 2f3f867ac6
commit bc0d10d01c
2 changed files with 2 additions and 1 deletions

View File

@ -752,7 +752,7 @@ gpiobus_hinted_child(device_t bus, const char *dname, int dunit)
}
}
static int
int
gpiobus_read_ivar(device_t dev, device_t child, int which, uintptr_t *result)
{
struct gpiobus_ivar *devi;

View File

@ -179,6 +179,7 @@ int gpiobus_detach(device_t);
int gpiobus_init_softc(device_t);
int gpiobus_alloc_ivars(struct gpiobus_ivar *);
void gpiobus_free_ivars(struct gpiobus_ivar *);
int gpiobus_read_ivar(device_t, device_t, int, uintptr_t *);
int gpiobus_acquire_pin(device_t, uint32_t);
int gpiobus_release_pin(device_t, uint32_t);