Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2969703lqp; Mon, 25 Mar 2024 15:03:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXIX1ImPiwfT+qT0HKBCTdApCNvN/eJoxoSYRd0UDYcnoJnBIv6WKyNrJERdj4VLNK3Ha2lUbYhKNEIEkJY4MiHnS0qe7cx1ipOF9nQFA== X-Google-Smtp-Source: AGHT+IGY4IpH+FvGEHAyQH7hgB3MP4BnoKJp+G/bhybcAcUGNfKKfUGjX0kJ+xhPCFyQkmLjUzmQ X-Received: by 2002:a05:6359:4c91:b0:17e:bf89:1be1 with SMTP id kk17-20020a0563594c9100b0017ebf891be1mr10185365rwc.8.1711404210882; Mon, 25 Mar 2024 15:03:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711404210; cv=pass; d=google.com; s=arc-20160816; b=jwTLyQcCeOl0hKrD0u8AGFkjScffIKiBUUV1hU2i3LSOUacRMGqRv65yHCdxIEe42Y BVDOElXn9FdP2fY/flAyMUYg4nLhGT/Ui5r4iCkDVCyGkPbvoctKqCuzEmkEKYuNmykB RrZgqF5MJkGS8TVsHU7kFPZbS70gF4SKGt2CLMZNMcWCDbtYE6HY3Cu5ikLhjni/EmcF cdnbImMZMQJIiNE28e9jY3/zXu1qHTqA7VzGVaLvSOjscyD4pyZzm4lF9PCXLCkJFT4B V7CLOCZ2i0XNRpZgg1VttevTBA1Xk2qxOOq7qrUy+al2VcFeE8VpB3CuVfy3TxiAxbfc OGSQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=XpSiYldKH5rIkhRiCFgClqdFkLlO1k1YxneIR82EqBg=; fh=n7Wp2/XjgGyDfm/57SGLTdNB5O1zXvzJ9bIEdgB3ARU=; b=w9GPlXxqshEajs/YnK3trL1nFaFUMiqvPXQpq2TFbhpuC0xlDUOrCbe1x4fuJY2DxC 77rkWYtlNv1y9V8TJcMHL1GcLhsC2L5pbbsuMxYzd5feMDpvHqLni6g3dRDGSeSiAxnP XRihF1w0ZJfpVhflyElhTRxqiIgvHW6CrQ6yLRoZYevdogh4CAVxAU1tKtbcBdTcLY85 Kg3/ExzhaqwbDVlYtecfS98Zn73Zsyx+vni4ojag92f0ZOtMrrJnJ/UXb6pkh/bn1n6r 9/d2L8Irt44IxtM6UVSxKn6Vv/QFi8ElKHOzoQzLkYnLgvbpsYn/txGA9RCdNHaleldv 3dDg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GF3E4fxs; 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-116892-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116892-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id k22-20020a635a56000000b005dc9365a903si8330866pgm.704.2024.03.25.15.03.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 15:03:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-116892-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GF3E4fxs; 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-116892-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116892-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id AED48B41D6E for ; Mon, 25 Mar 2024 14:42:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B2AB617831F; Mon, 25 Mar 2024 11:41:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="GF3E4fxs" Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.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 7E09918D892 for ; Mon, 25 Mar 2024 10:50:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711363821; cv=none; b=XcokmBfMxnsiTic0vupXzQcEVGv5q6UvOHtPabEinubfuoT6lcz8ZKmpWF0jemvDI/+fQENGiMg0d9W7eTg+Q17IpcNDP5PW+LsyI7zFn/+LxV4hDGsrvIejAmaEHFaWhupguiFUEtouTcQ6zkB+tiMXWZHtLADD9BtSLi2ysHA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711363821; c=relaxed/simple; bh=XpSiYldKH5rIkhRiCFgClqdFkLlO1k1YxneIR82EqBg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=c7MNpFTHNcSgOhe9Oo7yRI44soVun+YN4Oc5uD8qoGB6eGPJcmdOB5dqYct0dSANUuD/D3Acw+VVx4WV1pT5OmIlma5xyzjzkQvmed7FLFqeudkV9atFYyY4Y9NCFrxoShdU918ezrJlgBzLzcr+aP2+qGqxn2ekd9C/JzCRvLM= 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=GF3E4fxs; arc=none smtp.client-ip=209.85.221.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-wr1-f42.google.com with SMTP id ffacd0b85a97d-33ed7ba1a42so2849275f8f.2 for ; Mon, 25 Mar 2024 03:50:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711363817; x=1711968617; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=XpSiYldKH5rIkhRiCFgClqdFkLlO1k1YxneIR82EqBg=; b=GF3E4fxs7ZgQHREtg/UvCmGvUR2sMSIhAmulkcBsUYdofEVT8Jsid0iVZZzYZvqMdq whsvXwQknR3OAo1ak6eI68kLYO7llUBarje3QIRXAeSfVj8wmfhI5oMqg8DE+JbVnM+I NHE9jMLjaMA3s4v56WfgvRP58wl0U6xOiuS0vvVbfLnO57Vt4ZoUf3t49HFA4cgBhlnQ rdm8QbnoKDxgnPvyFyCeyJ4Rm79CCjvmng+5Z2Z4nYvXGMzGUXf4CmTM+O+2AQ/WB22n ljdv5rbov0rTVB8qj36mR8NmuEFDUjGN/7bVIaJP4GvNgXtlOyvio1t9lJTcH6afEa7i 6MgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711363817; x=1711968617; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=XpSiYldKH5rIkhRiCFgClqdFkLlO1k1YxneIR82EqBg=; b=K/YYc4jVUfnATm2xOQVstkjkRq/m5EA11kuyD11PSuh5VQEt7wGl7hfI91Cglf6TVm poH/EMLjZCSfZG4wKSHza47L1ieLVPOffcYBcFS9+YUys3bD3+yzTcRIVLyiyh9ZfhD0 A8KAInNxDBCLRsTRvWTKdC2a50GXdt+G9tqPiLL3MY/kw6u9+CrBlhEuOyrPqLvgx3XU zPyfi4gkDUcR+L6aGeKLyRvA2w/hKhd5332lAK8bhFmZsd0LmZe80djBdXEaQCkFdTDt T+XXAn1/QaWFpG/veHEX4qGBhHagCXHv7+KdE+q5G7iN5IhBhSoKtKvHy++figHamAPE q5KA== X-Forwarded-Encrypted: i=1; AJvYcCVxCYq3p7h+SQJoi4SIkqPETdPUl8h6tAF0TnIYO+mVI+sI9iqPEUnqCZyzcIm7B6N0xlAh2v24DDWEJgO1LWUfFJAICbxEUgkfmnO2 X-Gm-Message-State: AOJu0YwFWcoFOXYUvJ+f1Yt9mVXm0P+ccHadaLmXqMSPtdNIzuN7VqE+ tkvRuDfXTP4/EreTA9NjV3TYbPxhq5opwaRv94AGekLr+OP4Nm7UpS9IVxHNiLo= X-Received: by 2002:a05:6000:1b92:b0:33d:2d07:b567 with SMTP id r18-20020a0560001b9200b0033d2d07b567mr4711630wru.24.1711363816892; Mon, 25 Mar 2024 03:50:16 -0700 (PDT) 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 ay9-20020a5d6f09000000b0033b87c2725csm9338898wrb.104.2024.03.25.03.50.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 03:50:15 -0700 (PDT) Date: Mon, 25 Mar 2024 10:50:13 +0000 From: Daniel Thompson To: "Ricardo B. Marliere" Cc: Lee Jones , Jingoo Han , Helge Deller , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman Subject: Re: [PATCH 1/2] video: backlight: make backlight_class constant Message-ID: <20240325105013.GA182091@aspen.lan> References: <20240305-class_cleanup-backlight-v1-0-c0e15cc25be1@marliere.net> <20240305-class_cleanup-backlight-v1-1-c0e15cc25be1@marliere.net> 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-Disposition: inline In-Reply-To: <20240305-class_cleanup-backlight-v1-1-c0e15cc25be1@marliere.net> On Tue, Mar 05, 2024 at 09:21:17AM -0300, Ricardo B. Marliere wrote: > Since commit 43a7206b0963 ("driver core: class: make class_register() take > a const *"), the driver core allows for struct class to be in read-only > memory, so move the backlight_class structure to be declared at build time > placing it into read-only memory, instead of having to be dynamically > allocated at boot time. > > Cc: Greg Kroah-Hartman > Suggested-by: Greg Kroah-Hartman > Signed-off-by: Ricardo B. Marliere Reviewed-by: Daniel Thompson Daniel.