diff options
| author | Samuel Holland <[email protected]> | 2024-11-11 14:02:52 -0800 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2024-11-28 17:45:29 +0530 |
| commit | 1f8db2f18ffb4babb27c2070419b7100f998c7f4 (patch) | |
| tree | 2b14189ecee17fb0214444f1b35a006426396a0f /include | |
| parent | 5fa510c5f69f42d3b700e86c0db9e5bcebd3921c (diff) | |
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 <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/sbi_utils/regmap/fdt_regmap.h | 8 |
1 files changed, 1 insertions, 7 deletions
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 <sbi_utils/fdt/fdt_driver.h> #include <sbi_utils/regmap/regmap.h> 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); |
