[PATCH 12/15] s390/zcrypt: make device_type const
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: julia.lawall@xxxxxxx, bp@xxxxxxxxx, mchehab@xxxxxxxxxx, daniel.vetter@xxxxxxxxx, jani.nikula@xxxxxxxxxxxxxxx, seanpaul@xxxxxxxxxxxx, airlied@xxxxxxxx, g.liakhovetski@xxxxxx, tomas.winkler@xxxxxxxxx, dwmw2@xxxxxxxxxxxxx, computersforpeace@xxxxxxxxx, boris.brezillon@xxxxxxxxxxxxxxxxxx, marek.vasut@xxxxxxxxx, richard@xxxxxx, cyrille.pitchen@xxxxxxxxxx, peda@xxxxxxxxxx, kishon@xxxxxx, bhelgaas@xxxxxxxxxx, thierry.reding@xxxxxxxxx, jonathanh@xxxxxxxxxx, dvhart@xxxxxxxxxxxxx, andy@xxxxxxxxxxxxx, ohad@xxxxxxxxxx, bjorn.andersson@xxxxxxxxxx, freude@xxxxxxxxxx, schwidefsky@xxxxxxxxxx, heiko.carstens@xxxxxxxxxx, jth@xxxxxxxxxx, jejb@xxxxxxxxxxxxxxxxxx, martin.petersen@xxxxxxxxxx, lduncan@xxxxxxxx, cleech@xxxxxxxxxx, johan@xxxxxxxxxx, elder@xxxxxxxxxx, gregkh@xxxxxxxxxxxxxxxxxxx, heikki.krogerus@xxxxxxxxxxxxxxx, linux-edac@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, dri-devel@xxxxxxxxxxxxxxxxxxxxx, linux-media@xxxxxxxxxxxxxxx, linux-mtd@xxxxxxxxxxxxxxxxxxx, linux-pci@xxxxxxxxxxxxxxx, linux-tegra@xxxxxxxxxxxxxxx, platform-driver-x86@xxxxxxxxxxxxxxx, linux-remoteproc@xxxxxxxxxxxxxxx, linux-s390@xxxxxxxxxxxxxxx, fcoe-devel@xxxxxxxxxxxxx, linux-scsi@xxxxxxxxxxxxxxx, open-iscsi@xxxxxxxxxxxxxxxx, greybus-dev@xxxxxxxxxxxxxxxx, devel@xxxxxxxxxxxxxxxxxxxx, linux-usb@xxxxxxxxxxxxxxx
- Subject: [PATCH 12/15] s390/zcrypt: make device_type const
- From: Bhumika Goyal <bhumirks@xxxxxxxxx>
- Date: Sat, 19 Aug 2017 13:52:23 +0530
- In-reply-to: <1503130946-2854-1-git-send-email-bhumirks@gmail.com>
- References: <1503130946-2854-1-git-send-email-bhumirks@gmail.com>
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 <bhumirks@xxxxxxxxx>
---
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
_______________________________________________
greybus-dev mailing list
greybus-dev@xxxxxxxxxxxxxxxx
https://lists.linaro.org/mailman/listinfo/greybus-dev
[Index of Archives]
[Asterisk App Development]
[PJ SIP]
[Gnu Gatekeeper]
[IETF Sipping]
[Info Cyrus]
[ALSA User]
[Fedora Linux Users]
[Linux SCTP]
[DCCP]
[Gimp]
[Yosemite News]
[Deep Creek Hot Springs]
[Yosemite Campsites]
[ISDN Cause Codes]
[Asterisk Books]