summaryrefslogtreecommitdiff
path: root/patches/0089-serdev-h-config.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/0089-serdev-h-config.patch')
-rw-r--r--patches/0089-serdev-h-config.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/patches/0089-serdev-h-config.patch b/patches/0089-serdev-h-config.patch
new file mode 100644
index 00000000..cd98ff06
--- /dev/null
+++ b/patches/0089-serdev-h-config.patch
@@ -0,0 +1,22 @@
+diff --git a/include/linux/serdev.h b/include/linux/serdev.h
+index f153b2c7f0cd..95ec24902864 100644
+--- a/include/linux/serdev.h
++++ b/include/linux/serdev.h
+@@ -198,7 +198,7 @@ static inline int serdev_controller_receive_buf(struct serdev_controller *ctrl,
+ return serdev->ops->receive_buf(serdev, data, count);
+ }
+
+-#if IS_ENABLED(CONFIG_SERIAL_DEV_BUS)
++#if IS_ENABLED(CPTCFG_SERIAL_DEV_BUS)
+
+ int serdev_device_open(struct serdev_device *);
+ void serdev_device_close(struct serdev_device *);
+@@ -317,7 +317,7 @@ int serdev_device_set_parity(struct serdev_device *serdev,
+ struct tty_port;
+ struct tty_driver;
+
+-#ifdef CONFIG_SERIAL_DEV_CTRL_TTYPORT
++#ifdef CPTCFG_SERIAL_DEV_CTRL_TTYPORT
+ struct device *serdev_tty_port_register(struct tty_port *port,
+ struct device *parent,
+ struct tty_driver *drv, int idx);