]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit817f84854f21de25da4bbc698e5e5928bba90340
tree4b2b27c59bf19ea08ebb26fa21e46a22393d7e18
parent47807024019bcdf470e939d5e4bfa30828e26018
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