mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 15:37:23 +00:00
8c1de5e08b
Putting zero length array at the end of struct is a common technique to embed arbitrary length of members. There is no good reason to let regmap_alloc_count() branch by "if (count <= 1)". As far as I understood the code, regmap->base is an alias of regmap->ranges[0].start, but it is not helpful but make the code just ugly. Rename regmap_alloc_count() to regmap_alloc() because the _count suffix seems pointless. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Simon Glass <sjg@chromium.org> [trini: fixup cpu_info-rcar.c] Signed-off-by: Tom Rini <trini@konsulko.com> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
sysreset-uclass.c | ||
sysreset_ast.c | ||
sysreset_psci.c | ||
sysreset_rockchip.c | ||
sysreset_sandbox.c | ||
sysreset_sti.c | ||
sysreset_syscon.c | ||
sysreset_watchdog.c | ||
sysreset_xtfpga.c |