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