s390: remove cu3088 layer for lcs and ctcm
The cu3088-driver used as common base for lcs- and ctcm-devices makes it difficult to assign the appropriate driver to an lcs-device or a ctcm-device. This patch eliminates the cu3088-driver and thus the root device "cu3088". Path /sys/devices/cu3088 is replaced with the pathes /sys/devices/lcs and /sys/devices/ctcm. Patch is based on a proposal from Cornelia Huck. Cc: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
1e1815be87
commit
0ca8cc6fe7
@@ -158,6 +158,15 @@ static ssize_t ctcm_proto_store(struct device *dev,
|
||||
return count;
|
||||
}
|
||||
|
||||
const char *ctcm_type[] = {
|
||||
"not a channel",
|
||||
"CTC/A",
|
||||
"FICON channel",
|
||||
"ESCON channel",
|
||||
"unknown channel type",
|
||||
"unsupported channel type",
|
||||
};
|
||||
|
||||
static ssize_t ctcm_type_show(struct device *dev,
|
||||
struct device_attribute *attr, char *buf)
|
||||
{
|
||||
@@ -168,7 +177,7 @@ static ssize_t ctcm_type_show(struct device *dev,
|
||||
return -ENODEV;
|
||||
|
||||
return sprintf(buf, "%s\n",
|
||||
cu3088_type[cgdev->cdev[0]->id.driver_info]);
|
||||
ctcm_type[cgdev->cdev[0]->id.driver_info]);
|
||||
}
|
||||
|
||||
static DEVICE_ATTR(buffer, 0644, ctcm_buffer_show, ctcm_buffer_write);
|
||||
|
Reference in New Issue
Block a user