hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/include/linux/extcon-provider.h
....@@ -1,18 +1,10 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * External Connector (extcon) framework
34 * - linux/include/linux/extcon-provider.h for extcon provider device driver.
45 *
56 * Copyright (C) 2017 Samsung Electronics
67 * Author: Chanwoo Choi <cw00.choi@samsung.com>
7
- *
8
- * This software is licensed under the terms of the GNU General Public
9
- * License version 2, as published by the Free Software Foundation, and
10
- * may be copied, distributed, and modified under those terms.
11
- *
12
- * This program is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- * GNU General Public License for more details.
168 */
179
1810 #ifndef __LINUX_EXTCON_PROVIDER_H__
....@@ -25,30 +17,30 @@
2517 #if IS_ENABLED(CONFIG_EXTCON)
2618
2719 /* Following APIs register/unregister the extcon device. */
28
-extern int extcon_dev_register(struct extcon_dev *edev);
29
-extern void extcon_dev_unregister(struct extcon_dev *edev);
30
-extern int devm_extcon_dev_register(struct device *dev,
20
+int extcon_dev_register(struct extcon_dev *edev);
21
+void extcon_dev_unregister(struct extcon_dev *edev);
22
+int devm_extcon_dev_register(struct device *dev,
3123 struct extcon_dev *edev);
32
-extern void devm_extcon_dev_unregister(struct device *dev,
24
+void devm_extcon_dev_unregister(struct device *dev,
3325 struct extcon_dev *edev);
3426
3527 /* Following APIs allocate/free the memory of the extcon device. */
36
-extern struct extcon_dev *extcon_dev_allocate(const unsigned int *cable);
37
-extern void extcon_dev_free(struct extcon_dev *edev);
38
-extern struct extcon_dev *devm_extcon_dev_allocate(struct device *dev,
28
+struct extcon_dev *extcon_dev_allocate(const unsigned int *cable);
29
+void extcon_dev_free(struct extcon_dev *edev);
30
+struct extcon_dev *devm_extcon_dev_allocate(struct device *dev,
3931 const unsigned int *cable);
40
-extern void devm_extcon_dev_free(struct device *dev, struct extcon_dev *edev);
32
+void devm_extcon_dev_free(struct device *dev, struct extcon_dev *edev);
4133
4234 /* Synchronize the state and property value for each external connector. */
43
-extern int extcon_sync(struct extcon_dev *edev, unsigned int id);
35
+int extcon_sync(struct extcon_dev *edev, unsigned int id);
4436
4537 /*
4638 * Following APIs set the connected state of each external connector.
4739 * The 'id' argument indicates the defined external connector.
4840 */
49
-extern int extcon_set_state(struct extcon_dev *edev, unsigned int id,
41
+int extcon_set_state(struct extcon_dev *edev, unsigned int id,
5042 bool state);
51
-extern int extcon_set_state_sync(struct extcon_dev *edev, unsigned int id,
43
+int extcon_set_state_sync(struct extcon_dev *edev, unsigned int id,
5244 bool state);
5345
5446 /*
....@@ -60,13 +52,13 @@
6052 * for each external connector. They are used to set the capability of the
6153 * property of each external connector based on the id and property.
6254 */
63
-extern int extcon_set_property(struct extcon_dev *edev, unsigned int id,
55
+int extcon_set_property(struct extcon_dev *edev, unsigned int id,
6456 unsigned int prop,
6557 union extcon_property_value prop_val);
66
-extern int extcon_set_property_sync(struct extcon_dev *edev, unsigned int id,
58
+int extcon_set_property_sync(struct extcon_dev *edev, unsigned int id,
6759 unsigned int prop,
6860 union extcon_property_value prop_val);
69
-extern int extcon_set_property_capability(struct extcon_dev *edev,
61
+int extcon_set_property_capability(struct extcon_dev *edev,
7062 unsigned int id, unsigned int prop);
7163
7264 #else /* CONFIG_EXTCON */