simple-mfd-i2c.h 1010 B

1234567891011121314151617181920212223242526272829303132
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Simple MFD - I2C
  4. *
  5. * Author: Lee Jones <[email protected]>
  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. #ifndef __MFD_SIMPLE_MFD_I2C_H
  20. #define __MFD_SIMPLE_MFD_I2C_H
  21. #include <linux/mfd/core.h>
  22. #include <linux/regmap.h>
  23. struct simple_mfd_data {
  24. const struct regmap_config *regmap_config;
  25. const struct mfd_cell *mfd_cell;
  26. size_t mfd_cell_size;
  27. };
  28. #endif /* __MFD_SIMPLE_MFD_I2C_H */