Re: [PATCH v8 3/9] rust: device: Move property_present() to FwNode
From: Viresh Kumar
Date: Wed Jun 11 2025 - 23:14:00 EST
On 11-06-25, 14:08, Danilo Krummrich wrote:
> (+Viresh, FYI)
Thanks Danilo.
> On Wed, Jun 11, 2025 at 12:29:02PM +0200, Remo Senekowitsch wrote:
> > The new FwNode abstraction will be used for accessing all device
> > properties.
> >
> > It would be possible to duplicate the methods on the device itself, but
> > since some of the methods on Device would have different type sigatures
> > as the ones on FwNode, this would only lead to inconsistency and
> > confusion. For this reason, property_present is removed from Device and
> > existing users are updated.
> >
> > Signed-off-by: Remo Senekowitsch <remo@xxxxxxxxxxx>
> > ---
> > drivers/cpufreq/rcpufreq_dt.rs | 3 ++-
> > rust/kernel/device.rs | 7 -------
> > rust/kernel/device/property.rs | 7 +++++++
> > 3 files changed, 9 insertions(+), 8 deletions(-)
Acked-by: Viresh Kumar <viresh.kumar@xxxxxxxxxx>
--
viresh