aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWinkler, Tomas <tomas.winkler@intel.com>2016-10-31 21:05:13 -0400
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>2016-11-27 18:31:30 -0500
commitca6d45802201c2680af040579af7697049149e38 (patch)
treeceb2d3ce5fe9aa8b911964e3875780cc857876a0
parent84fda15286d1bcf15e1c5cfb8320c5fab770165f (diff)
tpm: place kdoc just above tpm_pcr_extend
Place kdoc just above tpm_pcr_extend so it can be parsed correctly. Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
-rw-r--r--drivers/char/tpm/tpm-interface.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/char/tpm/tpm-interface.c b/drivers/char/tpm/tpm-interface.c
index fa9752087181..ffdae1daa138 100644
--- a/drivers/char/tpm/tpm-interface.c
+++ b/drivers/char/tpm/tpm-interface.c
@@ -703,6 +703,14 @@ int tpm_pcr_read(u32 chip_num, int pcr_idx, u8 *res_buf)
703} 703}
704EXPORT_SYMBOL_GPL(tpm_pcr_read); 704EXPORT_SYMBOL_GPL(tpm_pcr_read);
705 705
706#define TPM_ORD_PCR_EXTEND cpu_to_be32(20)
707#define EXTEND_PCR_RESULT_SIZE 34
708static const struct tpm_input_header pcrextend_header = {
709 .tag = TPM_TAG_RQU_COMMAND,
710 .length = cpu_to_be32(34),
711 .ordinal = TPM_ORD_PCR_EXTEND
712};
713
706/** 714/**
707 * tpm_pcr_extend - extend pcr value with hash 715 * tpm_pcr_extend - extend pcr value with hash
708 * @chip_num: tpm idx # or AN& 716 * @chip_num: tpm idx # or AN&
@@ -713,14 +721,6 @@ EXPORT_SYMBOL_GPL(tpm_pcr_read);
713 * isn't, protect against the chip disappearing, by incrementing 721 * isn't, protect against the chip disappearing, by incrementing
714 * the module usage count. 722 * the module usage count.
715 */ 723 */
716#define TPM_ORD_PCR_EXTEND cpu_to_be32(20)
717#define EXTEND_PCR_RESULT_SIZE 34
718static const struct tpm_input_header pcrextend_header = {
719 .tag = TPM_TAG_RQU_COMMAND,
720 .length = cpu_to_be32(34),
721 .ordinal = TPM_ORD_PCR_EXTEND
722};
723
724int tpm_pcr_extend(u32 chip_num, int pcr_idx, const u8 *hash) 724int tpm_pcr_extend(u32 chip_num, int pcr_idx, const u8 *hash)
725{ 725{
726 struct tpm_cmd_t cmd; 726 struct tpm_cmd_t cmd;