summaryrefslogtreecommitdiffstats
path: root/drivers/char/tpm/tpm_eventlog.c
diff options
context:
space:
mode:
authorJason Gunthorpe <jgunthorpe@obsidianresearch.com>2016-02-29 18:29:48 +0100
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>2016-06-25 16:26:35 +0200
commit3635e2ec7cbb9aa054f8d4361dec27b0ca625905 (patch)
treecb2f117546706473370070505aa85fa5858eac72 /drivers/char/tpm/tpm_eventlog.c
parenttpm: Get rid of chip->pdev (diff)
downloadlinux-3635e2ec7cbb9aa054f8d4361dec27b0ca625905.tar.xz
linux-3635e2ec7cbb9aa054f8d4361dec27b0ca625905.zip
tpm: Get rid of devname
Now that we have a proper struct device just use dev_name() to access this value instead of keeping two copies. Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com> Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com> Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Diffstat (limited to 'drivers/char/tpm/tpm_eventlog.c')
-rw-r--r--drivers/char/tpm/tpm_eventlog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/tpm/tpm_eventlog.c b/drivers/char/tpm/tpm_eventlog.c
index 4e6940acf639..e7228863290e 100644
--- a/drivers/char/tpm/tpm_eventlog.c
+++ b/drivers/char/tpm/tpm_eventlog.c
@@ -403,7 +403,7 @@ static int is_bad(void *p)
return 0;
}
-struct dentry **tpm_bios_log_setup(char *name)
+struct dentry **tpm_bios_log_setup(const char *name)
{
struct dentry **ret = NULL, *tpm_dir, *bin_file, *ascii_file;