From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 88E14CA0FFE for ; Tue, 2 Sep 2025 10:36:40 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EF2C210E1CE; Tue, 2 Sep 2025 10:36:39 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="ApSYHyaf"; dkim-atps=neutral Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by gabe.freedesktop.org (Postfix) with ESMTPS id ED69410E1CE for ; Tue, 2 Sep 2025 10:36:37 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id 0CBB86020B; Tue, 2 Sep 2025 10:36:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D7EAFC4CEF7; Tue, 2 Sep 2025 10:36:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1756809396; bh=aLYwCVcjgK+Ykfa6a4sTh95sU5K4KlPUrOioPHSSVUI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ApSYHyafSOLKGR+yfxcc3judZLx8wLkmz1h8TPBOIn+XAUVpmx4fvPPUV3WL5HUm1 koGpuRdxldC1LV2PHrjvCDA2NwXeS6VUub6Wm0z1Xi6MRu6y9kOUfc1Ebw40hTEbTC Uu3yjxRBmLzLckSAGeouhw/1Yu10CsqvRKHJjE9DoVy5upVniAN63ei77ETj5ZIT0s 40ntXS197fYo7dKrmypM/m76LLsCs2GBjouNaZlNNdKm44ORHeeYSlCjHEgHg/0Y3a 2vIJXF0WUyv787A2iTqiB+X0ibiwzXAi0lozNAVIAgDFc++kWLm8kqGLKDCagYgHpG XTPuPvWwwvG5A== Date: Tue, 2 Sep 2025 11:36:32 +0100 From: Lee Jones To: Daniel Thompson Cc: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Flavio Suligoi , Daniel Thompson , Jingoo Han , Helge Deller , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-pwm@vger.kernel.org Subject: Re: [PATCH 2/2] backlight: mp3309c: Initialize backlight properties without memset Message-ID: <20250902103632.GH2163762@google.com> References: <14514a1b0d3df6438aa10bb74f1c4fc2367d9987.1751361465.git.u.kleine-koenig@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Mon, 18 Aug 2025, Daniel Thompson wrote: > On Tue, Jul 01, 2025 at 11:22:37AM +0200, Uwe Kleine-König wrote: > > Assigning values to a struct using a compound literal (since C99) also > > guarantees that all unspecified struct members are empty-initialized, so > > it properly replaces the memset to zero. > > > > The code looks a bit nicer and more idiomatic (though that might be > > subjective?). The resulting binary is a bit smaller. On ARCH=arm with > > an allnoconfig + minimal changes to enable the mp3309c driver the > > difference is 12 bytes. > > > > Signed-off-by: Uwe Kleine-König > > Reviewed-by: Daniel Thompson (RISCstar) Looks like you cannot send tags from non-related email accounts: NOTE: some trailers ignored due to from/email mismatches: ! Trailer: Reviewed-by: "Daniel Thompson (RISCstar)" Msg From: Daniel Thompson I'll add the tags manually this time. -- Lee Jones [李琼斯]