History

mfd: sc27xx: Add USB charger type detection support

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.

Baolin Wang committed 6 years ago

Commit 2a7e7271 parent ba583692 files · +59 −0Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/mfd/sc27xx-pmic.h+7−0
@@ -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
5extern enum usb_charger_type sprd_pmic_detect_charger_type(struct device *dev);
6
7#endif /* __LINUX_MFD_SC27XX_PMIC_H */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t