lib: utils/i2c: Generate FDT i2c adapter driver list at compile-time

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>
This commit is contained in:
Anup Patel
2022-05-13 09:26:45 +05:30
committed by Anup Patel
parent 4ee0c57969
commit 998ed43fde
3 changed files with 12 additions and 9 deletions

View File

@@ -0,0 +1,3 @@
HEADER: sbi_utils/i2c/fdt_i2c.h
TYPE: struct fdt_i2c_adapter
NAME: fdt_i2c_adapter_drivers