diff options
Diffstat (limited to 'drivers/s390/net/ctcm_sysfs.c')
-rw-r--r-- | drivers/s390/net/ctcm_sysfs.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/drivers/s390/net/ctcm_sysfs.c b/drivers/s390/net/ctcm_sysfs.c index 8452bb052d68..2b24550e865e 100644 --- a/drivers/s390/net/ctcm_sysfs.c +++ b/drivers/s390/net/ctcm_sysfs.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt | 14 | #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt |
15 | 15 | ||
16 | #include <linux/sysfs.h> | 16 | #include <linux/sysfs.h> |
17 | #include <linux/slab.h> | ||
17 | #include "ctcm_main.h" | 18 | #include "ctcm_main.h" |
18 | 19 | ||
19 | /* | 20 | /* |
@@ -158,6 +159,15 @@ static ssize_t ctcm_proto_store(struct device *dev, | |||
158 | return count; | 159 | return count; |
159 | } | 160 | } |
160 | 161 | ||
162 | const char *ctcm_type[] = { | ||
163 | "not a channel", | ||
164 | "CTC/A", | ||
165 | "FICON channel", | ||
166 | "ESCON channel", | ||
167 | "unknown channel type", | ||
168 | "unsupported channel type", | ||
169 | }; | ||
170 | |||
161 | static ssize_t ctcm_type_show(struct device *dev, | 171 | static ssize_t ctcm_type_show(struct device *dev, |
162 | struct device_attribute *attr, char *buf) | 172 | struct device_attribute *attr, char *buf) |
163 | { | 173 | { |
@@ -168,7 +178,7 @@ static ssize_t ctcm_type_show(struct device *dev, | |||
168 | return -ENODEV; | 178 | return -ENODEV; |
169 | 179 | ||
170 | return sprintf(buf, "%s\n", | 180 | return sprintf(buf, "%s\n", |
171 | cu3088_type[cgdev->cdev[0]->id.driver_info]); | 181 | ctcm_type[cgdev->cdev[0]->id.driver_info]); |
172 | } | 182 | } |
173 | 183 | ||
174 | static DEVICE_ATTR(buffer, 0644, ctcm_buffer_show, ctcm_buffer_write); | 184 | static DEVICE_ATTR(buffer, 0644, ctcm_buffer_show, ctcm_buffer_write); |