From 2d2414a0169deee9e12d75aecd4d5f0a01729c06 Mon Sep 17 00:00:00 2001
From: Oliver Neukum <oneukum@suse.com>
Date: Thu, 12 Dec 2019 14:50:54 +0100
Subject: [PATCH] typeC: add kABI padding
Patch-mainline: Never, kABI padding
References: jsc#SLE-8133
This adds some additional kABI padding to the type C
data structures
Signed-off-by: Oliver Neukum <oneukum@suse.com>
---
include/linux/usb/typec.h | 2 ++
include/linux/usb/typec_altmode.h | 7 +++++++
2 files changed, 9 insertions(+)
--- a/include/linux/usb/typec.h
+++ b/include/linux/usb/typec.h
@@ -213,6 +213,8 @@ struct typec_capability {
void *driver_data;
const struct typec_operations *ops;
+
+ void *suse_kabi_padding;
};
/* Specific to try_role(). Indicates the user want's to clear the preference. */
--- a/include/linux/usb/typec_altmode.h
+++ b/include/linux/usb/typec_altmode.h
@@ -30,6 +30,8 @@ struct typec_altmode {
char *desc;
const struct typec_altmode_ops *ops;
+
+ void *suse_kabi_padding;
};
#define to_typec_altmode(d) container_of(d, struct typec_altmode, dev)
@@ -63,6 +65,8 @@ struct typec_altmode_ops {
int (*notify)(struct typec_altmode *altmode, unsigned long conf,
void *data);
int (*activate)(struct typec_altmode *altmode, int activate);
+
+ void *suse_kabi_padding;
};
int typec_altmode_enter(struct typec_altmode *altmode, u32 *vdo);
@@ -141,6 +145,9 @@ struct typec_altmode_driver {
const struct typec_device_id *id_table;
int (*probe)(struct typec_altmode *altmode);
void (*remove)(struct typec_altmode *altmode);
+
+ void *suse_kabi_padding;
+
struct device_driver driver;
};