From 1f8db2f18ffb4babb27c2070419b7100f998c7f4 Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Mon, 11 Nov 2024 14:02:52 -0800 Subject: lib: utils/regmap: Use fdt_driver for initialization The regmap 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 Reviewed-by: Anup Patel --- include/sbi_utils/regmap/fdt_regmap.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'include') diff --git a/include/sbi_utils/regmap/fdt_regmap.h b/include/sbi_utils/regmap/fdt_regmap.h index de946f27..a24f7a98 100644 --- a/include/sbi_utils/regmap/fdt_regmap.h +++ b/include/sbi_utils/regmap/fdt_regmap.h @@ -10,17 +10,11 @@ #ifndef __FDT_REGMAP_H__ #define __FDT_REGMAP_H__ +#include #include struct fdt_phandle_args; -/** FDT based regmap driver */ -struct fdt_regmap { - const struct fdt_match *match_table; - int (*init)(const void *fdt, int nodeoff, - const struct fdt_match *match); -}; - /** Get regmap instance based on phandle */ int fdt_regmap_get_by_phandle(const void *fdt, u32 phandle, struct regmap **out_rmap); -- cgit v1.3.1