summaryrefslogtreecommitdiff
path: root/include/sbi_utils
diff options
context:
space:
mode:
authorSamuel Holland <[email protected]>2024-09-03 19:09:39 -0700
committerAnup Patel <[email protected]>2024-11-05 17:54:41 +0530
commit9782b8847dabe910d1584d79a6e1701111951354 (patch)
tree6392bf1cf1c0908f2a002f04ef55e84df55be9c5 /include/sbi_utils
parentd71150ee7047c4d7ad67525731cc6271939d782c (diff)
lib: utils/regmap: Use FDT node offset as regmap ID
Since the FDT is not modified during driver initialization, node offsets are just as suitable as phandles for use as identifiers: they are stable and unique. With this change, it is no longer necessary to pass the phandle to the driver init functions, so these init functions now use the same prototype as other kinds of drivers. This matches what is already done for I2C adapters. Signed-off-by: Samuel Holland <[email protected]> Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'include/sbi_utils')
-rw-r--r--include/sbi_utils/regmap/fdt_regmap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sbi_utils/regmap/fdt_regmap.h b/include/sbi_utils/regmap/fdt_regmap.h
index 86e72442..de946f27 100644
--- a/include/sbi_utils/regmap/fdt_regmap.h
+++ b/include/sbi_utils/regmap/fdt_regmap.h
@@ -17,7 +17,7 @@ struct fdt_phandle_args;
/** FDT based regmap driver */
struct fdt_regmap {
const struct fdt_match *match_table;
- int (*init)(const void *fdt, int nodeoff, u32 phandle,
+ int (*init)(const void *fdt, int nodeoff,
const struct fdt_match *match);
};