diff mbox series

[3/5] ACPI: acpi_node_add_pin_mapping added to header file

Message ID 20221019022450.16851-4-larry.lai@yunjingtech.com
State New
Headers show
Series [1/5] mfd: Add support for UP board CPLD/FPGA | expand

Commit Message

chengwei Oct. 19, 2022, 2:24 a.m. UTC
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(+)
diff mbox series

Patch

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)