]> git.baikalelectronics.ru Git - kernel.git/commit
tpm: ibmvtpm: simplify crq initialization and document crq format
authorMichal Suchanek <msuchanek@suse.de>
Fri, 24 Feb 2017 19:35:16 +0000 (20:35 +0100)
committerJames Morris <james.l.morris@oracle.com>
Sun, 24 Sep 2017 04:51:38 +0000 (21:51 -0700)
commit8b4c60b8d3f60be990e06076f2f795b14cb7ed15
tree51ee9631886c462cddde40b4492e429b177f97be
parent1aa3a9b0b6db384685b54d8c711d98e5b926a52d
tpm: ibmvtpm: simplify crq initialization and document crq format

The crq is passed in registers and is the same on BE and LE hosts.
However, current implementation allocates a structure on-stack to
represent the crq, initializes the members swapping them to BE, and
loads the structure swapping it from BE. This is pointless and causes
GCC warnings about ununitialized members. Get rid of the structure and
the warnings.

Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: James Morris <james.l.morris@oracle.com>
drivers/char/tpm/tpm_ibmvtpm.c