[PATCH v2 2/5] clk: Inline clk_get_*_optional
Simon Glass
sjg at chromium.org
Tue Dec 28 09:33:51 CET 2021
Hi Sean,
On Wed, 22 Dec 2021 at 10:11, Sean Anderson <seanga2 at gmail.com> wrote:
>
> The optional varients of clk_get_* functions are just simple wrappers.
> Reduce code size a bit by inlining them. On platforms where it is not used
> (most of them), it will not be compiled in any more. On platforms where
> they are used, the inlined branch should not cause any significant growth.
>
> Signed-off-by: Sean Anderson <seanga2 at gmail.com>
> ---
>
> (no changes since v1)
>
> drivers/clk/clk-uclass.c | 22 ---------------
> include/clk.h | 58 ++++++++++++++++++++++++----------------
> 2 files changed, 35 insertions(+), 45 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
I wonder if LTO removes this anyway?
More information about the U-Boot
mailing list