On Tue, Apr 28, 2020 at 12:05 PM Lee Jones <lee.jones@xxxxxxxxxx> wrote:Ok, I will do it in the driver itself and remove the fwnode_to_regmap() definition.
On Tue, 21 Apr 2020, Dilip Kota wrote:Agreed, or just use the of_node pointer consistently in the driver that uses
But, i feel return error for ACPI or oother, looks better becauseI don't think this patch adds much to be honest.
'device_node' has fwnode pointer. And provide description
in the header file, mentioning function is success for 'OF' and returns
error for the rest.
Better to just do:
device_node_get_regmap(to_of_node(fwnode), false);
... from the call site I think.
it and avoid the use of the fwnode interface entirely when dealing with a
modern driver that does not need to support board files any more.
Arnd