hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/include/linux/spmi.h
....@@ -1,13 +1,5 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
2
- *
3
- * This program is free software; you can redistribute it and/or modify
4
- * it under the terms of the GNU General Public License version 2 and
5
- * only version 2 as published by the Free Software Foundation.
6
- *
7
- * This program is distributed in the hope that it will be useful,
8
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
9
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
- * GNU General Public License for more details.
113 */
124 #ifndef _LINUX_SPMI_H
135 #define _LINUX_SPMI_H
....@@ -15,6 +7,7 @@
157 #include <linux/types.h>
168 #include <linux/device.h>
179 #include <linux/mod_devicetable.h>
10
+#include <linux/android_kabi.h>
1811
1912 /* Maximum slave identifier */
2013 #define SPMI_MAX_SLAVE_ID 16
....@@ -93,6 +86,7 @@
9386 u8 sid, u16 addr, u8 *buf, size_t len);
9487 int (*write_cmd)(struct spmi_controller *ctrl, u8 opcode,
9588 u8 sid, u16 addr, const u8 *buf, size_t len);
89
+ ANDROID_KABI_RESERVE(1);
9690 };
9791
9892 static inline struct spmi_controller *to_spmi_controller(struct device *d)
....@@ -146,6 +140,7 @@
146140 struct device_driver driver;
147141 int (*probe)(struct spmi_device *sdev);
148142 void (*remove)(struct spmi_device *sdev);
143
+ ANDROID_KABI_RESERVE(1);
149144 };
150145
151146 static inline struct spmi_driver *to_spmi_driver(struct device_driver *d)