.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* 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. |
---|
11 | 3 | */ |
---|
12 | 4 | #ifndef _LINUX_SPMI_H |
---|
13 | 5 | #define _LINUX_SPMI_H |
---|
.. | .. |
---|
15 | 7 | #include <linux/types.h> |
---|
16 | 8 | #include <linux/device.h> |
---|
17 | 9 | #include <linux/mod_devicetable.h> |
---|
| 10 | +#include <linux/android_kabi.h> |
---|
18 | 11 | |
---|
19 | 12 | /* Maximum slave identifier */ |
---|
20 | 13 | #define SPMI_MAX_SLAVE_ID 16 |
---|
.. | .. |
---|
93 | 86 | u8 sid, u16 addr, u8 *buf, size_t len); |
---|
94 | 87 | int (*write_cmd)(struct spmi_controller *ctrl, u8 opcode, |
---|
95 | 88 | u8 sid, u16 addr, const u8 *buf, size_t len); |
---|
| 89 | + ANDROID_KABI_RESERVE(1); |
---|
96 | 90 | }; |
---|
97 | 91 | |
---|
98 | 92 | static inline struct spmi_controller *to_spmi_controller(struct device *d) |
---|
.. | .. |
---|
146 | 140 | struct device_driver driver; |
---|
147 | 141 | int (*probe)(struct spmi_device *sdev); |
---|
148 | 142 | void (*remove)(struct spmi_device *sdev); |
---|
| 143 | + ANDROID_KABI_RESERVE(1); |
---|
149 | 144 | }; |
---|
150 | 145 | |
---|
151 | 146 | static inline struct spmi_driver *to_spmi_driver(struct device_driver *d) |
---|