aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/mfd
diff options
context:
space:
mode:
authorMatti Vaittinen <matti.vaittinen@fi.rohmeurope.com>2020-01-20 15:42:38 +0200
committerLee Jones <lee.jones@linaro.org>2020-01-24 07:21:48 +0000
commit1b1c26b24a6e75d96967515e55fba6c9954d4009 (patch)
tree300e60a45b567715f6baf5e79ce2ff0659854dbf /include/linux/mfd
parentdt-bindings: mfd: Document ROHM BD71828 bindings (diff)
downloadwireguard-linux-1b1c26b24a6e75d96967515e55fba6c9954d4009.tar.xz
wireguard-linux-1b1c26b24a6e75d96967515e55fba6c9954d4009.zip
mfd: Rohm PMICs: Use platform_device_id to match MFD sub-devices
Thanks to Stephen Boyd I today learned we can use platform_device_id to do device and module matching for MFD sub-devices! Do device matching using the platform_device_id instead of using explicit module_aliases to load modules and custom parent-data field to do module loading and sub-device matching. Cc: Stephen Boyd <sboyd@kernel.org> Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com> Acked-by: Mark Brown <broonie@kernel.org> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'include/linux/mfd')
-rw-r--r--include/linux/mfd/rohm-generic.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/mfd/rohm-generic.h b/include/linux/mfd/rohm-generic.h
index bff15ac26f2c..922f88008232 100644
--- a/include/linux/mfd/rohm-generic.h
+++ b/include/linux/mfd/rohm-generic.h
@@ -4,7 +4,7 @@
#ifndef __LINUX_MFD_ROHM_H__
#define __LINUX_MFD_ROHM_H__
-enum {
+enum rohm_chip_type {
ROHM_CHIP_TYPE_BD71837 = 0,
ROHM_CHIP_TYPE_BD71847,
ROHM_CHIP_TYPE_BD70528,
@@ -12,7 +12,6 @@ enum {
};
struct rohm_regmap_dev {
- unsigned int chip_type;
struct device *dev;
struct regmap *regmap;
};