Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=d120b2a4e60cc9e62e7cc5dcf049100af3745cc4
Commit:     d120b2a4e60cc9e62e7cc5dcf049100af3745cc4
Parent:     f86635fad14c4a6810cf0e08488fc9129a3b3b32
Author:     Peter Oberparleiter <[EMAIL PROTECTED]>
AuthorDate: Fri Apr 27 16:01:27 2007 +0200
Committer:  Martin Schwidefsky <[EMAIL PROTECTED]>
CommitDate: Fri Apr 27 16:01:38 2007 +0200

    [S390] cio: Allow 0 and 1 as input for channel path status attribute.
    
    Channel path status can now be modified by writing '0' and '1'
    to the sysfs status attribute in addition to 'offline' and
    'online' respectively.
    
    Signed-off-by: Peter Oberparleiter <[EMAIL PROTECTED]>
    Signed-off-by: Martin Schwidefsky <[EMAIL PROTECTED]>
    Signed-off-by: Heiko Carstens <[EMAIL PROTECTED]>
---
 drivers/s390/cio/chsc.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/s390/cio/chsc.c b/drivers/s390/cio/chsc.c
index bb6f876..b329851 100644
--- a/drivers/s390/cio/chsc.c
+++ b/drivers/s390/cio/chsc.c
@@ -1169,9 +1169,9 @@ chp_status_write(struct device *dev, struct 
device_attribute *attr, const char *
        if (!num_args)
                return count;
 
-       if (!strnicmp(cmd, "on", 2))
+       if (!strnicmp(cmd, "on", 2) || !strcmp(cmd, "1"))
                error = s390_vary_chpid(cp->chpid, 1);
-       else if (!strnicmp(cmd, "off", 3))
+       else if (!strnicmp(cmd, "off", 3) || !strcmp(cmd, "0"))
                error = s390_vary_chpid(cp->chpid, 0);
        else
                error = -EINVAL;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to