]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
power: supply: max8998-charger: Fix platform data retrieval
authorTomasz Figa <tomasz.figa@gmail.com>
Tue, 17 Jul 2018 16:05:07 +0000 (18:05 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 26 Nov 2019 12:16:38 +0000 (13:16 +0100)
commit6202558fa2027614f75e415b42c1014e5443e56b
tree5271796631a6b560ce4f2e111bb57fe29fe83bba
parent9b386e6918aecdfbf08fc727bc298b329127c6cb
power: supply: max8998-charger: Fix platform data retrieval

BugLink: https://bugs.launchpad.net/bugs/1853915
[ Upstream commit cb90a2c6f77fe9b43d1e3f759bb2f13fe7fa1811 ]

Since the max8998 MFD driver supports instantiation by DT, platform data
retrieval is handled in MFD probe and cell drivers should get use
the pdata field of max8998_dev struct to obtain them.

Fixes: ee999fb3f17f ("mfd: max8998: Add support for Device Tree")
Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
Signed-off-by: Paweł Chmiel <pawel.mikolaj.chmiel@gmail.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/power/supply/max8998_charger.c