mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v1] ata: pata_isapnp: Drop unused assignments from pnp_device_id array
@ 2026-06-09 16:51 Uwe Kleine-König (The Capable Hub)
  2026-06-09 23:38 ` Damien Le Moal
  2026-06-10  7:42 ` Niklas Cassel
  0 siblings, 2 replies; 3+ messages in thread
From: Uwe Kleine-König (The Capable Hub) @ 2026-06-09 16:51 UTC (permalink / raw)
  To: Damien Le Moal, Niklas Cassel; +Cc: linux-ide, linux-kernel

Explicitly assigning .driver_data in drivers that don't use this member
is silly and a bit irritating. Drop it. Also simplify the list
terminator entry to be just empty to match what most other device_id
tables do.

There is no changed semantic, not even a change in the compiled result.

Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
---
 drivers/ata/pata_isapnp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/ata/pata_isapnp.c b/drivers/ata/pata_isapnp.c
index 0f77e0424066..23139009c40e 100644
--- a/drivers/ata/pata_isapnp.c
+++ b/drivers/ata/pata_isapnp.c
@@ -119,8 +119,8 @@ static void isapnp_remove_one(struct pnp_dev *idev)
 
 static struct pnp_device_id isapnp_devices[] = {
   	/* Generic ESDI/IDE/ATA compatible hard disk controller */
-	{.id = "PNP0600", .driver_data = 0},
-	{.id = ""}
+	{ .id = "PNP0600" },
+	{ }
 };
 
 MODULE_DEVICE_TABLE(pnp, isapnp_devices);

base-commit: a87737435cfa134f9cdcc696ba3080759d04cf72
-- 
2.47.3


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v1] ata: pata_isapnp: Drop unused assignments from pnp_device_id array
  2026-06-09 16:51 [PATCH v1] ata: pata_isapnp: Drop unused assignments from pnp_device_id array Uwe Kleine-König (The Capable Hub)
@ 2026-06-09 23:38 ` Damien Le Moal
  2026-06-10  7:42 ` Niklas Cassel
  1 sibling, 0 replies; 3+ messages in thread
From: Damien Le Moal @ 2026-06-09 23:38 UTC (permalink / raw)
  To: Uwe Kleine-König (The Capable Hub), Niklas Cassel
  Cc: linux-ide, linux-kernel

On 2026/06/10 0:51, Uwe Kleine-König (The Capable Hub) wrote:
> Explicitly assigning .driver_data in drivers that don't use this member
> is silly and a bit irritating. Drop it. Also simplify the list
> terminator entry to be just empty to match what most other device_id
> tables do.
> 
> There is no changed semantic, not even a change in the compiled result.
> 
> Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>

Reviewed-by: Damien Le Moal <dlemoal@kernel.org>

-- 
Damien Le Moal
Western Digital Research

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v1] ata: pata_isapnp: Drop unused assignments from pnp_device_id array
  2026-06-09 16:51 [PATCH v1] ata: pata_isapnp: Drop unused assignments from pnp_device_id array Uwe Kleine-König (The Capable Hub)
  2026-06-09 23:38 ` Damien Le Moal
@ 2026-06-10  7:42 ` Niklas Cassel
  1 sibling, 0 replies; 3+ messages in thread
From: Niklas Cassel @ 2026-06-10  7:42 UTC (permalink / raw)
  To: Damien Le Moal, Uwe Kleine-König (The Capable Hub)
  Cc: linux-ide, linux-kernel

On Tue, 09 Jun 2026 18:51:13 +0200, Uwe Kleine-König (The Capable Hub) wrote:
> Explicitly assigning .driver_data in drivers that don't use this member
> is silly and a bit irritating. Drop it. Also simplify the list
> terminator entry to be just empty to match what most other device_id
> tables do.
> 
> There is no changed semantic, not even a change in the compiled result.
> 
> [...]

Applied to libata/linux.git (for-7.2), thanks!

[1/1] ata: pata_isapnp: Drop unused assignments from pnp_device_id array
      https://git.kernel.org/libata/linux/c/0a77385b

Kind regards,
Niklas


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-06-10  7:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-09 16:51 [PATCH v1] ata: pata_isapnp: Drop unused assignments from pnp_device_id array Uwe Kleine-König (The Capable Hub)
2026-06-09 23:38 ` Damien Le Moal
2026-06-10  7:42 ` Niklas Cassel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome