diff options
author | Suman Anna <s-anna@ti.com> | 2016-04-06 13:37:40 -0400 |
---|---|---|
committer | Jassi Brar <jaswinder.singh@linaro.org> | 2016-04-26 00:49:37 -0400 |
commit | 2665a4c1d456460aea7a2f2bf7113ffdc63077bf (patch) | |
tree | 95e53950944615bd0101f75b8c7427be91f889b1 /drivers/mailbox | |
parent | 0196fa3945970170d8c00684b2a7a32d304a66fb (diff) |
mailbox/omap: add blank lines after declarations
Fix couple of checkpatch warnings of the type,
"WARNING: Missing a blank line after declarations"
Also, fixed a warning about a space after a typecast
while at this.
Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
Diffstat (limited to 'drivers/mailbox')
-rw-r--r-- | drivers/mailbox/omap-mailbox.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/mailbox/omap-mailbox.c b/drivers/mailbox/omap-mailbox.c index 99a66e11ec1e..224b73c31f22 100644 --- a/drivers/mailbox/omap-mailbox.c +++ b/drivers/mailbox/omap-mailbox.c | |||
@@ -154,24 +154,28 @@ void mbox_write_reg(struct omap_mbox_device *mdev, u32 val, size_t ofs) | |||
154 | static mbox_msg_t mbox_fifo_read(struct omap_mbox *mbox) | 154 | static mbox_msg_t mbox_fifo_read(struct omap_mbox *mbox) |
155 | { | 155 | { |
156 | struct omap_mbox_fifo *fifo = &mbox->rx_fifo; | 156 | struct omap_mbox_fifo *fifo = &mbox->rx_fifo; |
157 | return (mbox_msg_t) mbox_read_reg(mbox->parent, fifo->msg); | 157 | |
158 | return (mbox_msg_t)mbox_read_reg(mbox->parent, fifo->msg); | ||
158 | } | 159 | } |
159 | 160 | ||
160 | static void mbox_fifo_write(struct omap_mbox *mbox, mbox_msg_t msg) | 161 | static void mbox_fifo_write(struct omap_mbox *mbox, mbox_msg_t msg) |
161 | { | 162 | { |
162 | struct omap_mbox_fifo *fifo = &mbox->tx_fifo; | 163 | struct omap_mbox_fifo *fifo = &mbox->tx_fifo; |
164 | |||
163 | mbox_write_reg(mbox->parent, msg, fifo->msg); | 165 | mbox_write_reg(mbox->parent, msg, fifo->msg); |
164 | } | 166 | } |
165 | 167 | ||
166 | static int mbox_fifo_empty(struct omap_mbox *mbox) | 168 | static int mbox_fifo_empty(struct omap_mbox *mbox) |
167 | { | 169 | { |
168 | struct omap_mbox_fifo *fifo = &mbox->rx_fifo; | 170 | struct omap_mbox_fifo *fifo = &mbox->rx_fifo; |
171 | |||
169 | return (mbox_read_reg(mbox->parent, fifo->msg_stat) == 0); | 172 | return (mbox_read_reg(mbox->parent, fifo->msg_stat) == 0); |
170 | } | 173 | } |
171 | 174 | ||
172 | static int mbox_fifo_full(struct omap_mbox *mbox) | 175 | static int mbox_fifo_full(struct omap_mbox *mbox) |
173 | { | 176 | { |
174 | struct omap_mbox_fifo *fifo = &mbox->tx_fifo; | 177 | struct omap_mbox_fifo *fifo = &mbox->tx_fifo; |
178 | |||
175 | return mbox_read_reg(mbox->parent, fifo->fifo_stat); | 179 | return mbox_read_reg(mbox->parent, fifo->fifo_stat); |
176 | } | 180 | } |
177 | 181 | ||
@@ -522,6 +526,7 @@ static int omap_mbox_register(struct omap_mbox_device *mdev) | |||
522 | mboxes = mdev->mboxes; | 526 | mboxes = mdev->mboxes; |
523 | for (i = 0; mboxes[i]; i++) { | 527 | for (i = 0; mboxes[i]; i++) { |
524 | struct omap_mbox *mbox = mboxes[i]; | 528 | struct omap_mbox *mbox = mboxes[i]; |
529 | |||
525 | mbox->dev = device_create(&omap_mbox_class, mdev->dev, | 530 | mbox->dev = device_create(&omap_mbox_class, mdev->dev, |
526 | 0, mbox, "%s", mbox->name); | 531 | 0, mbox, "%s", mbox->name); |
527 | if (IS_ERR(mbox->dev)) { | 532 | if (IS_ERR(mbox->dev)) { |