summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ogness <john.ogness@linutronix.de>2019-02-15 13:04:40 +0106
committerJohn Ogness <john.ogness@linutronix.de>2019-02-15 13:04:40 +0106
commit2d2484928560dd0ffec90069166b0161cdc84a54 (patch)
treea0bc5f48fe8e766462112f00fa62b454ed296ac3
parentec79ca947b4942cb3f818e92a2c577ca252fd63e (diff)
schulung_tools: hellodriver: update patch-add-sysfs
Since hello.c changed, the patch for adding custom sysfs files needed to be updated. While at it, make the patch into a form that can be used with "git am". Signed-off-by: John Ogness <john.ogness@linutronix.de>
-rw-r--r--schulung_tools/drivers/modules/hellodriver/patch-add-sysfs.diff27
1 files changed, 21 insertions, 6 deletions
diff --git a/schulung_tools/drivers/modules/hellodriver/patch-add-sysfs.diff b/schulung_tools/drivers/modules/hellodriver/patch-add-sysfs.diff
index 3e792fb..44c913e 100644
--- a/schulung_tools/drivers/modules/hellodriver/patch-add-sysfs.diff
+++ b/schulung_tools/drivers/modules/hellodriver/patch-add-sysfs.diff
@@ -1,6 +1,18 @@
---- a/hello.c 2016-06-08 20:21:26.751180497 +0200
-+++ b/hello.c 2016-06-08 20:19:31.655178050 +0200
-@@ -76,6 +76,30 @@ static const struct file_operations hello_fops = {
+From 9ec20c5b243d6f1f83b38b57474cf532c4575a02 Mon Sep 17 00:00:00 2001
+From: John Ogness <john.ogness@linutronix.de>
+Date: Fri, 15 Feb 2019 12:58:25 +0106
+Subject: [PATCH] hello: add custom sysfs files
+
+Signed-off-by: John Ogness <john.ogness@linutronix.de>
+---
+ hello.c | 26 ++++++++++++++++++++++
+ 1 file changed, 26 insertions(+)
+
+diff --git a/hello.c b/hello.c
+index 7f78d06..4c7989a 100644
+--- a/hello.c
++++ b/hello.c
+@@ -77,6 +77,30 @@ static const struct file_operations hello_fops = {
.write = hello_write,
};
@@ -31,12 +43,15 @@
static int hello_probe(struct platform_device *pdev)
{
struct hello_dev *hello;
-@@ -186,6 +210,8 @@ static int __init hello_init(void)
- goto err_out1;
+@@ -187,6 +211,8 @@ static int __init hello_init(void)
+ goto err_region;
}
+ hello_class->dev_groups = hello_device_groups;
+
ret = platform_driver_register(&hello_driver);
if (ret != 0)
- goto err_out2;
+ goto err_class;
+--
+2.1.4
+