Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: 48969a5623ed ("phy: ti: tusb1210: Add charger detection")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20220411135440.558394-1-hdegoede@redhat.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Hans de Goede and committed by
Vinod Koul
b541f9e5 31231092

+1 -1
+1 -1
drivers/phy/ti/phy-tusb1210.c
··· 155 155 } 156 156 157 157 #ifdef CONFIG_POWER_SUPPLY 158 - const char * const tusb1210_chg_det_states[] = { 158 + static const char * const tusb1210_chg_det_states[] = { 159 159 "CHG_DET_CONNECTING", 160 160 "CHG_DET_START_DET", 161 161 "CHG_DET_READ_DET",