diff options
-rw-r--r-- | drivers/platform/x86/chromeos_laptop.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers/platform/x86/chromeos_laptop.c b/drivers/platform/x86/chromeos_laptop.c index 577e64d9f0ac..c13f0c5e282a 100644 --- a/drivers/platform/x86/chromeos_laptop.c +++ b/drivers/platform/x86/chromeos_laptop.c | |||
@@ -148,6 +148,26 @@ static int __init find_i2c_adapter_num(enum i2c_adapter_type type) | |||
148 | } | 148 | } |
149 | 149 | ||
150 | /* | 150 | /* |
151 | * Takes a list of addresses in addrs as such : | ||
152 | * { addr1, ... , addrn, I2C_CLIENT_END }; | ||
153 | * add_probed_i2c_device will use i2c_new_probed_device | ||
154 | * and probe for devices at all of the addresses listed. | ||
155 | * Returns NULL if no devices found. | ||
156 | * See Documentation/i2c/instantiating-devices for more information. | ||
157 | */ | ||
158 | static __init struct i2c_client *add_probed_i2c_device( | ||
159 | const char *name, | ||
160 | enum i2c_adapter_type type, | ||
161 | struct i2c_board_info *info, | ||
162 | const unsigned short *addrs) | ||
163 | { | ||
164 | return __add_probed_i2c_device(name, | ||
165 | find_i2c_adapter_num(type), | ||
166 | info, | ||
167 | addrs); | ||
168 | } | ||
169 | |||
170 | /* | ||
151 | * Probes for a device at a single address, the one provided by | 171 | * Probes for a device at a single address, the one provided by |
152 | * info->addr. | 172 | * info->addr. |
153 | * Returns NULL if no device found. | 173 | * Returns NULL if no device found. |