diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/extcon/of_extcon.h | 31 | ||||
| -rw-r--r-- | include/linux/hyperv.h | 31 | ||||
| -rw-r--r-- | include/linux/mfd/palmas.h | 8 | ||||
| -rw-r--r-- | include/linux/usb/dwc3-omap.h | 30 |
4 files changed, 43 insertions, 57 deletions
diff --git a/include/linux/extcon/of_extcon.h b/include/linux/extcon/of_extcon.h new file mode 100644 index 000000000000..0ebfeff1b55d --- /dev/null +++ b/include/linux/extcon/of_extcon.h | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | /* | ||
| 2 | * OF helpers for External connector (extcon) framework | ||
| 3 | * | ||
| 4 | * Copyright (C) 2013 Texas Instruments, Inc. | ||
| 5 | * Kishon Vijay Abraham I <kishon@ti.com> | ||
| 6 | * | ||
| 7 | * Copyright (C) 2013 Samsung Electronics | ||
| 8 | * Chanwoo Choi <cw00.choi@samsung.com> | ||
| 9 | * | ||
| 10 | * This program is free software; you can redistribute it and/or modify | ||
| 11 | * it under the terms of the GNU General Public License as published by | ||
| 12 | * the Free Software Foundation; either version 2 of the License, or | ||
| 13 | * (at your option) any later version. | ||
| 14 | */ | ||
| 15 | |||
| 16 | #ifndef __LINUX_OF_EXTCON_H | ||
| 17 | #define __LINUX_OF_EXTCON_H | ||
| 18 | |||
| 19 | #include <linux/err.h> | ||
| 20 | |||
| 21 | #if IS_ENABLED(CONFIG_OF_EXTCON) | ||
| 22 | extern struct extcon_dev | ||
| 23 | *of_extcon_get_extcon_dev(struct device *dev, int index); | ||
| 24 | #else | ||
| 25 | static inline struct extcon_dev | ||
| 26 | *of_extcon_get_extcon_dev(struct device *dev, int index) | ||
| 27 | { | ||
| 28 | return ERR_PTR(-ENOSYS); | ||
| 29 | } | ||
| 30 | #endif /* CONFIG_OF_EXTCON */ | ||
| 31 | #endif /* __LINUX_OF_EXTCON_H */ | ||
diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h index fae8bac907ef..a3b8b2e2d244 100644 --- a/include/linux/hyperv.h +++ b/include/linux/hyperv.h | |||
| @@ -27,6 +27,14 @@ | |||
| 27 | 27 | ||
| 28 | #include <linux/types.h> | 28 | #include <linux/types.h> |
| 29 | 29 | ||
| 30 | /* | ||
| 31 | * Framework version for util services. | ||
| 32 | */ | ||
| 33 | |||
| 34 | #define UTIL_FW_MAJOR 3 | ||
| 35 | #define UTIL_FW_MINOR 0 | ||
| 36 | #define UTIL_FW_MAJOR_MINOR (UTIL_FW_MAJOR << 16 | UTIL_FW_MINOR) | ||
| 37 | |||
| 30 | 38 | ||
| 31 | /* | 39 | /* |
| 32 | * Implementation of host controlled snapshot of the guest. | 40 | * Implementation of host controlled snapshot of the guest. |
| @@ -455,27 +463,6 @@ hv_get_ringbuffer_availbytes(struct hv_ring_buffer_info *rbi, | |||
| 455 | *read = dsize - *write; | 463 | *read = dsize - *write; |
| 456 | } | 464 | } |
| 457 | 465 | ||
| 458 | |||
| 459 | /* | ||
| 460 | * We use the same version numbering for all Hyper-V modules. | ||
| 461 | * | ||
| 462 | * Definition of versioning is as follows; | ||
| 463 | * | ||
| 464 | * Major Number Changes for these scenarios; | ||
| 465 | * 1. When a new version of Windows Hyper-V | ||
| 466 | * is released. | ||
| 467 | * 2. A Major change has occurred in the | ||
| 468 | * Linux IC's. | ||
| 469 | * (For example the merge for the first time | ||
| 470 | * into the kernel) Every time the Major Number | ||
| 471 | * changes, the Revision number is reset to 0. | ||
| 472 | * Minor Number Changes when new functionality is added | ||
| 473 | * to the Linux IC's that is not a bug fix. | ||
| 474 | * | ||
| 475 | * 3.1 - Added completed hv_utils driver. Shutdown/Heartbeat/Timesync | ||
| 476 | */ | ||
| 477 | #define HV_DRV_VERSION "3.1" | ||
| 478 | |||
| 479 | /* | 466 | /* |
| 480 | * VMBUS version is 32 bit entity broken up into | 467 | * VMBUS version is 32 bit entity broken up into |
| 481 | * two 16 bit quantities: major_number. minor_number. | 468 | * two 16 bit quantities: major_number. minor_number. |
| @@ -1494,7 +1481,7 @@ struct hyperv_service_callback { | |||
| 1494 | }; | 1481 | }; |
| 1495 | 1482 | ||
| 1496 | #define MAX_SRV_VER 0x7ffffff | 1483 | #define MAX_SRV_VER 0x7ffffff |
| 1497 | extern void vmbus_prep_negotiate_resp(struct icmsg_hdr *, | 1484 | extern bool vmbus_prep_negotiate_resp(struct icmsg_hdr *, |
| 1498 | struct icmsg_negotiate *, u8 *, int, | 1485 | struct icmsg_negotiate *, u8 *, int, |
| 1499 | int); | 1486 | int); |
| 1500 | 1487 | ||
diff --git a/include/linux/mfd/palmas.h b/include/linux/mfd/palmas.h index c06d78af3342..e6090d88e91d 100644 --- a/include/linux/mfd/palmas.h +++ b/include/linux/mfd/palmas.h | |||
| @@ -372,17 +372,15 @@ struct palmas_usb { | |||
| 372 | 372 | ||
| 373 | struct extcon_dev edev; | 373 | struct extcon_dev edev; |
| 374 | 374 | ||
| 375 | /* used to set vbus, in atomic path */ | ||
| 376 | struct work_struct set_vbus_work; | ||
| 377 | |||
| 378 | int id_otg_irq; | 375 | int id_otg_irq; |
| 379 | int id_irq; | 376 | int id_irq; |
| 380 | int vbus_otg_irq; | 377 | int vbus_otg_irq; |
| 381 | int vbus_irq; | 378 | int vbus_irq; |
| 382 | 379 | ||
| 383 | int vbus_enable; | ||
| 384 | |||
| 385 | enum palmas_usb_state linkstat; | 380 | enum palmas_usb_state linkstat; |
| 381 | int wakeup; | ||
| 382 | bool enable_vbus_detection; | ||
| 383 | bool enable_id_detection; | ||
| 386 | }; | 384 | }; |
| 387 | 385 | ||
| 388 | #define comparator_to_palmas(x) container_of((x), struct palmas_usb, comparator) | 386 | #define comparator_to_palmas(x) container_of((x), struct palmas_usb, comparator) |
diff --git a/include/linux/usb/dwc3-omap.h b/include/linux/usb/dwc3-omap.h deleted file mode 100644 index 5615f4d82724..000000000000 --- a/include/linux/usb/dwc3-omap.h +++ /dev/null | |||
| @@ -1,30 +0,0 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (C) 2013 by Texas Instruments | ||
| 3 | * | ||
| 4 | * The Inventra Controller Driver for Linux is free software; you | ||
| 5 | * can redistribute it and/or modify it under the terms of the GNU | ||
| 6 | * General Public License version 2 as published by the Free Software | ||
| 7 | * Foundation. | ||
| 8 | */ | ||
| 9 | |||
| 10 | #ifndef __DWC3_OMAP_H__ | ||
| 11 | #define __DWC3_OMAP_H__ | ||
| 12 | |||
| 13 | enum omap_dwc3_vbus_id_status { | ||
| 14 | OMAP_DWC3_UNKNOWN = 0, | ||
| 15 | OMAP_DWC3_ID_GROUND, | ||
| 16 | OMAP_DWC3_ID_FLOAT, | ||
| 17 | OMAP_DWC3_VBUS_VALID, | ||
| 18 | OMAP_DWC3_VBUS_OFF, | ||
| 19 | }; | ||
| 20 | |||
| 21 | #if (defined(CONFIG_USB_DWC3) || defined(CONFIG_USB_DWC3_MODULE)) | ||
| 22 | extern int dwc3_omap_mailbox(enum omap_dwc3_vbus_id_status status); | ||
| 23 | #else | ||
| 24 | static inline int dwc3_omap_mailbox(enum omap_dwc3_vbus_id_status status) | ||
| 25 | { | ||
| 26 | return -ENODEV; | ||
| 27 | } | ||
| 28 | #endif | ||
| 29 | |||
| 30 | #endif /* __DWC3_OMAP_H__ */ | ||
