Skip to content

Commit b541f9e

Browse files
jwrdegoedevinodkoul
authored andcommitted
phy: ti: tusb1210: Make tusb1210_chg_det_states static
Make tusb1210_chg_det_states static, fixing the following sparse warning: drivers/phy/ti/phy-tusb1210.c:158:12: sparse: sparse: symbol 'tusb1210_chg_det_states' was not declared. Should it be static? Fixes: 48969a5 ("phy: ti: tusb1210: Add charger detection") Reported-by: kernel test robot <[email protected]> Signed-off-by: Hans de Goede <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 3123109 commit b541f9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/phy/ti/phy-tusb1210.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ static int tusb1210_set_mode(struct phy *phy, enum phy_mode mode, int submode)
155155
}
156156

157157
#ifdef CONFIG_POWER_SUPPLY
158-
const char * const tusb1210_chg_det_states[] = {
158+
static const char * const tusb1210_chg_det_states[] = {
159159
"CHG_DET_CONNECTING",
160160
"CHG_DET_START_DET",
161161
"CHG_DET_READ_DET",

0 commit comments

Comments
 (0)