Skip to contentSkip to conversation

"/sys/devices/legacy" is an offending term

PATCH New Holger Schurig 1 participant 1 message Oct 23, 2003 Driver core

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 "/sys/devices/legacy" is an offending term

Quoted 1 line

echo 50 > /sys/devices/legacy/sa1100fb/brightness

Is there any change to get rid of this "legacy"? From my (still quite limited) understanding of the english language, this means old/outdated and has a not-so-good connotation. It's not just a fact, but puts a negative value into something. But maybe I'm wrong.

Anyway, on embedded arches it makes no sense to say "Oh, PCI is all wow, non-pci is all boo".

I talked on the arm-linux-kernel mailing list and Russell King answered:

Quoted 8 lines

I brought this exact point up with Pat Mochel at OLS this year. At the time, he agreed that it should be renamed to "platform".

I don't know if such a change will now be allowed for the 2.6 series, since it'll effectively be a user-visible interface change.

I do know that Pat is heavily overloaded with work, which probably explains why it hasn't happened.

In the hope that this happens I included a patch below.

If wished, I can provide a bigger patch that renames " legacy_bus" to "legacy_bus" as well.

#
# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
#

drivers/base/platform.c renamed from drivers/base/platform.c~legacy-platform +1 -1
@@ -15,7 +15,7 @@
 #include <linux/init.h>
 
 struct device legacy_bus = {
-       .bus_id         = "legacy",
+       .bus_id         = "platform",
 };
 
 /**
Signature · 2 lines
Try Linux 2.6 from BitKeeper for PXA2x0 CPUs at
http://www.mn-logistik.de/unsupported/linux-2.6/