projects
/
project
/
usbmode.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use an array for messages
[project/usbmode.git]
/
switch.c
diff --git
a/switch.c
b/switch.c
index
3f1e3f3
..
b73fe01
100644
(file)
--- a/
switch.c
+++ b/
switch.c
@@
-84,9
+84,7
@@
void handle_switch(struct usbdev_data *data)
{
static const struct blobmsg_policy data_policy[__DATA_MAX] = {
[DATA_MODE] = { .name = "mode", .type = BLOBMSG_TYPE_STRING },
{
static const struct blobmsg_policy data_policy[__DATA_MAX] = {
[DATA_MODE] = { .name = "mode", .type = BLOBMSG_TYPE_STRING },
- [DATA_MSG] = { .name = "msg", .type = BLOBMSG_TYPE_INT32 },
- [DATA_MSG2] = { .name = "msg2", .type = BLOBMSG_TYPE_INT32 },
- [DATA_MSG3] = { .name = "msg3", .type = BLOBMSG_TYPE_INT32 },
+ [DATA_MSG] = { .name = "msg", .type = BLOBMSG_TYPE_ARRAY },
};
struct blob_attr *tb[__DATA_MAX];
int mode = MODE_GENERIC;
};
struct blob_attr *tb[__DATA_MAX];
int mode = MODE_GENERIC;