Merge tag 'for-linus-5.15-1' of git://github.com/cminyard/linux-ipmi
[platform/kernel/linux-starfive.git] / drivers / mfd / simple-mfd-i2c.h
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3  * Simple MFD - I2C
4  *
5  * Author: Lee Jones <lee.jones@linaro.org>
6  *
7  * This driver creates a single register map with the intention for it to be
8  * shared by all sub-devices.  Children can use their parent's device structure
9  * (dev.parent) in order to reference it.
10  *
11  * This driver creates a single register map with the intention for it to be
12  * shared by all sub-devices.  Children can use their parent's device structure
13  * (dev.parent) in order to reference it.
14  *
15  * Once the register map has been successfully initialised, any sub-devices
16  * represented by child nodes in Device Tree or via the MFD cells in the
17  * associated C file will be subsequently registered.
18  */
19
20 #ifndef __MFD_SIMPLE_MFD_I2C_H
21 #define __MFD_SIMPLE_MFD_I2C_H
22
23 #include <linux/mfd/core.h>
24 #include <linux/regmap.h>
25
26 struct simple_mfd_data {
27         const struct regmap_config *regmap_config;
28         const struct mfd_cell *mfd_cell;
29         size_t mfd_cell_size;
30 };
31
32 #endif /* __MFD_SIMPLE_MFD_I2C_H */