Skip to content

Commit 7a99d9f

Browse files
committed
power: supply: ln8411: Cleans up function prototypes
Moves all function prototypes to ln8411_charger.h Change-Id: I8b04d3e49746de53dbeeb16870a6370f32b35c43 Signed-off-by: Ricardo Rivera-Matos <[email protected]>
1 parent 2ca1d49 commit 7a99d9f

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

drivers/power/supply/ln8411_charger.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,6 @@ static int ln8411_get_adc(struct ln8411_device *ln8411,
106106
return ret;
107107
}
108108

109-
static int ln8411_hw_init(struct ln8411_device *ln8411);
110-
static int ln8411_soft_reset(struct ln8411_device *ln8411);
111-
112109
static int ln8411_set_present(struct ln8411_device *ln8411, const union power_supply_propval *val)
113110
{
114111
int ret;
@@ -610,8 +607,6 @@ static irqreturn_t ln8411_conv_ocp_handler(int irq, void *private)
610607
return IRQ_HANDLED;
611608
}
612609

613-
static int ln8411_hw_init(struct ln8411_device *ln8411);
614-
615610
static irqreturn_t ln8411_wd_timeout_handler(int irq, void *private)
616611
{
617612
struct ln8411_device *ln8411 = private;

drivers/power/supply/ln8411_charger.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,4 +505,7 @@ enum ln8411_irq_list {
505505
LN8411_NUM_IRQ
506506
};
507507

508+
static int ln8411_hw_init(struct ln8411_device *ln8411);
509+
static int ln8411_soft_reset(struct ln8411_device *ln8411);
510+
508511
#endif /* LN8411_CHARGER_H */

0 commit comments

Comments
 (0)