We added acpi_gpiochip_pin_to_gpio_offset() because there was a need totranslate from ACPI GpioIo/GpioInt number to Linux GPIO number in theCherryview pinctrl driver. This translation is necessary becauseCherryview has gaps in the pin list and the driver used continuous GPIOnumber space in Linux side as follows:

For example when ACPI GpioInt resource refers to GPIO 81 (SDMMC3_CD_B)we translate from pin 81 to the corresponding Linux GPIO number, whichis 50. This number is then used when the GPIO is accessed through gpiolib.

It turns out, this is not necessary at all. We can just pass 1:1 mappingbetween Linux GPIO numbers and pin numbers (including gaps) and thepinctrl core handles all the details automatically: