···13451345 return 0;13461346}1347134713481348-static int intel_gpio_add_pin_ranges(struct gpio_chip *gc)13481348+/**13491349+ * intel_gpio_add_pin_ranges - add GPIO pin ranges for all groups in all communities13501350+ * @gc: GPIO chip structure13511351+ *13521352+ * This function iterates over all communities and all groups and adds the respective13531353+ * GPIO pin ranges, so the GPIO library will correctly map a GPIO offset to a pin number.13541354+ *13551355+ * Return: 0, or negative error code if range can't be added.13561356+ */13571357+int intel_gpio_add_pin_ranges(struct gpio_chip *gc)13491358{13501359 struct intel_pinctrl *pctrl = gpiochip_get_data(gc);13511360 const struct intel_community *community;···1371136213721363 return 0;13731364}13651365+EXPORT_SYMBOL_NS_GPL(intel_gpio_add_pin_ranges, "PINCTRL_INTEL");1374136613751367static unsigned int intel_gpio_ngpio(const struct intel_pinctrl *pctrl)13761368{
+2
drivers/pinctrl/intel/pinctrl-intel.h
···276276const struct intel_community *intel_get_community(const struct intel_pinctrl *pctrl,277277 unsigned int pin);278278279279+int intel_gpio_add_pin_ranges(struct gpio_chip *gc);280280+279281int intel_get_groups_count(struct pinctrl_dev *pctldev);280282const char *intel_get_group_name(struct pinctrl_dev *pctldev, unsigned int group);281283int intel_get_group_pins(struct pinctrl_dev *pctldev, unsigned int group,