All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hui Wang <hui.wang@canonical.com>
To: stable@vger.kernel.org, patches@lists.linux.dev,
	gregkh@linuxfoundation.org, sashal@kernel.org
Cc: hvilleneuve@dimonoff.com, hui.wang@canonical.com
Subject: [stable-kernel][5.15.y][PATCH 4/5] serial: sc16is7xx: remove unused line structure member
Date: Wed, 11 Dec 2024 12:25:43 +0800	[thread overview]
Message-ID: <20241211042545.202482-5-hui.wang@canonical.com> (raw)
In-Reply-To: <20241211042545.202482-1-hui.wang@canonical.com>

From: Hugo Villeneuve <hvilleneuve@dimonoff.com>

commit 41a308cbedb2a68a6831f0f2e992e296c4b8aff0 upstream.

Now that the driver has been converted to use one regmap per port, the line
structure member is no longer used, so remove it.

Fixes: 3837a0379533 ("serial: sc16is7xx: improve regmap debugfs by using one regmap per port")
Cc:  <stable@vger.kernel.org>
Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
Link: https://lore.kernel.org/r/20231211171353.2901416-4-hugo@hugovil.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Hui Wang <hui.wang@canonical.com>
---
 drivers/tty/serial/sc16is7xx.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/tty/serial/sc16is7xx.c b/drivers/tty/serial/sc16is7xx.c
index 90b39ddec082..a2d05dd5a339 100644
--- a/drivers/tty/serial/sc16is7xx.c
+++ b/drivers/tty/serial/sc16is7xx.c
@@ -313,7 +313,6 @@ struct sc16is7xx_one_config {
 
 struct sc16is7xx_one {
 	struct uart_port		port;
-	u8				line;
 	struct regmap			*regmap;
 	struct kthread_work		tx_work;
 	struct kthread_work		reg_work;
@@ -1278,7 +1277,6 @@ static int sc16is7xx_probe(struct device *dev,
 		     SC16IS7XX_IOCONTROL_SRESET_BIT);
 
 	for (i = 0; i < devtype->nr_uart; ++i) {
-		s->p[i].line		= i;
 		/* Initialize port data */
 		s->p[i].port.dev	= dev;
 		s->p[i].port.irq	= irq;
-- 
2.34.1


  parent reply	other threads:[~2024-12-11  4:26 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-11  4:25 [stable-kernel][5.15.y][PATCH 0/5] Fix a regression on sc16is7xx Hui Wang
2024-12-11  4:25 ` [stable-kernel][5.15.y][PATCH 1/5] serial: sc16is7xx: improve regmap debugfs by using one regmap per port Hui Wang
2024-12-11 16:32   ` Sasha Levin
2024-12-11  4:25 ` [stable-kernel][5.15.y][PATCH 2/5] serial: sc16is7xx: remove wasteful static buffer in sc16is7xx_regmap_name() Hui Wang
2024-12-11 16:32   ` Sasha Levin
2024-12-11  4:25 ` [stable-kernel][5.15.y][PATCH 3/5] serial: sc16is7xx: remove global regmap from struct sc16is7xx_port Hui Wang
2024-12-11 16:33   ` Sasha Levin
2024-12-11  4:25 ` Hui Wang [this message]
2024-12-11 16:32   ` [stable-kernel][5.15.y][PATCH 4/5] serial: sc16is7xx: remove unused line structure member Sasha Levin
2024-12-11  4:25 ` [stable-kernel][5.15.y][PATCH 5/5] serial: sc16is7xx: change EFR lock to operate on each channels Hui Wang
2024-12-11 16:32   ` Sasha Levin
2024-12-12 13:44 ` [stable-kernel][5.15.y][PATCH 0/5] Fix a regression on sc16is7xx Greg KH
2024-12-12 14:00   ` Hui Wang
2024-12-16 18:36     ` Hugo Villeneuve
2024-12-17  2:45       ` Hui Wang

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=20241211042545.202482-5-hui.wang@canonical.com \
    --to=hui.wang@canonical.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=hvilleneuve@dimonoff.com \
    --cc=patches@lists.linux.dev \
    --cc=sashal@kernel.org \
    --cc=stable@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.