diff options
author | Geert Uytterhoeven <[email protected]> | 2018-06-07 14:24:34 +0200 |
---|---|---|
committer | Linus Walleij <[email protected]> | 2018-06-18 07:56:05 +0200 |
commit | 7d71b5f4b2fb5b2a38794fe029d6245c86244de6 (patch) | |
tree | 48e5f2ac3dfd604237f651d2c657e3ec4d0bf72c /lib/mpi/mpiutil.c | |
parent | 7547b5969e069520d4cf23ba43b4ac889f8bd0ef (diff) |
pinctrl: pinctrl-single: Avoid divisions in context save/restore
The divisions (and multiplications) can be avoided by changing the loops
to use increments of mux_bytes instead of 1.
While at it, remove the unneeded casts when assigning void pointers.
This saves +100 bytes of kernel size on arm32/arm64.
Signed-off-by: Geert Uytterhoeven <[email protected]>
Acked-by: Tony Lindgren <[email protected]>
Tested-by: Keerthy <[email protected]>
Reviewed-by: Keerthy <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions