dmi_scan: add comments on dmi_present() and the loop in dmi_scan_machine()
authorBen Hutchings <ben@decadent.org.uk>
Wed, 31 Jul 2013 20:53:30 +0000 (13:53 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 31 Jul 2013 21:41:02 +0000 (14:41 -0700)
commitd39de28c95876f8becb559d242eefe718ea1f747
treec08bfae999e12bc54c0d3a577d439d7a27bf11a3
parent62c610460d73fcfa5637cb497c6923ef1c42b12d
dmi_scan: add comments on dmi_present() and the loop in dmi_scan_machine()

My previous refactoring in commit 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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/firmware/dmi_scan.c