Skip to content

Commit

Permalink
gpiobus: Make gpiobus_read_ivar extern
Browse files Browse the repository at this point in the history
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
  • Loading branch information
cperciva committed Oct 26, 2024
1 parent 2f3f867 commit bc0d10d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sys/dev/gpio/gpiobus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions sys/dev/gpio/gpiobusvar.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit bc0d10d

Please sign in to comment.