aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorSebastian Ott <sebott@linux.vnet.ibm.com>2013-02-28 06:07:38 -0500
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2013-03-07 03:52:21 -0500
commit93481c90200c50c7874b6a773acc87095ee3907d (patch)
tree1cc69d08a0a545e46c8c38fae62bf9dee06a2a86 /arch
parent8360cb5f389ebd36b708978e0f776a285a2deb5a (diff)
s390/scm_drv: extend notify callback
Extend the notify callback of scm_driver by an event parameter to allow to distinguish between different notifications. Reviewed-by: Peter Oberparleiter <peter.oberparleiter@de.ibm.com> Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com> Signed-off-by: Peter Oberparleiter <peter.oberparleiter@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/s390/include/asm/eadm.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/s390/include/asm/eadm.h b/arch/s390/include/asm/eadm.h
index 8d4847191ecc..a4a1ea49003e 100644
--- a/arch/s390/include/asm/eadm.h
+++ b/arch/s390/include/asm/eadm.h
@@ -96,11 +96,13 @@ struct scm_device {
96#define OP_STATE_TEMP_ERR 2 96#define OP_STATE_TEMP_ERR 2
97#define OP_STATE_PERM_ERR 3 97#define OP_STATE_PERM_ERR 3
98 98
99enum scm_event {SCM_CHANGE};
100
99struct scm_driver { 101struct scm_driver {
100 struct device_driver drv; 102 struct device_driver drv;
101 int (*probe) (struct scm_device *scmdev); 103 int (*probe) (struct scm_device *scmdev);
102 int (*remove) (struct scm_device *scmdev); 104 int (*remove) (struct scm_device *scmdev);
103 void (*notify) (struct scm_device *scmdev); 105 void (*notify) (struct scm_device *scmdev, enum scm_event event);
104 void (*handler) (struct scm_device *scmdev, void *data, int error); 106 void (*handler) (struct scm_device *scmdev, void *data, int error);
105}; 107};
106 108