]> git.baikalelectronics.ru Git - kernel.git/commit
soc: qcom: geni: Make version macros simpler
authorStephen Boyd <swboyd@chromium.org>
Fri, 18 May 2018 22:47:50 +0000 (15:47 -0700)
committerAndy Gross <andy.gross@linaro.org>
Mon, 24 Sep 2018 04:28:00 +0000 (21:28 -0700)
commit6f50b2b69d349735202ba45871345b4d48985f13
tree61a562da2afd976d44d71533f1cd09be8881261a
parentf030a7bb7b1f7de16c1c716a587185e209e25800
soc: qcom: geni: Make version macros simpler

This macro doesn't work, because it hides a local variable inside of the
macro to hold the version and that variable name is called 'ver' and
'version' sometimes.

Let's change this to be more explicit. Introduce three macros for the
major, minor, and step of the version, and require callers to pass the
version in to get the part of the version out. This way we don't hide
local variables inside macros and things are less evil overall.

Cc: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
Cc: Sagar Dharia <sdharia@codeaurora.org>
Cc: Girish Mahadevan <girishm@codeaurora.org>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
include/linux/qcom-geni-se.h