On Thu 29 Mar 2018 14:23:35 CEST Christian Lamparter wrote: > Ok I see, I was aware of ACPI but not that a pinctrl-msm based driver is > using it. Well, I thinks is possible to use is_acpi_device_node() or > !is_of_node() to detect whenever we are dealing with a OF or not: > > would it be ok to do something like this? > > | if (!is_of_node(chip->of_node)) { oops, this should be: if (!is_of_node(pctrl->dev->fwnode)) { > | /* > | * (lengthy note about gpiochip_add_pin_range and OF with > | * reference to Documentation/devicetree/bindings/gpio/gpio.txt > | * - TBD) > | */ > | ret = gpiochip_add_pin_range(&pctrl->chip, > | [...] > | } -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html