| .. | .. |
|---|
| 9 | 9 | #include <linux/slab.h> |
|---|
| 10 | 10 | #include <linux/sizes.h> |
|---|
| 11 | 11 | #include <linux/uaccess.h> |
|---|
| 12 | | - |
|---|
| 13 | | -#include "greybus.h" |
|---|
| 12 | +#include <linux/greybus.h> |
|---|
| 14 | 13 | |
|---|
| 15 | 14 | struct gb_log { |
|---|
| 16 | 15 | struct gb_connection *connection; |
|---|
| .. | .. |
|---|
| 31 | 30 | /* Verify size of payload */ |
|---|
| 32 | 31 | if (op->request->payload_size < sizeof(*receive)) { |
|---|
| 33 | 32 | dev_err(dev, "log request too small (%zu < %zu)\n", |
|---|
| 34 | | - op->request->payload_size, sizeof(*receive)); |
|---|
| 33 | + op->request->payload_size, sizeof(*receive)); |
|---|
| 35 | 34 | return -EINVAL; |
|---|
| 36 | 35 | } |
|---|
| 37 | 36 | receive = op->request->payload; |
|---|
| 38 | 37 | len = le16_to_cpu(receive->len); |
|---|
| 39 | 38 | if (len != (op->request->payload_size - sizeof(*receive))) { |
|---|
| 40 | 39 | dev_err(dev, "log request wrong size %d vs %zu\n", len, |
|---|
| 41 | | - (op->request->payload_size - sizeof(*receive))); |
|---|
| 40 | + (op->request->payload_size - sizeof(*receive))); |
|---|
| 42 | 41 | return -EINVAL; |
|---|
| 43 | 42 | } |
|---|
| 44 | 43 | if (len == 0) { |
|---|
| .. | .. |
|---|
| 83 | 82 | return -ENOMEM; |
|---|
| 84 | 83 | |
|---|
| 85 | 84 | connection = gb_connection_create(bundle, le16_to_cpu(cport_desc->id), |
|---|
| 86 | | - gb_log_request_handler); |
|---|
| 85 | + gb_log_request_handler); |
|---|
| 87 | 86 | if (IS_ERR(connection)) { |
|---|
| 88 | 87 | retval = PTR_ERR(connection); |
|---|
| 89 | 88 | goto error_free; |
|---|