Skip to content

Commit

Permalink
usb: mtu3: declare functions static
Browse files Browse the repository at this point in the history
The only user of the  functions mtu3_irq() and gpd_ring_empty() are in
the same file. They can be declared as static.

Signed-off-by: Sudip Mukherjee <sudip.mukherjee@codethink.co.uk>
Acked-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Sudip Mukherjee authored and Greg Kroah-Hartman committed Nov 14, 2016
1 parent c2d3d49 commit a8bac37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/usb/mtu3/mtu3_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ static irqreturn_t mtu3_u2_common_isr(struct mtu3 *mtu)
return IRQ_HANDLED;
}

irqreturn_t mtu3_irq(int irq, void *data)
static irqreturn_t mtu3_irq(int irq, void *data)
{
struct mtu3 *mtu = (struct mtu3 *)data;
unsigned long flags;
Expand Down
2 changes: 1 addition & 1 deletion drivers/usb/mtu3/mtu3_qmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ static struct qmu_gpd *advance_deq_gpd(struct mtu3_gpd_ring *ring)
}

/* check if a ring is emtpy */
int gpd_ring_empty(struct mtu3_gpd_ring *ring)
static int gpd_ring_empty(struct mtu3_gpd_ring *ring)
{
struct qmu_gpd *enq = ring->enqueue;
struct qmu_gpd *next;
Expand Down

0 comments on commit a8bac37

Please sign in to comment.