@@ -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)
Declare acpi_node_add_pin_mapping added for pinctrl-upboard reference. Signed-off-by: chengwei <larry.lai@yunjingtech.com> --- include/linux/acpi.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+)