]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dmi_scan: add comments on dmi_present() and the loop in dmi_scan_machine()
authorBen Hutchings <ben@decadent.org.uk>
Thu, 18 Jul 2013 23:56:24 +0000 (09:56 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 18 Jul 2013 23:56:24 +0000 (09:56 +1000)
commit2c9111134232d8c1fe9579fc0f106f3c437dfb18
tree1af37c9e721c4d5727a0294fa2cbd68bb8bcd45d
parent0bcb1637bdd404c03a3355566aceefd00ae11759
dmi_scan: add comments on dmi_present() and the loop in dmi_scan_machine()

My previous refactoring in 79bae42d51a5 ("dmi_scan: refactor
dmi_scan_machine(), {smbios,dmi}_present()") resulted in slightly tricky
code (though I think it's more elegant).  Explain what it's doing.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Cc: Zhenzhong Duan <zhenzhong.duan@oracle.com>
Cc: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/firmware/dmi_scan.c