diff options
author | Jean Delvare <khali@linux-fr.org> | 2010-10-24 18:16:58 +0200 |
---|---|---|
committer | Jean Delvare <khali@endymion.delvare> | 2010-10-24 18:16:58 +0200 |
commit | 51b54ba9bb16b9fc28ec88006778d330af00bf8b (patch) | |
tree | d6d6da1639ada491d731d7452f6fc9272451944e /drivers/i2c/muxes | |
parent | i2c: Discard warning message on device instantiation from user-space (diff) | |
download | linux-51b54ba9bb16b9fc28ec88006778d330af00bf8b.tar.xz linux-51b54ba9bb16b9fc28ec88006778d330af00bf8b.zip |
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>
Diffstat (limited to 'drivers/i2c/muxes')
0 files changed, 0 insertions, 0 deletions