Jean Delvare 51b54ba9bb i2c: Optimize function i2c_detect()
Check the class flags before allocating the temporary i2c_client
structure, to avoid allocating it when we don't need it.

Also optimize the inner loop a bit.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Jacob Pan <jacob.jun.pan@linux.intel.com>
2010-10-24 18:16:58 +02:00
..
2010-10-24 18:16:58 +02:00
2010-10-24 18:16:58 +02:00
2010-10-24 18:16:58 +02:00
2010-10-24 18:16:57 +02:00
2010-10-24 18:16:58 +02:00