On 18 June 2018 at 14:23, Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx> wrote: > Use a single accessor function for all register types instead > of several spread around. This will make it easier/cleaner > to introduce new registers and keep the mechanism in one > place. > > The big switch/case is optimized at compile time since the > switch value is a constant. > > Signed-off-by: Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx> Reviewed-by: Joel Stanley <joel@xxxxxxxxx> -- 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