diff options
Diffstat (limited to 'drivers/serial/linux_console.c')
-rw-r--r-- | drivers/serial/linux_console.c | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/drivers/serial/linux_console.c b/drivers/serial/linux_console.c index 0d5da9d1b0..b8303dfd12 100644 --- a/drivers/serial/linux_console.c +++ b/drivers/serial/linux_console.c @@ -1,20 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-only /* * linux_console.c - Use stdin/stdout as a console device * * Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix - * - * See file CREDITS for list of people who contributed to this - * project. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * */ #include <common.h> @@ -27,7 +15,7 @@ static void linux_console_putc(struct console_device *cdev, char c) { - struct device_d *dev = cdev->dev; + struct device *dev = cdev->dev; struct linux_console_data *d = dev->platform_data; linux_write(d->stdoutfd, &c, 1); @@ -35,7 +23,7 @@ static void linux_console_putc(struct console_device *cdev, char c) static int linux_console_tstc(struct console_device *cdev) { - struct device_d *dev = cdev->dev; + struct device *dev = cdev->dev; struct linux_console_data *d = dev->platform_data; return linux_tstc(d->stdinfd); @@ -43,7 +31,7 @@ static int linux_console_tstc(struct console_device *cdev) static int linux_console_getc(struct console_device *cdev) { - struct device_d *dev = cdev->dev; + struct device *dev = cdev->dev; struct linux_console_data *d = dev->platform_data; static char old_c; char c; @@ -57,7 +45,7 @@ static int linux_console_getc(struct console_device *cdev) return c; } -static int linux_console_probe(struct device_d *dev) +static int linux_console_probe(struct device *dev) { struct console_device *cdev; struct linux_console_data *data = dev->platform_data; @@ -79,7 +67,7 @@ static int linux_console_probe(struct device_d *dev) return 0; } -static struct driver_d linux_console_driver = { +static struct driver linux_console_driver = { .name = "console", .probe = linux_console_probe, }; |