Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=22c96c28b47ce74d78aad1afbed88b26f43ce24b
Commit:     22c96c28b47ce74d78aad1afbed88b26f43ce24b
Parent:     91921a4e9b033b1bf6ab65be7f9b74b60290f41c
Author:     Ivo van Doorn <[EMAIL PROTECTED]>
AuthorDate: Tue Nov 27 21:48:37 2007 +0100
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Mon Jan 28 15:05:06 2008 -0800

    rt2x00: Add chipset version to chipset debugfs entry
    
    The chipset debugfs entry already indicates it is about the chipset,
    it only makes sense to also display the chipset version in there.
    
    Signed-off-by: Ivo van Doorn <[EMAIL PROTECTED]>
    Signed-off-by: John W. Linville <[EMAIL PROTECTED]>
---
 drivers/net/wireless/rt2x00/rt2x00debug.c |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/drivers/net/wireless/rt2x00/rt2x00debug.c 
b/drivers/net/wireless/rt2x00/rt2x00debug.c
index 92efc5a..3aa7e0a 100644
--- a/drivers/net/wireless/rt2x00/rt2x00debug.c
+++ b/drivers/net/wireless/rt2x00/rt2x00debug.c
@@ -251,16 +251,21 @@ static struct dentry 
*rt2x00debug_create_file_chipset(const char *name,
        const struct rt2x00debug *debug = intf->debug;
        char *data;
 
-       data = kzalloc(4 * PRINT_LINE_LEN_MAX, GFP_KERNEL);
+       data = kzalloc(8 * PRINT_LINE_LEN_MAX, GFP_KERNEL);
        if (!data)
                return NULL;
 
-       blob->data = data;
+       data += sprintf(data, "rt chip: %04x\n", intf->rt2x00dev->chip.rt);
+       data += sprintf(data, "rf chip: %04x\n", intf->rt2x00dev->chip.rf);
+       data += sprintf(data, "revision:%08x\n", intf->rt2x00dev->chip.rev);
+       data += sprintf(data, "\n");
        data += sprintf(data, "csr length: %d\n", debug->csr.word_count);
        data += sprintf(data, "eeprom length: %d\n", debug->eeprom.word_count);
        data += sprintf(data, "bbp length: %d\n", debug->bbp.word_count);
        data += sprintf(data, "rf length: %d\n", debug->rf.word_count);
-       blob->size = strlen(blob->data);
+
+       blob->data = data;
+       blob->size = strlen(data);
 
        return debugfs_create_blob(name, S_IRUGO, intf->driver_folder, blob);
 }
-
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