mfd: stpmic1: use dev_get_regmap instead of priv member
When we call regmap_init, the regmap is associated with the device
supplied and can be queried with dev_get_regmap. This is more natural
than expecting cell drivers to cast dev->parent->priv. Do it.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 3e7e76a commit bf58ad743e2bc0bf5d439bb05651a65ff52b4d10
@Ahmad Fatoum Ahmad Fatoum authored on 6 Nov 2019
Sascha Hauer committed on 6 Nov 2019
Showing 2 changed files
View
drivers/mfd/stpmic1.c
View
drivers/watchdog/stpmic1_wdt.c