diff options
author | Arvind Yadav <[email protected]> | 2017-08-17 23:04:21 +0530 |
---|---|---|
committer | James Morris <[email protected]> | 2017-09-23 21:48:56 -0700 |
commit | c2a9c4bf034ab7415ec272c4c86f1c0b796f80e6 (patch) | |
tree | de3799c2544f514818113f53132a21b8c47e5d55 | |
parent | 53a2ebaaabc1eb8458796fec3bc1e0e80746b642 (diff) |
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 <[email protected]>
Reviewed-by: Jason Gunthorpe <[email protected]>
Reviewed-by: Jarkko Sakkinen <[email protected]>
Signed-off-by: Jarkko Sakkinen <[email protected]>
Signed-off-by: James Morris <[email protected]>
-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"}, { "", "" } }; |