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

From: Rafał Miłecki
Date: Tue Dec 19 2023 - 07:33:57 EST


On 19.12.2023 13:21, Michael Walle wrote:
From: Rafał Miłecki <rafal@xxxxxxxxxx>

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@xxxxxxxxxx>
Reviewed-by: Michael Walle <michael@xxxxxxxx>

Thank you for quick reviews!