Re: [PATCH] pinctrl: msm: Use dynamic GPIO numbering

From: Timur Tabi
Date: Tue Feb 20 2018 - 11:42:55 EST


On 02/07/2018 07:52 AM, Linus Walleij wrote:
OK I put this in devel for v4.17, let's see if something explodes
in linux-next else we can go with this.

Otherwise we need something that conserves base 0 for singular
TLMM drivers and make it -1 for newer platforms with several
instances.

I don't see this patch in linusw/linux-gpio.git anywhere. Do you want me to submit another patch that implements this:

static int base = 0;

chip->base = base;
base = -1;

This preserves existing behavior for current drivers.

--
Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm
Technologies, Inc. Qualcomm Technologies, Inc. is a member of the
Code Aurora Forum, a Linux Foundation Collaborative Project.