From: Xose Vazquez Perez <xose.vazquez@gmail.com>
Cc: Heiko Carstens <hca@linux.ibm.com>,
Vasily Gorbik <gor@linux.ibm.com>,
Alexander Gordeev <agordeev@linux.ibm.com>,
Christian Borntraeger <borntraeger@linux.ibm.com>,
Sven Schnelle <svens@linux.ibm.com>,
S390 ML <linux-s390@vger.kernel.org>
Subject: Re: [PATCH] s390/con3215: Use macros for hardcoded values
Date: Wed, 9 Jul 2025 21:10:48 +0200 [thread overview]
Message-ID: <250ea316-a699-4f52-bafc-1bbbb68f6f19@gmail.com> (raw)
In-Reply-To: <20250709180054.11372-1-xose.vazquez@gmail.com>
On 7/9/25 8:00 PM, Xose Vazquez Perez wrote:
Please, drop this one. v2 is out.
> Similar as in sclp_vt220
>
> Cc: Heiko Carstens <hca@linux.ibm.com> (maintainer:S390 ARCHITECTURE,commit_signer:1/2=50%)
> Cc: Vasily Gorbik <gor@linux.ibm.com> (maintainer:S390 ARCHITECTURE)
> Cc: Alexander Gordeev <agordeev@linux.ibm.com> (maintainer:S390 ARCHITECTURE)
> Cc: Christian Borntraeger <borntraeger@linux.ibm.com> (reviewer:S390 ARCHITECTURE)
> Cc: Sven Schnelle <svens@linux.ibm.com> (reviewer:S390 ARCHITECTURE,commit_signer:1/2=50%)
> Cc: S390 ML <linux-s390@vger.kernel.org> (open list:S390 ARCHITECTURE
> Signed-off-by: Xose Vazquez Perez <xose.vazquez@gmail.com>
> ---
> Trivial, but uncompiled!!
> ---
> drivers/s390/char/con3215.c | 18 ++++++++++++------
> 1 file changed, 12 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/s390/char/con3215.c b/drivers/s390/char/con3215.c
> index 56e43d43c713..1519694c48f0 100644
> --- a/drivers/s390/char/con3215.c
> +++ b/drivers/s390/char/con3215.c
> @@ -35,6 +35,12 @@
>
> #include "ctrlchar.h"
>
> +#define RAW3215_MAJOR TTY_MAJOR
> +#define RAW3215_MINOR 64
> +#define RAW3215_DRIVER_NAME "tty3215"
> +#define RAW3215_DEVICE_NAME "ttyS"
> +#define RAW3215_CONSOLE_NAME "3215"
> +
> #define NR_3215 1
> #define NR_3215_REQ (4*NR_3215)
> #define RAW3215_BUFFER_SIZE 65536 /* output buffer size */
> @@ -813,7 +819,7 @@ static const struct attribute_group *con3215_drv_attr_groups[] = {
>
> static struct ccw_driver raw3215_ccw_driver = {
> .driver = {
> - .name = "3215",
> + .name = RAW3215_CONSOLE_NAME,
> .groups = con3215_drv_attr_groups,
> .owner = THIS_MODULE,
> },
> @@ -887,7 +893,7 @@ static struct notifier_block on_reboot_nb = {
> * The console structure for the 3215 console
> */
> static struct console con3215 = {
> - .name = "ttyS",
> + .name = RAW3215_DEVICE_NAME,
> .write = con3215_write,
> .device = con3215_device,
> .flags = CON_PRINTBUFFER,
> @@ -1168,10 +1174,10 @@ static int __init tty3215_init(void)
> * proc_entry, set_termios, flush_buffer, set_ldisc, write_proc
> */
>
> - driver->driver_name = "tty3215";
> - driver->name = "ttyS";
> - driver->major = TTY_MAJOR;
> - driver->minor_start = 64;
> + driver->driver_name = RAW3215_DRIVER_NAME;
> + driver->name = RAW3215_DEVICE_NAME;
> + driver->major = RAW3215_MAJOR;
> + driver->minor_start = RAW3215_MINOR;
> driver->type = TTY_DRIVER_TYPE_SYSTEM;
> driver->subtype = SYSTEM_TYPE_TTY;
> driver->init_termios = tty_std_termios;
prev parent reply other threads:[~2025-07-09 19:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-09 18:00 [PATCH] s390/con3215: Use macros for hardcoded values Xose Vazquez Perez
2025-07-09 19:10 ` Xose Vazquez Perez [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=250ea316-a699-4f52-bafc-1bbbb68f6f19@gmail.com \
--to=xose.vazquez@gmail.com \
--cc=agordeev@linux.ibm.com \
--cc=borntraeger@linux.ibm.com \
--cc=gor@linux.ibm.com \
--cc=hca@linux.ibm.com \
--cc=linux-s390@vger.kernel.org \
--cc=svens@linux.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).