summaryrefslogtreecommitdiff
path: root/samples/rust/rust_driver_platform.rs
diff options
context:
space:
mode:
authorChen-Yu Tsai <wens@csie.org>2025-09-09 02:10:53 +0800
committerChen-Yu Tsai <wens@csie.org>2025-09-10 20:51:26 +0800
commite6b84cc2a6fe62b4070d73f2d2d7b2544a11df87 (patch)
tree49c7b54fe6bdb03893ae16ac72cb7d2d3bfe026d /samples/rust/rust_driver_platform.rs
parent30849ab484f7397c9902082c7567ca4cd4eb03d3 (diff)
soc: sunxi: sram: register regmap as syscon
If the system controller had a ethernet controller glue layer control register, a limited access regmap would be registered and tied to the system controller struct device for the ethernet driver to use. Until now, for the ethernet driver to acquire this regmap, it had to do a of_parse_phandle() + find device + dev_get_regmap() sequence. Since the syscon framework allows a provider to register a custom regmap for its device node, and the ethernet driver already uses syscon for one platform, this provides a much more easier way to pass the regmap. Use of_syscon_register_regmap() to register our regmap with the syscon framework so that consumers can retrieve it that way. Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com> Link: https://patch.msgid.link/20250908181059.1785605-5-wens@kernel.org Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Diffstat (limited to 'samples/rust/rust_driver_platform.rs')
0 files changed, 0 insertions, 0 deletions