spmi: pmic-arb: Make the APID init a version operation
authorAbel Vesa <abel.vesa@linaro.org>
Tue, 7 May 2024 21:07:46 +0000 (14:07 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 May 2024 18:46:10 +0000 (19:46 +0100)
commit8bc03763e15b6783fdf149677d89a84e935aea8c
treebda7a80f8c88a82f99ae3528344865e82e656905
parent83bfd7a81fc4d287658ddcd9490d7545f7693aa5
spmi: pmic-arb: Make the APID init a version operation

Rather than using conditionals in probe function, add the APID init
as a version specific operation. Due to v7, which supports multiple
buses, pass on the bus index to be used for sorting out the apid base
and count.

Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
Link: https://lore.kernel.org/r/20240417-spmi-multi-master-support-v10-4-5bc6d322e266@linaro.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lore.kernel.org/r/20240507210809.3479953-10-sboyd@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/spmi/spmi-pmic-arb.c