Re: [PATCH] cyclades.c sysfs statistics support

From: Greg KH
Date: Tue Sep 28 2004 - 09:21:21 EST


On Tue, Sep 28, 2004 at 09:04:21AM -0300, Marcelo Tosatti wrote:
> + device_create_file(&(cy_card[info->card].pdev->dev), &_cydas[line]);

Why the array of attributes? As you only have one (which is wrong...)
you only need one attribute structure.

> + show_sys_data - shows the data exported to sysfs/device, mostly the signals status involved in the
> + serial communication such as CTS,RTS,DTS,etc

NO! sysfs is 1 value per file. Not a whole bunch of values per one
file. Please change this to create a whole bunch of little files, not
one big one.

thanks,

greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/