Subject: Re: device-type or device_type?
To: Wolfgang Solfrank <Wolfgang@Solfrank.net>
From: Matt Sealey <matt@genesi-usa.com>
List: port-ofppc
Date: 10/18/2007 19:11:31
Wolfgang Solfrank wrote:
> Hi,
>
>> Scanning through the whole current source it seems to me as
>> "device_type" is the prefered writing. Only three places differ:
>
> Yes, "device_type" is the correct spelling according to IEEE 1275-1994.
> Actually, the glossary has the following to say at the topic:
>
> Note--This property can be created with *property* or with *device-type*.
> Note the spelling difference between the property name ("device_type")
> and the command name "device-type". This is an historical accident.
> The property name should have been "device-type" for consistency with
> the naming convetions generally used herein, but changing the property
> name would have resulted in compatibility problems for little payback.
>
> Is there any box out there which spells it "device-type"?
No. Most implementors read the specs.
Like it says, there is a command "device-type" which sets the current
device's device_type property, and there is the property. Everyone
writing firmware realises this distinction :D
--
Matt Sealey <matt@genesi-usa.com>
Genesi, Manager, Developer Relations