[i2c] Empty i2c device name sysfs attribute
David Brownell
david-b at pacbell.net
Fri Jun 22 21:54:11 CEST 2007
On Friday 22 June 2007, Hans-Jürgen Koch wrote:
> Am Freitag 22 Juni 2007 21:08 schrieb David Brownell:
> > Another solution would be to use a constant string, maybe
> > something like "(unspecified)". If the empty file bothers
> > you, I'd rather go that route than overload the driver name.
>
> Why do you want to give the user less information than available?
How could you read what I wrote as arguing in favor of less info?
I'd rather just leave the empty file. That distinguishes the
case of "no name provided" from "name is the same as the driver".
And in any case, empty files are no problem.
> If the driver doesn't specify a name, it means
> 1) that the driver name is the best you have to identify the device
> 2) that the driver's author is satisfied with this.
It means (2) only. And of course, the driver name is
already available separately.
- Dave
More information about the i2c
mailing list