diff options
author | Lee Jones <lee.jones@linaro.org> | 2015-10-16 08:32:47 -0400 |
---|---|---|
committer | Jassi Brar <jaswinder.singh@linaro.org> | 2015-10-17 01:06:56 -0400 |
commit | 6c03663f98b91cdd04fce2c9fb7a2cc5d164eded (patch) | |
tree | a7d1140f64d9503e5b0ae5fcf2a1a78f2844964f | |
parent | 8ea4484d0c2bb4e2152261943fa1a3522654b1c7 (diff) |
mailbox: Fix a couple of trivial static checker issues
This patch deals with a few spelling, white space and type
warnings reported by Intel's Kbuild Test Robot.
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
-rw-r--r-- | drivers/mailbox/mailbox-sti.c | 2 | ||||
-rw-r--r-- | drivers/mailbox/mailbox-test.c | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/drivers/mailbox/mailbox-sti.c b/drivers/mailbox/mailbox-sti.c index f11d4e8feabf..4835817c5365 100644 --- a/drivers/mailbox/mailbox-sti.c +++ b/drivers/mailbox/mailbox-sti.c | |||
@@ -64,7 +64,7 @@ struct sti_mbox_device { | |||
64 | }; | 64 | }; |
65 | 65 | ||
66 | /** | 66 | /** |
67 | * STi Mailbox platform specfic configuration | 67 | * STi Mailbox platform specific configuration |
68 | * | 68 | * |
69 | * @num_inst: Maximum number of instances in one HW Mailbox | 69 | * @num_inst: Maximum number of instances in one HW Mailbox |
70 | * @num_chan: Maximum number of channel per instance | 70 | * @num_chan: Maximum number of channel per instance |
diff --git a/drivers/mailbox/mailbox-test.c b/drivers/mailbox/mailbox-test.c index cac1ba2f3e22..22f2e40476b9 100644 --- a/drivers/mailbox/mailbox-test.c +++ b/drivers/mailbox/mailbox-test.c | |||
@@ -22,7 +22,7 @@ | |||
22 | #define MBOX_MAX_SIG_LEN 8 | 22 | #define MBOX_MAX_SIG_LEN 8 |
23 | #define MBOX_MAX_MSG_LEN 128 | 23 | #define MBOX_MAX_MSG_LEN 128 |
24 | #define MBOX_BYTES_PER_LINE 16 | 24 | #define MBOX_BYTES_PER_LINE 16 |
25 | #define MBOX_HEXDUMP_LINE_LEN ((MBOX_BYTES_PER_LINE * 4) + 2) | 25 | #define MBOX_HEXDUMP_LINE_LEN ((MBOX_BYTES_PER_LINE * 4) + 2) |
26 | #define MBOX_HEXDUMP_MAX_LEN (MBOX_HEXDUMP_LINE_LEN * \ | 26 | #define MBOX_HEXDUMP_MAX_LEN (MBOX_HEXDUMP_LINE_LEN * \ |
27 | (MBOX_MAX_MSG_LEN / MBOX_BYTES_PER_LINE)) | 27 | (MBOX_MAX_MSG_LEN / MBOX_BYTES_PER_LINE)) |
28 | 28 | ||
@@ -30,7 +30,7 @@ static struct dentry *root_debugfs_dir; | |||
30 | 30 | ||
31 | struct mbox_test_device { | 31 | struct mbox_test_device { |
32 | struct device *dev; | 32 | struct device *dev; |
33 | void __iomem *mmio; | 33 | void *mmio; |
34 | struct mbox_chan *tx_channel; | 34 | struct mbox_chan *tx_channel; |
35 | struct mbox_chan *rx_channel; | 35 | struct mbox_chan *rx_channel; |
36 | char *rx_buffer; | 36 | char *rx_buffer; |
@@ -53,7 +53,7 @@ static ssize_t mbox_test_signal_write(struct file *filp, | |||
53 | 53 | ||
54 | if (count > MBOX_MAX_SIG_LEN) { | 54 | if (count > MBOX_MAX_SIG_LEN) { |
55 | dev_err(tdev->dev, | 55 | dev_err(tdev->dev, |
56 | "Signal length %d greater than max allowed %d\n", | 56 | "Signal length %zd greater than max allowed %d\n", |
57 | count, MBOX_MAX_SIG_LEN); | 57 | count, MBOX_MAX_SIG_LEN); |
58 | return -EINVAL; | 58 | return -EINVAL; |
59 | } | 59 | } |
@@ -92,7 +92,7 @@ static ssize_t mbox_test_message_write(struct file *filp, | |||
92 | 92 | ||
93 | if (count > MBOX_MAX_MSG_LEN) { | 93 | if (count > MBOX_MAX_MSG_LEN) { |
94 | dev_err(tdev->dev, | 94 | dev_err(tdev->dev, |
95 | "Message length %d greater than max allowed %d\n", | 95 | "Message length %zd greater than max allowed %d\n", |
96 | count, MBOX_MAX_MSG_LEN); | 96 | count, MBOX_MAX_MSG_LEN); |
97 | return -EINVAL; | 97 | return -EINVAL; |
98 | } | 98 | } |
@@ -303,7 +303,7 @@ static int mbox_test_probe(struct platform_device *pdev) | |||
303 | tdev->tx_channel = mbox_test_request_channel(pdev, "tx"); | 303 | tdev->tx_channel = mbox_test_request_channel(pdev, "tx"); |
304 | tdev->rx_channel = mbox_test_request_channel(pdev, "rx"); | 304 | tdev->rx_channel = mbox_test_request_channel(pdev, "rx"); |
305 | 305 | ||
306 | if (!tdev->tx_channel && !tdev->tx_channel) | 306 | if (!tdev->tx_channel && !tdev->rx_channel) |
307 | return -EPROBE_DEFER; | 307 | return -EPROBE_DEFER; |
308 | 308 | ||
309 | tdev->dev = &pdev->dev; | 309 | tdev->dev = &pdev->dev; |