diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-11-03 16:05:34 -0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-11-03 16:05:34 -0800 |
| commit | 52894f7f35f3c6ad2b3362f021cdee69797d7a79 (patch) | |
| tree | 798f5b8bfb2a5b23e49fb68002f660b694c4e672 /s01.patch | |
| parent | ad2f0a874ca11c77885ea119cc80fe40c7e29eb3 (diff) | |
| download | patches-52894f7f35f3c6ad2b3362f021cdee69797d7a79.tar.gz | |
renames and a new patch
Diffstat (limited to 's01.patch')
| -rw-r--r-- | s01.patch | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/s01.patch b/s01.patch deleted file mode 100644 index 9c838730d460e0..00000000000000 --- a/s01.patch +++ /dev/null @@ -1,62 +0,0 @@ -From foo@baz Mon Oct 7 18:00:52 PDT 2013 -Date: Mon, 07 Oct 2013 18:00:52 -0700 -To: Greg KH <gregkh@linuxfoundation.org> -From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> -Subject: [PATCH 01/02] input: serio: use DEVICE_ATTR_RO() - -Convert the serio sysfs fiels to use the DEVICE_ATTR_RO() macros to make -it easier to audit the correct sysfs file permission usage. - -Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com> -Cc: <linux-input@vger.kernel.org> -Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> - ---- - drivers/input/serio/serio.c | 16 ++++++++-------- - 1 file changed, 8 insertions(+), 8 deletions(-) - ---- a/drivers/input/serio/serio.c -+++ b/drivers/input/serio/serio.c -@@ -373,34 +373,34 @@ static ssize_t serio_show_modalias(struc - serio->id.type, serio->id.proto, serio->id.id, serio->id.extra); - } - --static ssize_t serio_show_id_type(struct device *dev, struct device_attribute *attr, char *buf) -+static ssize_t type_show(struct device *dev, struct device_attribute *attr, char *buf) - { - struct serio *serio = to_serio_port(dev); - return sprintf(buf, "%02x\n", serio->id.type); - } - --static ssize_t serio_show_id_proto(struct device *dev, struct device_attribute *attr, char *buf) -+static ssize_t proto_show(struct device *dev, struct device_attribute *attr, char *buf) - { - struct serio *serio = to_serio_port(dev); - return sprintf(buf, "%02x\n", serio->id.proto); - } - --static ssize_t serio_show_id_id(struct device *dev, struct device_attribute *attr, char *buf) -+static ssize_t id_show(struct device *dev, struct device_attribute *attr, char *buf) - { - struct serio *serio = to_serio_port(dev); - return sprintf(buf, "%02x\n", serio->id.id); - } - --static ssize_t serio_show_id_extra(struct device *dev, struct device_attribute *attr, char *buf) -+static ssize_t extra_show(struct device *dev, struct device_attribute *attr, char *buf) - { - struct serio *serio = to_serio_port(dev); - return sprintf(buf, "%02x\n", serio->id.extra); - } - --static DEVICE_ATTR(type, S_IRUGO, serio_show_id_type, NULL); --static DEVICE_ATTR(proto, S_IRUGO, serio_show_id_proto, NULL); --static DEVICE_ATTR(id, S_IRUGO, serio_show_id_id, NULL); --static DEVICE_ATTR(extra, S_IRUGO, serio_show_id_extra, NULL); -+static DEVICE_ATTR_RO(type); -+static DEVICE_ATTR_RO(proto); -+static DEVICE_ATTR_RO(id); -+static DEVICE_ATTR_RO(extra); - - static struct attribute *serio_device_id_attrs[] = { - &dev_attr_type.attr, |
