[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1502793344-5368-2-git-send-email-arvind.yadav.cs@gmail.com>
Date: Tue, 15 Aug 2017 16:05:32 +0530
From: Arvind Yadav <arvind.yadav.cs@...il.com>
To: schwidefsky@...ibm.com, heiko.carstens@...ibm.com,
sth@...ux.vnet.ibm.com, hoeppner@...ux.vnet.ibm.com,
jwi@...ux.vnet.ibm.com, ubraun@...ux.vnet.ibm.com,
maier@...ux.vnet.ibm.com, cohuck@...hat.com,
pasic@...ux.vnet.ibm.com
Cc: linux-kernel@...r.kernel.org, linux-s390@...r.kernel.org
Subject: [RFT 01/13] s390: ccwdev: constify ccw_device_id
ccw_device_id are not supposed to change at runtime. AlL functions
working with ccw_device_id provided by <asm/ccwdev.h> work with
const ccw_device_id. So mark ccw_device_id as const.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@...il.com>
---
arch/s390/include/asm/ccwdev.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/s390/include/asm/ccwdev.h b/arch/s390/include/asm/ccwdev.h
index b80e456..d5c7af2 100644
--- a/arch/s390/include/asm/ccwdev.h
+++ b/arch/s390/include/asm/ccwdev.h
@@ -132,7 +132,7 @@ enum uc_todo {
* @int_class: interruption class to use for accounting interrupts
*/
struct ccw_driver {
- struct ccw_device_id *ids;
+ const struct ccw_device_id *ids;
int (*probe) (struct ccw_device *);
void (*remove) (struct ccw_device *);
int (*set_online) (struct ccw_device *);
--
2.7.4
Powered by blists - more mailing lists