gpio: present the consumer of a line to userspace
[deliverable/linux.git] / drivers / gpio / gpiolib.c
index 872774a404f1752549753975082298e2381315c7..bc788b958c7efb0a9000913e904d7a3acbf9869c 100644 (file)
@@ -368,11 +368,11 @@ static long gpio_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
                        lineinfo.name[0] = '\0';
                }
                if (desc->label) {
-                       strncpy(lineinfo.label, desc->label,
-                               sizeof(lineinfo.label));
-                       lineinfo.label[sizeof(lineinfo.label)-1] = '\0';
+                       strncpy(lineinfo.consumer, desc->label,
+                               sizeof(lineinfo.consumer));
+                       lineinfo.consumer[sizeof(lineinfo.consumer)-1] = '\0';
                } else {
-                       lineinfo.label[0] = '\0';
+                       lineinfo.consumer[0] = '\0';
                }
 
                /*
This page took 0.028774 seconds and 5 git commands to generate.