Merge tag 'usb-for-v4.14' of git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb into usb-next
Felipe writes: usb: changes for v4.14 merge window Not a big pull request this time around. Only 49 non-merge commits. This pull request is, however, all over the place. Most of the changes are in the bdc driver adding support for USB Phy layer and PM. Renesas adds support for R-Car H3 ES2.0 and R-Car M3-W SoCs. Also here is PM_RUNTIME support for dwc3-keystone. UDC Core got a DMA unmap fix to make sure we only unmap requests that were, indeed, mapped. Other than these, we have a lot of cleanups, many of them adding 'const' to several places.
This commit is contained in:
31
include/uapi/linux/usb/charger.h
Normal file
31
include/uapi/linux/usb/charger.h
Normal file
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
* This file defines the USB charger type and state that are needed for
|
||||
* USB device APIs.
|
||||
*/
|
||||
|
||||
#ifndef _UAPI__LINUX_USB_CHARGER_H
|
||||
#define _UAPI__LINUX_USB_CHARGER_H
|
||||
|
||||
/*
|
||||
* USB charger type:
|
||||
* SDP (Standard Downstream Port)
|
||||
* DCP (Dedicated Charging Port)
|
||||
* CDP (Charging Downstream Port)
|
||||
* ACA (Accessory Charger Adapters)
|
||||
*/
|
||||
enum usb_charger_type {
|
||||
UNKNOWN_TYPE,
|
||||
SDP_TYPE,
|
||||
DCP_TYPE,
|
||||
CDP_TYPE,
|
||||
ACA_TYPE,
|
||||
};
|
||||
|
||||
/* USB charger state */
|
||||
enum usb_charger_state {
|
||||
USB_CHARGER_DEFAULT,
|
||||
USB_CHARGER_PRESENT,
|
||||
USB_CHARGER_ABSENT,
|
||||
};
|
||||
|
||||
#endif /* _UAPI__LINUX_USB_CHARGER_H */
|
||||
Reference in New Issue
Block a user