提交 c37d69df 编写于 作者: C Chen Jiahao 提交者: Zheng Zengkai

KABI: reserve space for several i2c structures

hulk inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I4QWBF
CVE: NA

--------

Reserving some fields in struct i2c_bus_recovery_info, i2c_adapter,
i2c_board_info and i2c_algorithm for future development.
Signed-off-by: NChen Jiahao <chenjiahao16@huawei.com>
Reviewed-by: NLiao Chang <liaochang1@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 b4d81894
......@@ -20,6 +20,7 @@
#include <linux/of.h> /* for struct device_node */
#include <linux/swab.h> /* for swab16 */
#include <uapi/linux/i2c.h>
#include <linux/kabi.h>
extern struct bus_type i2c_bus_type;
extern struct device_type i2c_adapter_type;
......@@ -422,6 +423,8 @@ struct i2c_board_info {
const struct resource *resources;
unsigned int num_resources;
int irq;
KABI_RESERVE(1)
};
/**
......@@ -547,6 +550,9 @@ struct i2c_algorithm {
int (*reg_slave)(struct i2c_client *client);
int (*unreg_slave)(struct i2c_client *client);
#endif
KABI_RESERVE(1)
KABI_RESERVE(2)
};
/**
......@@ -636,6 +642,9 @@ struct i2c_bus_recovery_info {
struct pinctrl *pinctrl;
struct pinctrl_state *pins_default;
struct pinctrl_state *pins_gpio;
KABI_RESERVE(1)
KABI_RESERVE(2)
};
int i2c_recover_bus(struct i2c_adapter *adap);
......@@ -726,6 +735,9 @@ struct i2c_adapter {
const struct i2c_adapter_quirks *quirks;
struct irq_domain *host_notify_domain;
KABI_RESERVE(1)
KABI_RESERVE(2)
};
#define to_i2c_adapter(d) container_of(d, struct i2c_adapter, dev)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册