diff options
author | ChiYuan Huang <[email protected]> | 2022-06-29 09:41:00 +0800 |
---|---|---|
committer | Mark Brown <[email protected]> | 2022-06-29 16:31:41 +0100 |
commit | 4806c991bf4ff959acf921ea72f931a945a968ae (patch) | |
tree | 048ccc28dc3ba6efc1c5b5ca06c6f17f26ae13fe /drivers/usb/cdns3/cdns3-debug.h | |
parent | 0e584d46218e3b9dc12a98e18e81a0cd3e0d5419 (diff) |
regulator: mt6370: Use 'fwnode_gpiod_get_index' to fix gpio parsing
From the common binding, 'enable-gpio' or 'enable-gpios' are all well
for external 'enable' gpio.
'gpiod_get_from_of_node' only parse the 'enable' property, it need to
add the gpio suffix. It's more convenient to use fwnode_gpiod_get_index.
Although fwnode parsing is not preferred, but 'of_parse_cb' already can
guarantee the callback will only be used by regulator of_node parsing.
Signed-off-by: ChiYuan Huang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions