forked from Mirrors/opensbi
lib: utils/gpio: Use fdt_driver for initialization
FDT gpio drivers have an extra .xlate operation, so they need to embed the `struct fdt_driver` inside the subsystem-specific type. The gpio subsystem always initializes the driver for a specific DT node. Signed-off-by: Samuel Holland <samuel.holland@sifive.com> Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:

committed by
Anup Patel

parent
10df2d6fb5
commit
bef8f9b806
@@ -1,3 +1,5 @@
|
||||
HEADER: sbi_utils/gpio/fdt_gpio.h
|
||||
TYPE: struct fdt_gpio
|
||||
TYPE: const struct fdt_gpio
|
||||
NAME: fdt_gpio_drivers
|
||||
MEMBER-NAME: driver
|
||||
MEMBER-TYPE: const struct fdt_driver
|
||||
|
Reference in New Issue
Block a user