* [PATCH 0/1] w1 drivers patches
@ 2026-06-04 16:50 Krzysztof Kozlowski
2026-06-04 16:50 ` [PATCH 1/1] w1: ds2482: Use named initializers for arrays of i2c_device_data Krzysztof Kozlowski
0 siblings, 1 reply; 4+ messages in thread
From: Krzysztof Kozlowski @ 2026-06-04 16:50 UTC (permalink / raw)
To: Greg Kroah-Hartman, linux-kernel; +Cc: Krzysztof Kozlowski
Hi Greg,
I have only one patch for this cycle.
Best regards,
Krzysztof
Uwe Kleine-König (The Capable Hub) (1):
w1: ds2482: Use named initializers for arrays of i2c_device_data
drivers/w1/masters/ds2482.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--
2.53.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/1] w1: ds2482: Use named initializers for arrays of i2c_device_data
2026-06-04 16:50 [PATCH 0/1] w1 drivers patches Krzysztof Kozlowski
@ 2026-06-04 16:50 ` Krzysztof Kozlowski
2026-06-08 9:43 ` Uwe Kleine-König (The Capable Hub)
0 siblings, 1 reply; 4+ messages in thread
From: Krzysztof Kozlowski @ 2026-06-04 16:50 UTC (permalink / raw)
To: Greg Kroah-Hartman, linux-kernel
Cc: Uwe Kleine-König (The Capable Hub), Krzysztof Kozlowski
From: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
While being less compact, using named initializers allows to more easily
see which members of the structs are assigned which value without having
to lookup the declaration of the struct. And it's also more robust
against changes to the struct definition.
The mentioned robustness is relevant for a planned change to struct
i2c_device_id that replaces .driver_data by an anonymous union.
This patch doesn't modify the compiled arrays, only their representation
in source form benefits. The former was confirmed with x86 and arm64
builds.
Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Link: https://patch.msgid.link/20260518171456.872736-2-u.kleine-koenig@baylibre.com
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
---
drivers/w1/masters/ds2482.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/w1/masters/ds2482.c b/drivers/w1/masters/ds2482.c
index e2a568c9a43a..0069e6f854d7 100644
--- a/drivers/w1/masters/ds2482.c
+++ b/drivers/w1/masters/ds2482.c
@@ -539,8 +539,8 @@ static void ds2482_remove(struct i2c_client *client)
* Driver data (common to all clients)
*/
static const struct i2c_device_id ds2482_id[] = {
- { "ds2482" },
- { "ds2484" },
+ { .name = "ds2482" },
+ { .name = "ds2484" },
{ }
};
MODULE_DEVICE_TABLE(i2c, ds2482_id);
--
2.53.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] w1: ds2482: Use named initializers for arrays of i2c_device_data
2026-06-04 16:50 ` [PATCH 1/1] w1: ds2482: Use named initializers for arrays of i2c_device_data Krzysztof Kozlowski
@ 2026-06-08 9:43 ` Uwe Kleine-König (The Capable Hub)
2026-06-08 10:00 ` Krzysztof Kozlowski
0 siblings, 1 reply; 4+ messages in thread
From: Uwe Kleine-König (The Capable Hub) @ 2026-06-08 9:43 UTC (permalink / raw)
To: Krzysztof Kozlowski; +Cc: Greg Kroah-Hartman, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1437 bytes --]
Hello,
On Thu, Jun 04, 2026 at 06:50:28PM +0200, Krzysztof Kozlowski wrote:
> From: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
>
> While being less compact, using named initializers allows to more easily
> see which members of the structs are assigned which value without having
> to lookup the declaration of the struct. And it's also more robust
> against changes to the struct definition.
>
> The mentioned robustness is relevant for a planned change to struct
> i2c_device_id that replaces .driver_data by an anonymous union.
>
> This patch doesn't modify the compiled arrays, only their representation
> in source form benefits. The former was confirmed with x86 and arm64
> builds.
>
> Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
> Link: https://patch.msgid.link/20260518171456.872736-2-u.kleine-koenig@baylibre.com
> Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
I wonder about this patch because it was included in next as
10cc9de3d4fc between next-20260526 and next-20260604 (inclusive) but
isn't included any more in next-20260605.
I assume this mail is part of the submit path of w1 to mainline and
Krzysztof dropped it from his tree to not create a conflict in next when
Greg adds a slightly modified variant?
If so, the expectation that this patch makes it into 7.2-rc1 is still
justified, right?
Best regards
Uwe
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] w1: ds2482: Use named initializers for arrays of i2c_device_data
2026-06-08 9:43 ` Uwe Kleine-König (The Capable Hub)
@ 2026-06-08 10:00 ` Krzysztof Kozlowski
0 siblings, 0 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2026-06-08 10:00 UTC (permalink / raw)
To: Uwe Kleine-König (The Capable Hub); +Cc: Greg Kroah-Hartman, linux-kernel
On 08/06/2026 11:43, Uwe Kleine-König (The Capable Hub) wrote:
> Hello,
>
> On Thu, Jun 04, 2026 at 06:50:28PM +0200, Krzysztof Kozlowski wrote:
>> From: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
>>
>> While being less compact, using named initializers allows to more easily
>> see which members of the structs are assigned which value without having
>> to lookup the declaration of the struct. And it's also more robust
>> against changes to the struct definition.
>>
>> The mentioned robustness is relevant for a planned change to struct
>> i2c_device_id that replaces .driver_data by an anonymous union.
>>
>> This patch doesn't modify the compiled arrays, only their representation
>> in source form benefits. The former was confirmed with x86 and arm64
>> builds.
>>
>> Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
>> Link: https://patch.msgid.link/20260518171456.872736-2-u.kleine-koenig@baylibre.com
>> Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
>
> I wonder about this patch because it was included in next as
> 10cc9de3d4fc between next-20260526 and next-20260604 (inclusive) but
> isn't included any more in next-20260605.
>
> I assume this mail is part of the submit path of w1 to mainline and
> Krzysztof dropped it from his tree to not create a conflict in next when
> Greg adds a slightly modified variant?
This was sent as patch, not pull-req, so to avoid duplicate patch
message from Mark.
>
> If so, the expectation that this patch makes it into 7.2-rc1 is still
> justified, right?
Yes.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-06-08 10:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-04 16:50 [PATCH 0/1] w1 drivers patches Krzysztof Kozlowski
2026-06-04 16:50 ` [PATCH 1/1] w1: ds2482: Use named initializers for arrays of i2c_device_data Krzysztof Kozlowski
2026-06-08 9:43 ` Uwe Kleine-König (The Capable Hub)
2026-06-08 10:00 ` Krzysztof Kozlowski
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