The Spreadtrum SC27XX series PMICs supply the USB charger type detection function, and related registers are located on the PMIC global registers region, thus we implement and export this function in the MFD driver for users to get the USB charger type.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -0,0 +1,7 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 2 | #ifndef __LINUX_MFD_SC27XX_PMIC_H | ||
| 3 | #define __LINUX_MFD_SC27XX_PMIC_H | ||
| 4 | |||
| 5 | extern enum usb_charger_type sprd_pmic_detect_charger_type(struct device *dev); | ||
| 6 | |||
| 7 | #endif /* __LINUX_MFD_SC27XX_PMIC_H */ | ||