[PATCH] serial: name the semihosting console
Ahmad Fatoum
a.fatoum at pengutronix.de
Tue Aug 25 01:53:37 PDT 2026
This makes it easier to reference it without having to look at the
device/driver behind it.
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
drivers/serial/serial_semihosting.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/serial/serial_semihosting.c b/drivers/serial/serial_semihosting.c
index 02d2ade367d6..c4929ad08f1a 100644
--- a/drivers/serial/serial_semihosting.c
+++ b/drivers/serial/serial_semihosting.c
@@ -17,6 +17,8 @@ static int smh_serial_probe(struct device *dev)
cdev->dev = dev;
cdev->putc = smh_serial_putc;
+ cdev->devname = "semihosting";
+ cdev->devid = DEVICE_ID_SINGLE;
return console_register(cdev);
}
--
2.47.3
More information about the barebox
mailing list