mfd: bd718x7: simplify by cleaning unnecessary device data
authorMatti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Mon, 5 Apr 2021 11:40:44 +0000 (14:40 +0300)
committerLee Jones <lee.jones@linaro.org>
Wed, 14 Apr 2021 09:17:53 +0000 (10:17 +0100)
commit316d0d92fbc9b926bda8ce7ccc109de0dccb4d92
tree4b2b27c59bf19ea08ebb26fa21e46a22393d7e18
parentf87c0d2e6c0c09d4e220ab3c17bf04dbadedf410
mfd: bd718x7: simplify by cleaning unnecessary device data

Most ROHM PMIC sub-devices only use the regmap pointer from
parent device. They can obtain this by dev_get_regamap so in
most cases the MFD device does not need to allocate and populate
the driver data. Simplify drivers by removing this.

The BD70528 still needs the access to watchdog mutex so keep
rohm_regmap_dev in use on BD70528 RTC and WDG drivers for now.

Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/rohm-bd718x7.c
include/linux/mfd/rohm-bd718x7.h