Skip to content

Commit

Permalink
TPM: sysfs functions consolidation
Browse files Browse the repository at this point in the history
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 <srajiv@linux.vnet.ibm.com>
Signed-off-by: James Morris <jmorris@namei.org>
  • Loading branch information
Rajiv Andrade authored and James Morris committed Feb 3, 2009
1 parent faa3aad commit 0883743
Show file tree
Hide file tree
Showing 2 changed files with 266 additions and 269 deletions.
Loading

0 comments on commit 0883743

Please sign in to comment.