-
- Downloads
tpm: Pull everything related to /dev/tpmX into tpm-dev.c
CLASS-dev.c is a common idiom for Linux subsystems This pulls all the code related to the miscdev into tpm-dev.c and makes it static. The identical file_operation structs in the drivers are purged and the tpm common code unconditionally creates the miscdev. Signed-off-by:Jason Gunthorpe <jgunthorpe@obsidianresearch.com> Reviewed-by:
Joel Schopp <jschopp@linux.vnet.ibm.com> Reviewed-by:
Ashley Lai <adlai@linux.vnet.ibm.com> [phuewe: tpm_dev_release is now used only in this file, thus the EXPORT_SYMBOL can be dropped and the function be marked as static. It has no other in-kernel users] Signed-off-by:
Peter Huewe <peterhuewe@gmx.de>
Showing
- drivers/char/tpm/Makefile 1 addition, 1 deletiondrivers/char/tpm/Makefile
- drivers/char/tpm/tpm-dev.c 199 additions, 0 deletionsdrivers/char/tpm/tpm-dev.c
- drivers/char/tpm/tpm-interface.c 12 additions, 169 deletionsdrivers/char/tpm/tpm-interface.c
- drivers/char/tpm/tpm.h 5 additions, 6 deletionsdrivers/char/tpm/tpm.h
- drivers/char/tpm/tpm_atmel.c 0 additions, 10 deletionsdrivers/char/tpm/tpm_atmel.c
- drivers/char/tpm/tpm_i2c_atmel.c 0 additions, 10 deletionsdrivers/char/tpm/tpm_i2c_atmel.c
- drivers/char/tpm/tpm_i2c_infineon.c 0 additions, 10 deletionsdrivers/char/tpm/tpm_i2c_infineon.c
- drivers/char/tpm/tpm_i2c_nuvoton.c 0 additions, 10 deletionsdrivers/char/tpm/tpm_i2c_nuvoton.c
- drivers/char/tpm/tpm_i2c_stm_st33.c 0 additions, 10 deletionsdrivers/char/tpm/tpm_i2c_stm_st33.c
- drivers/char/tpm/tpm_ibmvtpm.c 0 additions, 10 deletionsdrivers/char/tpm/tpm_ibmvtpm.c
- drivers/char/tpm/tpm_infineon.c 0 additions, 10 deletionsdrivers/char/tpm/tpm_infineon.c
- drivers/char/tpm/tpm_nsc.c 0 additions, 10 deletionsdrivers/char/tpm/tpm_nsc.c
- drivers/char/tpm/tpm_tis.c 0 additions, 11 deletionsdrivers/char/tpm/tpm_tis.c
- drivers/char/tpm/xen-tpmfront.c 0 additions, 12 deletionsdrivers/char/tpm/xen-tpmfront.c
Loading
Please register or sign in to comment