From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DF0EE3EB816 for ; Fri, 26 Jun 2026 13:18:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782479900; cv=none; b=lD0tvqcvgYfLgmXJAkiOpz648zZJ/No6gHl3F+CQKK39lc9QAzsmZUtRD7tAI4N8BlZ1Hqyt8ALaRbi2aCvV+qpSf6w6bsPuL/1Bp0j1lie77aTM8oXfG9aT6dqUdfUs4ijDQuCXT09LWuQE2Q+iWuVsEzejysHKRXblJmU24KY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782479900; c=relaxed/simple; bh=g74h5nMG2Muxpb1zKR1SzpZn4GOvZVqUJyiTDhZ+Qdk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Q5rs0vDFEPKGtKRFOiaYuwMGrLgHH+E0Sqxha2ERZPU/r7qLxJ0+QpY2N5quVN79k2OM+9I4yGmyOSH1Nj9rcI7FwCkj5KWD1rZCxRUDiw2Eufl8W/uSpgqx/Y5ztQ0fuLE8BxHhVRhm4fLd8wf6D1QE2YkPKoiktLT7gA4bztc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.b=edSlccIF; arc=none smtp.client-ip=209.85.128.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.b="edSlccIF" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-4926fe5be4bso1653355e9.0 for ; Fri, 26 Jun 2026 06:18:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1782479896; x=1783084696; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=/VJE2Q0wRemfAFmMp6oN0iCUsBxXjEe9Lpsiy0TlcHk=; b=edSlccIFBKMDGAwRBY9KGqTAOjFcy++nvVp0BKhjQMGw4Go5TSdpm/mLbLIgjORdRp uyYzTnv3817qWOR89ZQmI597renvJpwtPO8Q4tcu3zbkY51pcPkkw6sm0QV6A4R1z7yc CzFkwSVTE5VsZDd/TRZ4BvjtLl5GSNO8sCEfVgPYa+wZce/IKdV2W4x4rRLuLUtVqLZd MzSGfP+pqHBCdVESyVCjrEclrnCwP8t3eZlwl7W0f8cFmuBmHJf6rr5M9/nqqiowbbi5 AyFpT0cXkq4TVVcrPKBQnWRX8aMTQ43u5TuUfeVZPP24oYMPuDEBMmF38/mrDsFTqD8+ +FlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782479896; x=1783084696; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/VJE2Q0wRemfAFmMp6oN0iCUsBxXjEe9Lpsiy0TlcHk=; b=BeL3AMYi4fS8xgFs1wV3IOVNhbee6wD5GU9eY+XN8Us0FD94M6YsAKzYju5GzRI5lU 62pg3YcR9aBJ3QJDaSk5uwp7TJcpo3vOE1UJ2k/bkKCsaGS+PRoe8dPe4aTVRt2nPboo pQbFEVI/3W0ngV7/mADCeL0/f8XeRkZ1n6yMuYcY1J79Fq6DHS6/IbEuHoxRF8TWmICA ZglLUPbCDIetwr03d3YCGvk5+7zygoDoB1/sxiowF54mz3dGPJiGnSpYKvVCYiOoc8ty p0puqSqnUopSvjBDmxaO1szS1q2Wy2sAXSQMp0+Q4vQwF8BW6/KEb01bDA+m1v2J0LyI LDhQ== X-Forwarded-Encrypted: i=1; AFNElJ/yxyqS+ivvB98yC3Rb67918/ianX+nRrRsU70WwpSPwnprHL/2goxb6OvnTFfgjHK+FSuBcpy+zG22Tjg=@vger.kernel.org X-Gm-Message-State: AOJu0YxaT5NkBwKuqMZNXA4iFsdSbLXSZLSEpsSvjdDl0uHpZn1P42hj XLcW0qFqGXeBRDkja0Rr+JjThLHuUB0tdoNKuhkQ+dLfQA2ynZU9+Tv9unyUv/O8A5o= X-Gm-Gg: AfdE7clupOQq9zuzdlNlT75Yq7ke3BNv1J7WxVyV6qp3JLh1yYEfOiCnrvClT7UmONc 9wcHvhE3t9uq7iPGJ5WyvKjIXVokkEf6yo1N+HbmOT0pEVodOdJ6cQb/W24hL6M4DhfkOVcXS7g 1/YRPmpIaE1BEIszqi+bmd2EPGPsvwrXDPTPVa4bl2QXE2QSBTVYcbQQmXNoaEa7WtMWw84JEcA naqvKgQ1lfCRK+seU1zTsznm2kQ04rldmTim8KJWZaPn33M0g7dV34FdcllGCNpFOZjIvkq7F3N GzzC4fY7OP0ruvKvshAdua+URCebMLhUX+E5B8GtbrWoy5z6y0NajAWz8YFTbB1EYhU0WTU+Psg 9PvQ652QhOFSDpm6W6//Pvr6G7genjaqumfdFPMk7Y5xwTGqQjR1VWvhb4AZPdkMYhnNl/M8Jxy eDJcS4qylkqEnwBDYdEA/eCwF5TY1eegIWe0Yflz4sf13GcaL/x2x7QzTZ0f4mf654ZTzI1oMLI 8dQ X-Received: by 2002:a05:600c:8b82:b0:492:6fa2:fffe with SMTP id 5b1f17b1804b1-4926fc2ee01mr11951535e9.8.1782479896318; Fri, 26 Jun 2026 06:18:16 -0700 (PDT) Received: from localhost (p200300f65f47db04b3606a871f5f1c38.dip0.t-ipconnect.de. [2003:f6:5f47:db04:b360:6a87:1f5f:1c38]) by smtp.gmail.com with UTF8SMTPSA id ffacd0b85a97d-46dcbac0c9dsm15087448f8f.19.2026.06.26.06.18.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jun 2026 06:18:14 -0700 (PDT) Date: Fri, 26 Jun 2026 15:18:13 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig_=28The_Capable_Hub=29?= To: Jonathan Cameron Cc: Nuno =?utf-8?B?U8Oh?= , Michael Hennerich , David Lechner , Andy Shevchenko , Greg Kroah-Hartman , linux@analog.com, linux-iio@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 13/13] staging: iio: Initialize spi_device_id arrays using member names Message-ID: References: <20260624185419.27db9ef9@jic23-huawei> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="7thw2omwi5v34cxb" Content-Disposition: inline In-Reply-To: <20260624185419.27db9ef9@jic23-huawei> --7thw2omwi5v34cxb Content-Type: text/plain; protected-headers=v1; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH v1 13/13] staging: iio: Initialize spi_device_id arrays using member names MIME-Version: 1.0 Hello Jonathan, On Wed, Jun 24, 2026 at 06:54:19PM +0100, Jonathan Cameron wrote: > On Fri, 19 Jun 2026 17:54:41 +0200 > Uwe Kleine-K=F6nig (The Capable Hub) wrote: >=20 > > 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. > >=20 > > The mentioned robustness is relevant for a planned change to struct > > spi_device_id that replaces .driver_data by an anonymous union. > >=20 > > This patch doesn't modify the compiled arrays, only their representation > > in source form benefits. The former was confirmed with x86 and arm64 > > builds. > >=20 > > Signed-off-by: Uwe Kleine-K=F6nig (The Capable Hub) > Applied. So that leaves the pair related to Andy's comment and that ADI = IMU for > a v2. >=20 > Thanks for your hard work on this. I merged it fairly quick because > I know we are going to have some merge conflicts (mostly other folk > tidying up individual drivers as part of more complex changes) Thanks for your cooperation and merging it. The combination makes this worthwhile. Best regards Uwe --7thw2omwi5v34cxb Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmo+fBIACgkQj4D7WH0S /k6eWwf/Tvn+bgvNG3NK+tD84r9aiGJo4jpMK1kWEL1eDrhI0sCrR2Kr8jaYb0Kk Dj7pzmKa8uyYV+saXCth2I7y8rWNSmsphOwE87zPEfRDCGgYq3L0Ei77FE30GtOT OYEz+uBkcsDyz0cIEKrueEUBViG3KhnmKcXr4jwF271JP2VbAqPiGh6ctUrUN4Nf AJkQcx+VQjQsRZovjvaPeQGkymlKNlHSqngjNuGpYFN4zCEPL2/BcPrm7qqXiG/T Y5RwvpwNMC/uBZ+0Mv0DlIrlVe72dTCk/F+eX0Nid0BGVLyefvVaPJdoy2Ntfsck /xsSrJhj3o1OTf9ZgY1aooUnGcxLKw== =ADFr -----END PGP SIGNATURE----- --7thw2omwi5v34cxb--