Declare acpi_node_add_pin_mapping added for pinctrl-upboard reference. Signed-off-by: chengwei <larry.lai@xxxxxxxxxxxxxxx> --- include/linux/acpi.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 6f64b2f3dc54..7b4668342de0 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -1203,6 +1203,11 @@ bool acpi_gpio_get_irq_resource(struct acpi_resource *ares, bool acpi_gpio_get_io_resource(struct acpi_resource *ares, struct acpi_resource_gpio **agpio); int acpi_dev_gpio_irq_get_by(struct acpi_device *adev, const char *name, int index); +int acpi_node_add_pin_mapping(struct fwnode_handle *fwnode, + const char *propname, + const char *pinctl_name, + unsigned int pin_offset, + unsigned int npins); #else static inline bool acpi_gpio_get_irq_resource(struct acpi_resource *ares, struct acpi_resource_gpio **agpio) @@ -1219,6 +1224,15 @@ static inline int acpi_dev_gpio_irq_get_by(struct acpi_device *adev, { return -ENXIO; } + +static inline int acpi_node_add_pin_mapping(struct fwnode_handle *fwnode, + const char *propname, + const char *pinctl_name, + unsigned int pin_offset, + unsigned int npins) +{ + return -ENXIO; +} #endif static inline int acpi_dev_gpio_irq_get(struct acpi_device *adev, int index) -- 2.17.1