projects
/
openwrt
/
svn-archive
/
archive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ucmb: Add more documentation and example code for AVR8
[openwrt/svn-archive/archive.git]
/
utils
/
ucmb
/
driver
/
ucmb.c
diff --git
a/utils/ucmb/driver/ucmb.c
b/utils/ucmb/driver/ucmb.c
index 276553ada52e4e52d2a77802e78e07fef4c7c531..2b7232c40d83464ab25820e2d23dcb65d403e20b 100644
(file)
--- a/
utils/ucmb/driver/ucmb.c
+++ b/
utils/ucmb/driver/ucmb.c
@@
-22,7
+22,7
@@
#define PFX "ucmb: "
#define PFX "ucmb: "
-#
define
DEBUG
+#
undef
DEBUG
MODULE_LICENSE("GPL");
MODULE_LICENSE("GPL");
@@
-60,7
+60,6
@@
struct ucmb_status {
} __attribute__((packed));
#define UCMB_MAGIC 0x1337
} __attribute__((packed));
#define UCMB_MAGIC 0x1337
-#define UCMB_MAX_MSG_LEN 0x200
enum ucmb_status_code {
UCMB_STAT_OK = 0,
enum ucmb_status_code {
UCMB_STAT_OK = 0,
@@
-217,7
+216,6
@@
static ssize_t ucmb_write(struct file *filp, const char __user *user_buf,
goto out;
size = min_t(size_t, PAGE_SIZE, size);
goto out;
size = min_t(size_t, PAGE_SIZE, size);
- size = min_t(size_t, UCMB_MAX_MSG_LEN, size);
err = -EFAULT;
if (copy_from_user(buf, user_buf, size))
goto out_free;
err = -EFAULT;
if (copy_from_user(buf, user_buf, size))
goto out_free;