chiark / gitweb /
[PATCH] allow SYSFS{file}
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>
Tue, 17 Feb 2004 05:39:40 +0000 (21:39 -0800)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:32:28 +0000 (21:32 -0700)
commitbb7386472466e55f75df024d18e8da37a222bb41
tree7d4af2ceff39fd29a623801207e85e46378e133e
parenta27cd06c6d3c83d9906f5e1aaf8d3c4b32055830
[PATCH] allow SYSFS{file}

On Sun, Feb 15, 2004 at 03:36:00AM +0100, Kay Sievers wrote:
>
> Since we have %s{file} it may be nice to allow SYSFS{file}.
> This patch allows:
>
>   BUS="usb", SYSFS{idProduct}="a511", NAME="video%n"
>
> compared to the current:
>
>   BUS="usb", SYSFS_idProduct="a511", NAME="video%n"
>
> The curent syntax is still supported.
> Looks a bit nicer and less hackish, I think.

Better patch with infrastructure to easily implement KEY{attribute}
for every other key. The first user is the SYSFS{file} key.
Both versions, brackets or underscore is supported for the attribute.
namedev.h
namedev_parse.c
test/udev-test.pl