lkml.org 
[lkml]   [2022]   [Jan]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3 1/3] of: base: make small of_parse_phandle() variants static inline
On Tue, 18 Jan 2022 18:35:02 +0100, Michael Walle wrote:
> Make all the smaller variants of the of_parse_phandle() static inline.
> This also let us remove the empty function stubs if CONFIG_OF is not
> defined.
>
> Suggested-by: Rob Herring <robh@kernel.org>
> Signed-off-by: Michael Walle <michael@walle.cc>
> ---
> changes since v3:
> - rebased due to now signed index parameter
>
> changes since v2:
> - new patch
>
> drivers/of/base.c | 128 ++----------------------------------
> include/linux/of.h | 157 +++++++++++++++++++++++++++++++++++++--------
> 2 files changed, 135 insertions(+), 150 deletions(-)
>

I moved the index < 0 checks into __of_parse_phandle_with_args
and applied, thanks!

\
 
 \ /
  Last update: 2022-01-20 18:31    [W:0.070 / U:0.992 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site