On 2/7/18 7:19 AM, Linus Walleij wrote:
if (tlmm_has_only_one_instance) base = 0; else base = -1;
This is effectively what my patch does. The first instance gets 0. The second instance, if it exists, gets -1.
When the first instance is registered, there's no way to know whether there will be a second instance.
-- 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. -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html