Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1807578rdb; Tue, 20 Feb 2024 07:36:51 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXmXuDYQFjkbQ+K/A7Y9rWaXhuzxglRnVErPL43dS8X6dsIbajHcXAL2OXMi03FJF2PQJq0XwP23hyNG/XiFT7YzOYuoqtmMUQY2qNQfA== X-Google-Smtp-Source: AGHT+IHqGuI9pBVKUBKSQ6xOAd3xzmui9+8SB1382m43v1LW5oPs9kQ7YbRv7yhck1d8+U8KDaXF X-Received: by 2002:a17:906:1c0c:b0:a3e:d890:3756 with SMTP id k12-20020a1709061c0c00b00a3ed8903756mr2998485ejg.36.1708443411535; Tue, 20 Feb 2024 07:36:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708443411; cv=pass; d=google.com; s=arc-20160816; b=HnXOffD+tKc7148zVFMkZJHBoh75QP3Y60C3IQe09NGaK2BcRFMip5RDTZwjCQhVbX ZbSHP/BoipIcidr42NMI+O7hrZ6l6x7y2cZnOupRLmHGkoRYLBULt29zApwP5UUGLza9 A6Z3Ju2oBDi3r2Rn9IKpITVFETMPug0miHi3cXA7+D1ebLMjStlyVvoe+4D3u1r+o2MD IIqYbe45kYMpeyKn48k2cUtrB4Zj/xvWGis/ywFCCPQXgitc9LwLJXiR9KDlqiMzUT+S irj6X8IT6YVKTYWNapRGeoTslgGme32IJ34LGRDvBTmjBtRmV/V9COnkp5qu8JSAFKbg nZyw== 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=LjxEmnAV1trNDvAjhl9uwDjNJhhKNcbgflvLST0ilIk=; b=bTVqbDeybqQ4yrasmSPfuF3SAgR1xDbBFylQi3hZ+L6HDloXkA/fXYciwZAzBJk/1U GfVyAuHGVHv8nTgMIBgwH+zErK1tKLPdIsONdjqbKkpFyglwmwzzHxLny5sE8oLkgWj4 d9SUpVqJ+JGER/lAdlLYTCJwhy/WM4ElTJjxQJzJzYUyyjl6kGwoN6KDAPJJWN4IHKi1 ZTUDF+Nib/T8JLMM7tF/1eucDf8OMOdwP+YzBctLzV/LLhJSlS8XSPwjOMfTPOm08bjD s33LEGnLMJvZhv2AT1bJg23DimCLFiOejtQlMpDW9umecd+ncDTXaCXOexLrYXzyCI3P He2g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UC6QvBg+; 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-73252-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73252-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id m21-20020a1709066d1500b00a3f175a55f9si293672ejr.376.2024.02.20.07.36.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 07:36:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-73252-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UC6QvBg+; 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-73252-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73252-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 6E56F1F22136 for ; Tue, 20 Feb 2024 15:36:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E1651768EF; Tue, 20 Feb 2024 15:35:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="UC6QvBg+" Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) (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 50F0D762ED for ; Tue, 20 Feb 2024 15:35:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708443349; cv=none; b=EIqb9fr6+tcSVfeieOzZ3AGtc/T8Lq5BGR00nbIvrXH+NgtIWuD2sMGfx6fE86NBnh/dfOFze0PsrH2de5Iti3ltwwH1DLxpjB0tdbmuY3LmsIK2vAZ0RPNqKN4Z6OVTNHUv1G9gl8thwMlvCRoIhDhCsnMlWcYCQereN3nrd5c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708443349; c=relaxed/simple; bh=qYHC0DIL9EkTejQxo0dNu3EOioYY1QzCa+VXZLu5HiY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=M9NrlGfbbi+l4GObohAlgQ3HjQmPN5s+3MpjbHRnTCsjng+wMKiwOyZNMLigu/MvKx0QiGmsboujFUQC+bTMDt/05ogXi+tyHOsX8rhEH5NiG0NmHAlb558ARRmHMqf9uqwcDW9hsVtlsXtEt0EOqgadiK2iFZeKtbM0SYQYidQ= 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=UC6QvBg+; arc=none smtp.client-ip=209.85.221.51 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-wr1-f51.google.com with SMTP id ffacd0b85a97d-33d38c9ca5bso1443805f8f.2 for ; Tue, 20 Feb 2024 07:35:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708443345; x=1709048145; 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=UC6QvBg+3Mdb1lYH1E5enNvjiZPxjrCQyYs3NLvC0W1tVnAJ6SXsCZo3xouUod+3KH kP306Ihacy5zZvwIliTSIPMUAIEZzMRj5njuTeuRvHFYCed9aPC3aYrohNlXSSrbcwft 3Nl47kCynpL68MPaqc9A6PAVLj/KIE30nxo++oBguSs4o6uKPGmffGYW547FXdJiYwyR mplMzkYsAB2oIYEHBxGMzNWw7zhMC1udcVF+GiLPtc0oQLYknIWPz5tKrwrUJdMNIzWq Cq7SYGQEMRHFUn57Lw91iXsEr1kMdtvCwTb1Qd3h4v/eQXbKdgQN2Rt6QPAqyFOj/vSu 2jhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708443345; x=1709048145; 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=VnP6ugit3TZdMBagzDnUqNuILGuvC1Ea3/EB4Wj8eETAtzhO41+B7RSD/VCCPylM9e 55SYdR+V9+DFvlxeogIktPBbin0/UTLu0YBE1EzsNGNWdrRbZeU8oe1WsAXQLm3JnxLW C+f4eBcVn6/yykbTS7gQGXAisESUgNih4L8RRAaoPleZ0LyI4CTkRJcPtE4PvtRSH3Rs 2djzgxsmq9vTfsaHDsXYY9R67Ol2LNbIpa3v5ikaB/T+UMdDYuGGNjemkE/11l68CFzR p2oR25vzwfnomF0PF3d1BJOD4if9767AGH2YlNXVvIEroxKmCZL7s9YqHosXcyoLWCOJ kXoA== X-Forwarded-Encrypted: i=1; AJvYcCUl31PkVdVfumObSJftdHCwMq4rrLWS+pws54m8rafs6QlB/xvrcFd7S1/9R3z/+gqPvkM6GAv/yDGarD6BqXDlE9XQelCFQKZy9wsy X-Gm-Message-State: AOJu0Yx/5fDMhW0lfXn9EJAfld5lN2vGSMVqCzzeeUxIvyooxjAmjVEP J7b22dWKaJCn2FazneVXldk9SIOngXkp3jJ1ZD1c1tRAO8uOPof3R4g38CdQjWY= X-Received: by 2002:a5d:414e:0:b0:33d:1427:5274 with SMTP id c14-20020a5d414e000000b0033d14275274mr10295254wrq.52.1708443345703; Tue, 20 Feb 2024 07:35:45 -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 g8-20020a05600c310800b004126ec2f541sm2444905wmo.0.2024.02.20.07.35.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 07:35:44 -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 RESEND 4/4] backlight: mp3309c: Fully initialize backlight_properties during probe Date: Tue, 20 Feb 2024 15:35:27 +0000 Message-ID: <20240220153532.76613-5-daniel.thompson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240220153532.76613-1-daniel.thompson@linaro.org> References: <20240220153532.76613-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