Re: Platform device id

From: Henrique de Moraes Holschuh
Date: Mon Sep 10 2007 - 18:45:55 EST


On Sat, 08 Sep 2007, Jean Delvare wrote:
> On Fri, 7 Sep 2007 17:56:59 -0300, Henrique de Moraes Holschuh wrote:
> > On 9/7/07, Jean Delvare <khali@xxxxxxxxxxxx> wrote:
> > > To go one step further, I am questioning the real value of this naming
> > > exception for these "unique" platform devices. On top of the bugs I
> > > mentioned above, it has potential for compatibility breakage: adding a
> >
> > Agreed. But the breakage might happen anyway, if you need to move
> > attributes from foo.0 to foo.1. After that first time, userspace will learn
> > to hunt down all foo.* after what it wants, but still...
>
> Moving attributes from one device to another? This doesn't make any
> sense to me, sorry. foo.0 and foo.1 represent different instances of
> the same device type, they typically have the same attributes.

Yeah, I came across that need in an attempt to fix an issue in thinkpad-acpi
which will be fixed in another way (separate modules, or separate platform
devices/platform drivers in the same module). I must have been
sleep-deprieved and in a weird mind state of sorts (and not in a nice way)
to come up with it.

--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh
-
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/