From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (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 2BA103AAF50 for ; Tue, 6 Oct 2026 07:26:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791271576; cv=none; b=Wthm0cO2VOE/pX3Sy8kbSxe230icyH06X/LbHj9QWqXOldracDN+FupVH4KnIDDn3jWSzlRU9B2+6Kx6vlfLeCKHTFQBIcvz86Lv9pXkZza94tD/Z2pMLo1JfnqKt/5pHiiGDybsWeCkCgGTSc/2XH+e53bH9jEIyDQARX70rYE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791271576; c=relaxed/simple; bh=Ay/fZHYjGdbDCr8vOe8dvJbQunP445iHJfS9K/uXrjw=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=quQBa9PvmWbQsF7p89HENQh2bpX3ZRYAVftGEX1pJ2KLjWcWu9mOJ5EhuEtyx3UC351339efXIpGopEGa3rlUpy41/ZLL1Jd88s9MEyfdygqMw5bOjTgRycqPRfO1Ij1KchfVztx/naVNL2jImAw46gNrdgx5gSF/2k5F9D2Rcs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=MZXPMu5V; arc=none smtp.client-ip=209.85.128.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="MZXPMu5V" Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-4a140e7405dso24694335e9.3 for ; Tue, 06 Oct 2026 00:26:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791271573; x=1791876373; darn=vger.kernel.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=XpqVovb+d1ZXBKXEK7/8benV81UO23MTvl1ryC8HO3I=; b=MZXPMu5Vs3D91UMiimc3j+grG7OfKbFWJnOEkcroFFlsygdcIozYUb1OCT9nXab+19 u43UmejZ+MCTK2LqseIkBXxpklTmjgEzwcdIbTi1nuJhxKJZKiAofZ4U9i4UGHiSWnR1 yezOSsWoYbfEGugURfvFasKVcs2H14RNjal86heIeWtzPhY0DyJVMnl4f8G3NhOHPeto NkuxBIJ6vZkZS84LF4HSW7K7wYeaqsRqbNuVuOsIBTZqZC1QAisPWXS00hpXftYA/jiv GpkyJNOcCKXKe0dKyBnJTWECTfj3lY9eJUCY9l1/xGkl3cny7IRRrtPENe4QTfkrj2yO 3l2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791271573; x=1791876373; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=XpqVovb+d1ZXBKXEK7/8benV81UO23MTvl1ryC8HO3I=; b=vpsjTpAWCsWrpao5dvRHct29DksfQh+DD6o95m7ePx/glFF7d94XuDPrJRFsOZMSf7 g8Tm9HABo5S5bmwCUSLvXbiEi/fKyD/OYhPgIcSttHd0eq6FvqGix2b52ikz1JkwLJYn bF4KfbnqlRYSDx2Ohuslc/miplOlI5gwxdZrI6w5xox+4Hj9tjnPlauJ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3SN3+U5X5 puSDHSme1w+qk50UIIb8B+34GjZmmfE29t3ht/iXA5y29wV4eYA/sfO/L80SRXk6WBxjEV1s5Nx Zk6Vyp X-Received: by 2002:a05:600c:3b0c:b0:4a1:7733:5102 with SMTP id 5b1f17b1804b1-4a17b541311mr8420715e9.15.1791271573266; Tue, 06 Oct 2026 00:26:13 -0700 (PDT) Received: from localhost (90-182-112-124.rcp.o2.cz. [90.182.112.124]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a17bfeb65bsm6305735e9.5.2026.10.06.00.26.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Oct 2026 00:26:13 -0700 (PDT) Date: Tue, 6 Oct 2026 09:26:11 +0200 From: Joshua Crofts To: Pawel Zalewski , Eddie James Cc: Nuno =?ISO-8859-1?Q?S=E1?= , Michael Hennerich , Jonathan Cameron , David Lechner , Andy Shevchenko , Petre Rodan , Matteo Martelli , Marius Cristea , Matti Vaittinen , Lorenzo Bianconi , Alex Lanzano , Jagath Jog J , Jean-Baptiste Maneyrol , Kevin Tsai , Marcelo Schmitt , linux@analog.com, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 00/12] iio: use designated initializers for acpi_device_id Message-ID: <20261006092611.00003462@gmail.com> In-Reply-To: <20261005-acpi-iio-v1-0-2796f713945a@thegoodpenguin.co.uk> References: <20261005-acpi-iio-v1-0-2796f713945a@thegoodpenguin.co.uk> X-Mailer: Claws Mail 4.4.0 (GTK 3.24.51; x86_64-w64-mingw32) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 05 Oct 2026 15:01:56 +0100 Pawel Zalewski wrote: > This series is converting lists that contain the acpi_device_id struct, > which is defined in the include/linux/device-id/acpi.h to make use of named > initializers (which they do not use currently). This work is part of the on > going effort in the kernel associated with device-ids [1] > > The plan is to convert acpi_device_id::driver_data to have an anonymous > union, similarly to what was introduced for PCI and I2C device ID tables. > The goal is to increase type-safety (most of the existing casts are gone), > to improve readability and to make use intent a bit more clear: > > ``` > union { > kernel_ulong_t driver_data; > const void *driver_data_ptr; > } > ``` > > But for that to work all lists containing the structs need to use named > initializers first to avoid triggering -Wmissing-braces. I already have > patches that implement this and touching a lot of kernel subsystmes that > use the acpi_device_id struct and that list keeps on growing. Therefore, > I have decided to split the series per every subsystem into: > - pre-clean-ups that convert the lists to use named initializers > (which is this series) > - actual implementations that make some of the modules use the new > driver_data_ptr member > > That way the task can be fragmented into manageable and independent chunks > of work and makes this effort easier to review. > > Tested builds on x86-64 and a64 in Yocto using 7.3-rc6. > > [1] https://lore.kernel.org/all/cover.1780048925.git.u.kleine-koenig@baylibre.com/ > > Signed-off-by: Pawel Zalewski > --- So I guess that's IIO done when it comes to C99 initializers. Reviewed-by: Joshua Crofts -- Kind regards, Joshua Crofts