summaryrefslogtreecommitdiff
path: root/namedev.h
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-02-16 21:39:40 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:32:28 -0700
commitbb7386472466e55f75df024d18e8da37a222bb41 (patch)
tree7d4af2ceff39fd29a623801207e85e46378e133e /namedev.h
parenta27cd06c6d3c83d9906f5e1aaf8d3c4b32055830 (diff)
downloadsystemd-bb7386472466e55f75df024d18e8da37a222bb41.tar.gz
[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.
Diffstat (limited to 'namedev.h')
-rw-r--r--namedev.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/namedev.h b/namedev.h
index a0cdba6b16..e38c4f5257 100644
--- a/namedev.h
+++ b/namedev.h
@@ -36,7 +36,7 @@ struct sysfs_class_device;
#define PROGRAM_SIZE 100
#define FIELD_BUS "BUS"
-#define FIELD_SYSFS "SYSFS_"
+#define FIELD_SYSFS "SYSFS"
#define FIELD_ID "ID"
#define FIELD_PLACE "PLACE"
#define FIELD_PROGRAM "PROGRAM"