git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d57558d
)
i2c: Optimize function i2c_detect()
author
Jean Delvare
<khali@linux-fr.org>
Sun, 24 Oct 2010 16:16:58 +0000
(18:16 +0200)
committer
Jean Delvare
<khali@endymion.delvare>
Sun, 24 Oct 2010 16:16:58 +0000
(18:16 +0200)
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>
drivers/i2c/i2c-core.c
patch
|
blob
|
history
diff --cc
drivers/i2c/i2c-core.c
Simple merge