Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1804267rdb; Tue, 20 Feb 2024 07:31:25 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUSq4+0GmXMaZ7SCZ2tyWLLUnHfyu7mBpExqo6UFd3eEpPsDYwOr80LOoI5oosiq6A0viwf64F5Yg3l6mJnTORN3xmWZ8TBnNa5YTUfwA== X-Google-Smtp-Source: AGHT+IFZ5qnbzyIiBrWDwclwaH0gbzCo7qT2mQDL8xr6nVlQHKUd/L0mzj+sTLXmEjCPDwM+ES77 X-Received: by 2002:a05:622a:1807:b0:42d:f128:eccf with SMTP id t7-20020a05622a180700b0042df128eccfmr17451611qtc.33.1708443084563; Tue, 20 Feb 2024 07:31:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708443084; cv=pass; d=google.com; s=arc-20160816; b=rz8uIzPLffuy8IS6Hf2kKnUuBtau+QepnIG+OfQtT0FWm4EcNpvLYlDXBLurP/z/xd 6XehsRcqTpPDSKnTCExusycqKbhiUIaRPoY+E9V5KnigtkT6R6ueLTU3VrdnULdU27Hc VYWOaTjdJCJUxrQWRMV3kVqW12B7xO0VwzcG+Xxo9gMqs5i/Dy75kVHGrUzxgIHbtb5E R0C6fcVPjGadIwptkZA96x8zyUdvRYND8YCZshaqD1M91yyzTlywH6T4+JwdSJqkwrKb YCpsrzja18OoQitGrIXsM5SNf4KyoIvR74EU2+RfElG0fjK0xdOVh4pKK+sF9ut9adCQ VF0g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=YwLWP4/vhF0uIJPtwS5+bkpQQd9v2zac6pd8EH25YT0=; fh=pUCCe/8z6hZM3KjWrDZdHCDsvXMsFYKfJD0mpk/zNpw=; b=s/Q72P4OVK1Ichk1GVYM2HU/+rcDdavZ4YnZB3ngPc6e93yFKDTWyiMrGmVNAT6iT3 Oe5qDtp+4SK306voFiQ2s81ilKFAmKOi5DCSqr6Sf4kT/h1mK0wMcoQE6I9IlNtkmZIw ZeO5g3xGrkQ6KYZcmEePV4asrP/2JUCxiJzZ/rUQd+jNAEYtvQAYrOc0jlCmG2w2ySHF OHd4w5BPHsosABzQW6jWGkOdg9/yV/gRaRn8BtIJdG199MUT69MOYYd4iBkurGOp7fK5 YA6dk3ER51jAVO83D1Fjk61obKzOTASp2HJOWxoIDOyo8OfOTWhdSglVFfhTQX7qQd/T RPqA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=c7FNHgwr; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-73245-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73245-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 15-20020ac8574f000000b0042deff96916si8842887qtx.79.2024.02.20.07.31.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 07:31:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-73245-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=c7FNHgwr; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-73245-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73245-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 466951C21264 for ; Tue, 20 Feb 2024 15:31:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 66796768E4; Tue, 20 Feb 2024 15:30:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="c7FNHgwr" Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (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 DCEA3763EE for ; Tue, 20 Feb 2024 15:30:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708443025; cv=none; b=bdxBh50mT0F+FI+Ivxx9mStMPiv/iL/YCFUdFZL+jnn86rEFWdjKVlMfIun4Pkg+CZSwQO8LX6pAZAeRUutAfIU7p7BEuWf3JKtWXLAH04LmJEypHKbE8+6gNWoWRqwcF+PSmk0pcQXP5iAopLG8873yr1GjADi28RGsKM9ojtg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708443025; c=relaxed/simple; bh=qYHC0DIL9EkTejQxo0dNu3EOioYY1QzCa+VXZLu5HiY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=OYRFfO69y4PQs1MYXO2aokC904LHboW1AuXJXQlbWd3Wiw/kQnJfdS427riesJJ+6GnYbkVeVPN3LJJWhDoCjTcDAfJIM850kOZRLGXbo2aMTlakjVE+l1dbDt/zYJRaH7nAFJTRssnxS9Xcb6OajtxKL1Wqy0u7OVjm5AILTrI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=c7FNHgwr; arc=none smtp.client-ip=209.85.128.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-4126fda8ef8so4616015e9.2 for ; Tue, 20 Feb 2024 07:30:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708443022; x=1709047822; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=YwLWP4/vhF0uIJPtwS5+bkpQQd9v2zac6pd8EH25YT0=; b=c7FNHgwrqAoCvO0G0cQ7kwC8S+uOlPtFbjY113GjE7pbjgX7wAoF4kzSvpbDSB7F89 x97ZRe3cKmlGLaXTTMbz8Gk9iLHlMTfmOGj9uWHl7fWfv/+hg1d/ZmQlx7AKMX7cmpLs AdP66eAp0Y9V7nvFzc/zlubtrSbLz0r2ai6bh/5uEMHgOK1TrH41w9RFtqd6RFBtDjNN KCSmcg5yHp8ayC6BB3v23UCWYog4H1D4vjRB13vh2v8Z0AUZD95vGzXDmm4k42Wq+Z3/ dYaqJ8YQqDIE/9DRdmyCcKl3Wt+4CP9cIUAaek+jzv2k8xx2XFZcs65iV9Sx/1HnFN8a CwvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708443022; x=1709047822; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YwLWP4/vhF0uIJPtwS5+bkpQQd9v2zac6pd8EH25YT0=; b=ReP9/riWQRGq0LfXU5w41ile02wR6oovKr+3FLpEurIwNQPKwKYmlYldaS61l+0glC jPkC5+shsgfZzc6v86ZFLkRLqVZkVKTIeU1flNgp4+qtfu+gOPrVg7XiquTadY5MFLGm zl/G3AHtmIXCQu6wQ1Z/D6g429UVT6S09DICbYU0vlydM0VrWi08uS5slX3oMvstkPG+ GJNxSh7xOLfHtcc3GE9OXXc2ar5tEX0Jq/2ZzbkH6v97+Fw7rY4pH8RuvUgZHV63xwc7 nyolaedsKpIaM7BtMtznfCCpzPslaUbFNNhv8j/hQK8WmWTEOm5GfJi7J6sFM4Nye7zL +VKg== X-Forwarded-Encrypted: i=1; AJvYcCWvQUpKSi5B79hhqpDJgrPKnAL6q5Jm3lIUJX6VXEahiGcPoVe6OFob5innBfgTjNPwRJQpNWJpxNj3s00zM+elmfnJZ5oS7YxHyZfn X-Gm-Message-State: AOJu0YyPtrsyZiHxKof027kqmsstqEWC5SMWQHxQpgs5cNAD2xiPVfiw 3rEVEYjtOutJaFhy3lZDYJPn0w/BfQinq4esegzaOC4zOd/Y6siG9ClpSE7EibE= X-Received: by 2002:a05:600c:2805:b0:411:a5f9:26f5 with SMTP id m5-20020a05600c280500b00411a5f926f5mr13067635wmb.38.1708443022356; Tue, 20 Feb 2024 07:30:22 -0800 (PST) Received: from aspen.lan (aztw-34-b2-v4wan-166919-cust780.vm26.cable.virginm.net. [82.37.195.13]) by smtp.gmail.com with ESMTPSA id m4-20020a05600c280400b0040fe308ff25sm14691564wmb.24.2024.02.20.07.30.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 07:30:21 -0800 (PST) From: Daniel Thompson To: Lee Jones , Jingoo Han Cc: Daniel Thompson , Luca Weiss , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/4] backlight: mp3309c: Fully initialize backlight_properties during probe Date: Tue, 20 Feb 2024 15:30:08 +0000 Message-ID: <20240220153010.76238-5-daniel.thompson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240220153010.76238-1-daniel.thompson@linaro.org> References: <20240220153010.76238-1-daniel.thompson@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit props is stack allocated and, although this driver initializes all the fields that are not "owned" by the framework, we'd still like to ensure it is zeroed to avoid problems from this driver if the fields change. Signed-off-by: Daniel Thompson --- drivers/video/backlight/mp3309c.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/video/backlight/mp3309c.c b/drivers/video/backlight/mp3309c.c index 34d71259fac1d..cdf302d6f1cb5 100644 --- a/drivers/video/backlight/mp3309c.c +++ b/drivers/video/backlight/mp3309c.c @@ -373,6 +373,7 @@ static int mp3309c_probe(struct i2c_client *client) chip->pdata = pdata; /* Backlight properties */ + memset(&props, 0, sizeof(struct backlight_properties)); props.brightness = pdata->default_brightness; props.max_brightness = pdata->max_brightness; props.scale = BACKLIGHT_SCALE_LINEAR; -- 2.43.0