mfd: pm8008: Remove driver data structure pm8008_data
authorLee Jones <lee.jones@linaro.org>
Tue, 21 Jun 2022 08:14:02 +0000 (09:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:14:36 +0000 (13:14 +0100)
commitec10848e2638c31bd7096b304c548abd5f9a7971
tree5ff3ace17362932c43bb42b18087d25e30084c66
parent38959417d35086e5a9b03219b43e97895a69b494
mfd: pm8008: Remove driver data structure pm8008_data

[ Upstream commit 915696927cd6e7838d25dab8fbd2ae05d4acce84 ]

Maintaining a local driver data structure that is never shared
outside of the core device is an unnecessary complexity.  Half of the
attributes were not used outside of a single function, one of which
was not used at all.  The remaining 2 are generic and can be passed
around as required.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
Stable-dep-of: 14f8c55d48e0 ("mfd: pm8008: Fix return value check in pm8008_probe()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mfd/qcom-pm8008.c