aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mfd/rohm-bd718x7.h
diff options
context:
space:
mode:
authorMatti Vaittinen <matti.vaittinen@fi.rohmeurope.com>2021-04-05 14:40:44 +0300
committerLee Jones <lee.jones@linaro.org>2021-04-14 10:17:53 +0100
commit316d0d92fbc9b926bda8ce7ccc109de0dccb4d92 (patch)
tree4b2b27c59bf19ea08ebb26fa21e46a22393d7e18 /include/linux/mfd/rohm-bd718x7.h
parentrtc: bd70528: Do not require parent data (diff)
downloadlinux-dev-316d0d92fbc9b926bda8ce7ccc109de0dccb4d92.tar.xz
linux-dev-316d0d92fbc9b926bda8ce7ccc109de0dccb4d92.zip
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>
Diffstat (limited to 'include/linux/mfd/rohm-bd718x7.h')
-rw-r--r--include/linux/mfd/rohm-bd718x7.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/include/linux/mfd/rohm-bd718x7.h b/include/linux/mfd/rohm-bd718x7.h
index bee2474a8f9f..df2918198d37 100644
--- a/include/linux/mfd/rohm-bd718x7.h
+++ b/include/linux/mfd/rohm-bd718x7.h
@@ -310,17 +310,4 @@ enum {
BD718XX_PWRBTN_LONG_PRESS_15S
};
-struct bd718xx {
- /*
- * Please keep this as the first member here as some
- * drivers (clk) supporting more than one chip may only know this
- * generic struct 'struct rohm_regmap_dev' and assume it is
- * the first chunk of parent device's private data.
- */
- struct rohm_regmap_dev chip;
-
- int chip_irq;
- struct regmap_irq_chip_data *irq_data;
-};
-
#endif /* __LINUX_MFD_BD718XX_H__ */