Re: [PATCH] ufs: ufshcd: Use of_property_count_u32_elems() to get property length
From: Bart Van Assche
Date: Wed Jul 31 2024 - 17:07:21 EST
On 7/31/24 1:14 PM, Rob Herring (Arm) wrote:
Replace of_get_property() with the type specific
of_property_count_u32_elems() to get the property length.
This is part of a larger effort to remove callers of of_get_property()
and similar functions. of_get_property() leaks the DT property data
pointer which is a problem for dynamically allocated nodes which may
be freed.
The "ufshcd:" qualifier in the patch subject is confusing. Please change
this into something that unambiguously refers to the platform driver.
Thanks,
Bart.