mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-30 19:15:14 +00:00
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>
This commit is contained in:
parent
0196fa3945
commit
2665a4c1d4
1 changed files with 6 additions and 1 deletions
|
@ -154,24 +154,28 @@ void mbox_write_reg(struct omap_mbox_device *mdev, u32 val, size_t ofs)
|
||||||
static mbox_msg_t mbox_fifo_read(struct omap_mbox *mbox)
|
static mbox_msg_t mbox_fifo_read(struct omap_mbox *mbox)
|
||||||
{
|
{
|
||||||
struct omap_mbox_fifo *fifo = &mbox->rx_fifo;
|
struct omap_mbox_fifo *fifo = &mbox->rx_fifo;
|
||||||
return (mbox_msg_t) mbox_read_reg(mbox->parent, fifo->msg);
|
|
||||||
|
return (mbox_msg_t)mbox_read_reg(mbox->parent, fifo->msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void mbox_fifo_write(struct omap_mbox *mbox, mbox_msg_t msg)
|
static void mbox_fifo_write(struct omap_mbox *mbox, mbox_msg_t msg)
|
||||||
{
|
{
|
||||||
struct omap_mbox_fifo *fifo = &mbox->tx_fifo;
|
struct omap_mbox_fifo *fifo = &mbox->tx_fifo;
|
||||||
|
|
||||||
mbox_write_reg(mbox->parent, msg, fifo->msg);
|
mbox_write_reg(mbox->parent, msg, fifo->msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int mbox_fifo_empty(struct omap_mbox *mbox)
|
static int mbox_fifo_empty(struct omap_mbox *mbox)
|
||||||
{
|
{
|
||||||
struct omap_mbox_fifo *fifo = &mbox->rx_fifo;
|
struct omap_mbox_fifo *fifo = &mbox->rx_fifo;
|
||||||
|
|
||||||
return (mbox_read_reg(mbox->parent, fifo->msg_stat) == 0);
|
return (mbox_read_reg(mbox->parent, fifo->msg_stat) == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int mbox_fifo_full(struct omap_mbox *mbox)
|
static int mbox_fifo_full(struct omap_mbox *mbox)
|
||||||
{
|
{
|
||||||
struct omap_mbox_fifo *fifo = &mbox->tx_fifo;
|
struct omap_mbox_fifo *fifo = &mbox->tx_fifo;
|
||||||
|
|
||||||
return mbox_read_reg(mbox->parent, fifo->fifo_stat);
|
return mbox_read_reg(mbox->parent, fifo->fifo_stat);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -522,6 +526,7 @@ static int omap_mbox_register(struct omap_mbox_device *mdev)
|
||||||
mboxes = mdev->mboxes;
|
mboxes = mdev->mboxes;
|
||||||
for (i = 0; mboxes[i]; i++) {
|
for (i = 0; mboxes[i]; i++) {
|
||||||
struct omap_mbox *mbox = mboxes[i];
|
struct omap_mbox *mbox = mboxes[i];
|
||||||
|
|
||||||
mbox->dev = device_create(&omap_mbox_class, mdev->dev,
|
mbox->dev = device_create(&omap_mbox_class, mdev->dev,
|
||||||
0, mbox, "%s", mbox->name);
|
0, mbox, "%s", mbox->name);
|
||||||
if (IS_ERR(mbox->dev)) {
|
if (IS_ERR(mbox->dev)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue