From: Rajiv Andrade Date: Mon, 2 Feb 2009 17:23:43 +0000 (-0200) Subject: TPM: sysfs functions consolidation X-Git-Tag: v2.6.30-rc1~679^2~48 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0883743825e34b81f3ff78aaee3a97cba57586c5;p=pandora-kernel.git TPM: sysfs functions consolidation According to Dave Hansen's comments on the tpm_show_*, some of these functions present a pattern when allocating data[] memory space and also when setting its content. A new function was created so that this pattern could be consolidated. Also, replaced the data[] command vectors and its indexes by meaningful structures as pointed out by Matt Helsley too. Signed-off-by: Rajiv Andrade Signed-off-by: James Morris --- Reading git-diff-tree failed