33 lines · c
1// SPDX-License-Identifier: GPL-2.0-only2/*3 * Simple MFD - I2C4 *5 * Author: Lee Jones <lee.jones@linaro.org>6 *7 * This driver creates a single register map with the intention for it to be8 * shared by all sub-devices. Children can use their parent's device structure9 * (dev.parent) in order to reference it.10 *11 * This driver creates a single register map with the intention for it to be12 * shared by all sub-devices. Children can use their parent's device structure13 * (dev.parent) in order to reference it.14 *15 * Once the register map has been successfully initialised, any sub-devices16 * represented by child nodes in Device Tree or via the MFD cells in the17 * associated C file will be subsequently registered.18 */19 20#ifndef __MFD_SIMPLE_MFD_I2C_H21#define __MFD_SIMPLE_MFD_I2C_H22 23#include <linux/mfd/core.h>24#include <linux/regmap.h>25 26struct 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 */33