From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E636F3E5A3B for ; Wed, 24 Jun 2026 21:16:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.84.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782335819; cv=none; b=HqawGahutTYfGQ3nVjR00sUjOvlaYhjDZQFVR/dH6oEWYxrEa7Bm5vFBUxdjnZ9Q1POntdXUcftrIcri866dGbTzrOSPHz+5ST9hfluFvXivXKf7QV6U9iSIKTnaXT+BtClOdAC/lWSMKJ/+5fHwMfpiz04SQNTxJDx27EwZb7I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782335819; c=relaxed/simple; bh=ecxlZnEuj2Eo0/4ompwhkNbm4kF3hIiLP8cU4LvDek4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=L+jINVk+LzhEm2boDR/vE3EL5A5JrV7gAfy6FgrjA/N9r++a5vHdJXddHKSZuq4Gmm9FSWVz0Fob26XqS4uuKYthvXe5DuzEjj4bVD9DdLBW2f6oURN8FD2bVqg52WTECusiO6QGMYnda4GXZH8oqEX3B1klnBMD6hfp95nHKFs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=jQ1q0EtQ; arc=none smtp.client-ip=185.246.84.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="jQ1q0EtQ" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id A7CEF1A094C; Wed, 24 Jun 2026 21:16:56 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 73B48601C5; Wed, 24 Jun 2026 21:16:56 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 64A32106C846B; Wed, 24 Jun 2026 23:16:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1782335815; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=nkAQuOljHOlOW1xu2RCl/yHIoYiGq9+rhAXaUe531Ak=; b=jQ1q0EtQN+4mhEg8krXlW+VqTsQS/E6oyHvUv0Pl4xM64uF9yLJmYXeuCDLABWA/zUPC7g FCMoXLULjcaDSkbNAy4Q51rrIMaIUMMQJx8x2HGj74af5qYm5DZv1O3KOCP2n9Hzlus5Is i8pUnlaIn5VaV3oqYq78n5o5hu/o3wBdSTh/MVADZd/lpSqJkzruy4B0n14kUDbkobuC6N Z0ODxj7211KYvxjD1pRrNjAJzC8rPAe75fP6uLz7/YaCnCNVlRlLA8AeHQAscFqoLYDmQ8 ISzBdzppoa8jDhZJyyrz9cxUQOpYtVETFkQpuCKORkCv+kD/rkhUu7reOPJ9CQ== Date: Wed, 24 Jun 2026 23:16:51 +0200 From: Alexandre Belloni To: Uwe =?iso-8859-1?Q?Kleine-K=F6nig_=28The_Capable_Hub=29?= Cc: Antoniu Miclaus , Andrew Jeffery , Avi Fishman , Tomer Maimon , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair , =?iso-8859-1?Q?T=F3th_J=E1nos?= , Dianlong Li , linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org Subject: Re: [PATCH v1] rtc: Use named initializers for arrays of i2c_device_data Message-ID: <178233558801.1517260.6314981975455292147.b4-ty@b4> References: <20260515154720.406128-2-u.kleine-koenig@baylibre.com> 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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20260515154720.406128-2-u.kleine-koenig@baylibre.com> X-Last-TLS-Session-Version: TLSv1.3 On Fri, 15 May 2026 17:47:20 +0200, Uwe Kleine-König (The Capable Hub) wrote: > 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. > > [...] Applied, thanks! [1/1] rtc: Use named initializers for arrays of i2c_device_data https://git.kernel.org/abelloni/c/3eebec1cb5dc Best regards, -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com