Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tty: Remove unused API tty_port_register_device_serdev()

Remove API tty_port_register_device_serdev() which has no caller.

Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20250423-remove_api-v1-1-fac673d09feb@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Zijun Hu and committed by
Greg Kroah-Hartman
be4e3097 05f31711

-23
-20
drivers/tty/tty_port.c
··· 200 200 EXPORT_SYMBOL_GPL(tty_port_register_device_attr_serdev); 201 201 202 202 /** 203 - * tty_port_register_device_serdev - register tty or serdev device 204 - * @port: tty_port of the device 205 - * @driver: tty_driver for this device 206 - * @index: index of the tty 207 - * @host: serial port hardware controller device 208 - * @parent: parent if exists, otherwise NULL 209 - * 210 - * Register a serdev or tty device depending on if the parent device has any 211 - * defined serdev clients or not. 212 - */ 213 - struct device *tty_port_register_device_serdev(struct tty_port *port, 214 - struct tty_driver *driver, unsigned index, 215 - struct device *host, struct device *parent) 216 - { 217 - return tty_port_register_device_attr_serdev(port, driver, index, 218 - host, parent, NULL, NULL); 219 - } 220 - EXPORT_SYMBOL_GPL(tty_port_register_device_serdev); 221 - 222 - /** 223 203 * tty_port_unregister_device - deregister a tty or serdev device 224 204 * @port: tty_port of the device 225 205 * @driver: tty_driver for this device
-3
include/linux/tty_port.h
··· 147 147 struct tty_driver *driver, unsigned index, 148 148 struct device *device, void *drvdata, 149 149 const struct attribute_group **attr_grp); 150 - struct device *tty_port_register_device_serdev(struct tty_port *port, 151 - struct tty_driver *driver, unsigned index, 152 - struct device *host, struct device *parent); 153 150 struct device *tty_port_register_device_attr_serdev(struct tty_port *port, 154 151 struct tty_driver *driver, unsigned index, 155 152 struct device *host, struct device *parent, void *drvdata,