[PATCH v2 1/4] gpio: aspeed: Rework register type accessors

Joel Stanley joel at jms.id.au
Mon Jun 18 15:38:34 AEST 2018


On 18 June 2018 at 14:23, Benjamin Herrenschmidt
<benh at kernel.crashing.org> 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 at kernel.crashing.org>

Reviewed-by: Joel Stanley <joel at jms.id.au>


More information about the Linux-aspeed mailing list