]> 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)
commitf5020a94c79596be43d6f9b643e56fc5e99c8f7f
tree4b2b27c59bf19ea08ebb26fa21e46a22393d7e18
parent57ca9141c455e4d838b418114107f2bc61d25716
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