[PATCH v6.8 2/2] nvmem: drop nvmem_layout_get_match_data()

Rafał Miłecki zajec5 at gmail.com
Tue Dec 19 04:33:41 PST 2023


On 19.12.2023 13:21, Michael Walle wrote:
>> From: Rafał Miłecki <rafal at milecki.pl>
>>
>> Thanks for layouts refactoring we now have "struct device" associated
>> with layout. Also its OF pointer points directly to the "nvmem-layout"
>> DT node.
>>
>> All it takes to get match data is a generic of_device_get_match_data().
> 
> Isn't device_get_match_data() preferred?

You're right. I think a big crusade against of_device_get_match_data()
is still ahead of us but I'll make sure to use device_get_match_data()
in U-Boot env layout to shine as an example :)


>> Signed-off-by: Rafał Miłecki <rafal at milecki.pl>
> Reviewed-by: Michael Walle <michael at walle.cc>

Thank you for quick reviews!



More information about the linux-mtd mailing list