mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
i2c: Add support for custom probe function
The probe method used by i2c_new_probed_device() may not be suitable for all cases. Let the caller provide its own, optional probe function. Signed-off-by: Jean Delvare <[email protected]> Acked-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
f1c2e33c29
commit
9a94241afc
11 changed files with 31 additions and 21 deletions
|
|
@ -191,7 +191,7 @@ static void* i2c_matroxfb_probe(struct matrox_fb_info* minfo) {
|
|||
};
|
||||
|
||||
i2c_new_probed_device(&m2info->maven.adapter,
|
||||
&maven_info, addr_list);
|
||||
&maven_info, addr_list, NULL);
|
||||
}
|
||||
}
|
||||
return m2info;
|
||||
|
|
|
|||
Loading…
Reference in a new issue