summaryrefslogtreecommitdiff
path: root/lib/utils/i2c/fdt_i2c_adapter_drivers.carray
AgeCommit message (Collapse)AuthorFilesLines
2024-11-28lib: utils/i2c: Use fdt_driver for initializationSamuel Holland1-1/+1
The i2c driver subsystem does not need any extra data, so it can use `struct fdt_driver` directly. It 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>
2022-05-13lib: utils/i2c: Generate FDT i2c adapter driver list at compile-timeAnup Patel1-0/+3
Instead of having FDT i2c adapter driver list hard-coded in the C source, we generate it using carray.sh at compile-time. Signed-off-by: Anup Patel <apatel@ventanamicro.com> Reviewed-by: Atish Patra <atishp@rivosinc.com>