Allowing gpiolib implementations to get at the gpio_chip from the gpio number is useful to allow gpiolib gpio numbering to be used for other gpio purposes such as changing pin configuration. The following patch exports this information. A patch showing the reason for my wanting this can be supplied on request.