diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-11-28 17:15:12 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-11-28 17:15:12 +0100 |
| commit | 3c37d678907cad7f656ff2d3f1d7d9781cf90b58 (patch) | |
| tree | d13e7cf127bf245f02051652a18a6c4a81676903 /d04.patch | |
| parent | 8617ccb8a6b3029e50b9fa2c8097a7e7ab88fc6b (diff) | |
| download | patches-3c37d678907cad7f656ff2d3f1d7d9781cf90b58.tar.gz | |
old patches broken up and refreshed
Diffstat (limited to 'd04.patch')
| -rw-r--r-- | d04.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/d04.patch b/d04.patch new file mode 100644 index 00000000000000..a55e2d82f0c3f6 --- /dev/null +++ b/d04.patch @@ -0,0 +1,32 @@ +--- + drivers/tty/hvc/hvcs.c | 7 +++---- + 1 file changed, 3 insertions(+), 4 deletions(-) + +--- a/drivers/tty/hvc/hvcs.c ++++ b/drivers/tty/hvc/hvcs.c +@@ -484,13 +484,13 @@ static struct attribute_group hvcs_attr_ + .attrs = hvcs_attrs, + }; + +-static ssize_t hvcs_rescan_show(struct device_driver *ddp, char *buf) ++static ssize_t rescan_show(struct device_driver *ddp, char *buf) + { + /* A 1 means it is updating, a 0 means it is done updating */ + return snprintf(buf, PAGE_SIZE, "%d\n", hvcs_rescan_status); + } + +-static ssize_t hvcs_rescan_store(struct device_driver *ddp, const char * buf, ++static ssize_t rescan_store(struct device_driver *ddp, const char * buf, + size_t count) + { + if ((simple_strtol(buf, NULL, 0) != 1) +@@ -505,8 +505,7 @@ static ssize_t hvcs_rescan_store(struct + return count; + } + +-static DRIVER_ATTR(rescan, +- S_IRUGO | S_IWUSR, hvcs_rescan_show, hvcs_rescan_store); ++static DRIVER_ATTR_RW(rescan); + + static void hvcs_kick(void) + { |
