• Stepan Moskovchenko's avatar
    of: Output devicetree alias names in uevent · ced4eec9
    Stepan Moskovchenko authored
    In some situations, userspace may want to resolve a
    device by function and logical number (ie, "serial0")
    rather than by the base address or full device path. Being
    able to resolve a device by alias frees userspace from the
    burden of otherwise having to maintain a mapping between
    device addresses and their logical assignments on each
    platform when multiple instances of the same hardware block
    are present in the system.
    Although the uevent device attribute contains devicetree
    compatible information and the full device path, the uevent
    does not list the alises that may have been defined for the
    Signed-off-by: default avatarStepan Moskovchenko <stepanm@codeaurora.org>
    [grant.likely: Removed OF_ALIAS_N field; I don't think it's needed]
    [grant.likely: Added #ifndef _LINUX_OF_PRIVATE_H wrapper]
    Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
of_private.h 1.05 KB