diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-17 19:34:21 +0200 |
---|---|---|
committer | James Morris <james.l.morris@oracle.com> | 2017-09-24 06:48:56 +0200 |
commit | c2a9c4bf034ab7415ec272c4c86f1c0b796f80e6 (patch) | |
tree | de3799c2544f514818113f53132a21b8c47e5d55 /drivers/char | |
parent | sync to Linus v4.13-rc2 for subsystem developers to work against (diff) | |
download | linux-c2a9c4bf034ab7415ec272c4c86f1c0b796f80e6.tar.xz linux-c2a9c4bf034ab7415ec272c4c86f1c0b796f80e6.zip |
tpm: vtpm: constify vio_device_id
vio_device_id are not supposed to change at runtime. All functions
working with vio_device_id provided by <asm/vio.h> work with
const vio_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Reviewed-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
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>
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/tpm/tpm_ibmvtpm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/tpm/tpm_ibmvtpm.c b/drivers/char/tpm/tpm_ibmvtpm.c index f01d083eced2..d2ce46bd2471 100644 --- a/drivers/char/tpm/tpm_ibmvtpm.c +++ b/drivers/char/tpm/tpm_ibmvtpm.c @@ -32,7 +32,7 @@ static const char tpm_ibmvtpm_driver_name[] = "tpm_ibmvtpm"; -static struct vio_device_id tpm_ibmvtpm_device_table[] = { +static const struct vio_device_id tpm_ibmvtpm_device_table[] = { { "IBM,vtpm", "IBM,vtpm"}, { "", "" } }; |