diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-17 23:04:21 +0530 |
---|---|---|
committer | James Morris <james.l.morris@oracle.com> | 2017-09-23 21:48:56 -0700 |
commit | c2a9c4bf034ab7415ec272c4c86f1c0b796f80e6 (patch) | |
tree | de3799c2544f514818113f53132a21b8c47e5d55 /drivers | |
parent | 53a2ebaaabc1eb8458796fec3bc1e0e80746b642 (diff) | |
download | linux-stable-c2a9c4bf034ab7415ec272c4c86f1c0b796f80e6.tar.gz linux-stable-c2a9c4bf034ab7415ec272c4c86f1c0b796f80e6.tar.bz2 linux-stable-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')
-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"}, { "", "" } }; |