projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge tag 'for-5.4-rc1-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave...
[linux-2.6-microblaze.git]
/
samples
/
rpmsg
/
rpmsg_client_sample.c
diff --git
a/samples/rpmsg/rpmsg_client_sample.c
b/samples/rpmsg/rpmsg_client_sample.c
index
2a06955
..
ae50816
100644
(file)
--- a/
samples/rpmsg/rpmsg_client_sample.c
+++ b/
samples/rpmsg/rpmsg_client_sample.c
@@
-14,7
+14,9
@@
#include <linux/rpmsg.h>
#define MSG "hello world!"
#include <linux/rpmsg.h>
#define MSG "hello world!"
-#define MSG_LIMIT 100
+
+static int count = 100;
+module_param(count, int, 0644);
struct instance_data {
int rx_count;
struct instance_data {
int rx_count;
@@
-29,11
+31,11
@@
static int rpmsg_sample_cb(struct rpmsg_device *rpdev, void *data, int len,
dev_info(&rpdev->dev, "incoming msg %d (src: 0x%x)\n",
++idata->rx_count, src);
dev_info(&rpdev->dev, "incoming msg %d (src: 0x%x)\n",
++idata->rx_count, src);
- print_hex_dump
(KERN_DEBUG, __func__, DUMP_PREFIX_NONE, 16, 1
,
-
data, len,
true);
+ print_hex_dump
_debug(__func__, DUMP_PREFIX_NONE, 16, 1, data, len
,
+
true);
/* samples should not live forever */
/* samples should not live forever */
- if (idata->rx_count >=
MSG_LIMIT
) {
+ if (idata->rx_count >=
count
) {
dev_info(&rpdev->dev, "goodbye!\n");
return 0;
}
dev_info(&rpdev->dev, "goodbye!\n");
return 0;
}