i2c-xiic.h 853 B

12345678910111213141516171819202122232425262728293031
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * i2c-xiic.h
  4. * Copyright (c) 2009 Intel Corporation
  5. */
  6. /* Supports:
  7. * Xilinx IIC
  8. */
  9. #ifndef _LINUX_I2C_XIIC_H
  10. #define _LINUX_I2C_XIIC_H
  11. /**
  12. * struct xiic_i2c_platform_data - Platform data of the Xilinx I2C driver
  13. * @num_devices: Number of devices that shall be added when the driver
  14. * is probed.
  15. * @devices: The actuall devices to add.
  16. *
  17. * This purpose of this platform data struct is to be able to provide a number
  18. * of devices that should be added to the I2C bus. The reason is that sometimes
  19. * the I2C board info is not enough, a new PCI board can for instance be
  20. * plugged into a standard PC, and the bus number might be unknown at
  21. * early init time.
  22. */
  23. struct xiic_i2c_platform_data {
  24. u8 num_devices;
  25. struct i2c_board_info const *devices;
  26. };
  27. #endif /* _LINUX_I2C_XIIC_H */