Re: [PATCH V2 2/2] rust: Add basic bindings for clk APIs
From: Viresh Kumar
Date: Mon Feb 24 2025 - 04:46:32 EST
On 21-02-25, 15:47, Danilo Krummrich wrote:
> This was badly phrased, the current implementation does not need to consider it
> indeed. What I meant is that we have to consider it potentially. Especially,
> when adding new functionality later on. For instance, when accessing fields of
> struct clk directly. Maybe this only becomes relevant once we write a clk driver
> itself in Rust, but still.
I don't think we will _ever_ access fields of the struct clk directly.
For the most common use, common clk API, the struct clk is defined in
drivers/clk/clk.c.
> > MaybeNull<T> sounds nice.
>
> Yeah, it's probably the correct thing to do, to make things obvious.
Still need this ? Any example code that I can refer to implement it or
if someone can help with implementing it ?
--
viresh