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:
Jean Delvare 2010-08-11 18:20:56 +02:00
commit 9a94241afc
11 changed files with 31 additions and 21 deletions

View file

@ -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;