Make these const as they are only stored in the type field of a device structure, which is const. Done using Coccinelle.
Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- drivers/s390/crypto/ap_card.c | 2 +- drivers/s390/crypto/ap_queue.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/s390/crypto/ap_card.c b/drivers/s390/crypto/ap_card.c index 836efac9..0329148 100644 --- a/drivers/s390/crypto/ap_card.c +++ b/drivers/s390/crypto/ap_card.c @@ -153,7 +153,7 @@ static ssize_t ap_modalias_show(struct device *dev, NULL }; -static struct device_type ap_card_type = { +static const struct device_type ap_card_type = { .name = "ap_card", .groups = ap_card_dev_attr_groups, }; diff --git a/drivers/s390/crypto/ap_queue.c b/drivers/s390/crypto/ap_queue.c index 0f1a5d0..e2a85c26 100644 --- a/drivers/s390/crypto/ap_queue.c +++ b/drivers/s390/crypto/ap_queue.c @@ -577,7 +577,7 @@ static ssize_t ap_interrupt_show(struct device *dev, NULL }; -static struct device_type ap_queue_type = { +static const struct device_type ap_queue_type = { .name = "ap_queue", .groups = ap_queue_dev_attr_groups, }; -- 1.9.1 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel