Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2914159lqp; Mon, 25 Mar 2024 12:55:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU3WhDaYDS9bmqWHx2107bc0PU8jFSPI2GgcFdNzXJkAneybO8lAzBtg1i5k1ynQK4V6NQHFnsK3Hm9yNbts/KGLhNp3qn/0ris+rG/lw== X-Google-Smtp-Source: AGHT+IH0g+wRQlrPtRcPLqOyZrK/oqwHUxeGcxB4LkYYR5rrqmtzBhzCco8qCKs/hc4YFzb+CkQ2 X-Received: by 2002:a05:6a20:9186:b0:1a3:bdd1:67d5 with SMTP id v6-20020a056a20918600b001a3bdd167d5mr7734383pzd.39.1711396537054; Mon, 25 Mar 2024 12:55:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711396537; cv=pass; d=google.com; s=arc-20160816; b=TwQ2x0i6cLArMVWChKkxSR4hr2BdlqajpQGZL8uolHacvGxH/19BOyMTcbarcgQ1fY Frc726yg0Uge/zDoqdSyvk/DjIO8zDzGECwPPYre4Q+Zh0D7x+/5WiHUw5GknnkItAHP LzdiRudZldAOdISVmz3W3D2d5NqFOaJWJjxraSCPEhHdCDa2X1H+0m4tPzmmsROtLbA3 vS7rRliqP6/HvCCP4BG0UEkrtYRX4ndMnTEAoTodO6G9e7uEyw74c/x2QpRx4v7EXpXu uI4DGbxMLkB+06Was+buYZca/pZ691+hdvtCAvfEXv1qy3tHdiPYR4+6Z/vaxw0WDKgL jL1g== 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=82qCE9td6OtrJPbZ4uolnTjGQdgWhZ9rL5H7Hy2dBBI=; fh=jiJDw0fyxgRFaLGJFSYZQ9sBIxQZE9umDyQkfUvPKBc=; b=pbWOa/TR7PUrq7NLHxOqVnFAycn/V0PcP4+bL17O2fp2R1AVKRqIxSHgXcvVW1CC47 OvPUq53xPISThy7Z5cl74qM7DTFM4yStV+nOTcwh0GYLXCdpY9gGyGu+SLNdBVs7FD8U gfuHMKJSRQ9WbeYQmsFwcT9d2duV+8AamGsx2z2SphUiWY49Kjf7CFe+YnCJ6WrPrQ7z 1hon7KzJwgDuVUUsPIbifJgHiXHY2SjVQwM4mz7xtyokvLwOCHnPW/8OEke1Us9+/6GK ASL33S6S1fOkmpR77KGVLhP+1dKuTrq36rQbNtTrRjlRSVvFWei7XOSqCE2SHoY0+ZzF Fy/g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NGlJ9SJl; 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-116893-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116893-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 b16-20020a170902d51000b001e0b8743f67si3242773plg.265.2024.03.25.12.55.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 12:55:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-116893-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=NGlJ9SJl; 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-116893-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116893-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 5FC96B441AF for ; Mon, 25 Mar 2024 14:43:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4DD2D179214; Mon, 25 Mar 2024 11:41:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="NGlJ9SJl" Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (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 CEC59190697 for ; Mon, 25 Mar 2024 10:51:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711363870; cv=none; b=h8dTyACgReAqptgJMhuJpDOyPKbX+s+fEINZA+hPxYYyEHn73aEfObN3xam9E7hdySoZxuxXBGqI3xf66YaylZs9O0FfmHPRvk01SIfXhj/O6DhKwJ2D15znUvY8ewfgmssblt/ivWpAdFYGTerKNa6uTm/vxxrZEaIb5nEI38Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711363870; c=relaxed/simple; bh=82qCE9td6OtrJPbZ4uolnTjGQdgWhZ9rL5H7Hy2dBBI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OG5OKQq+BZJNmbligArNOqk5n8yqsVjjabGaxIUPfxTXCauJDXPhLZ/t8nQrC+evjIDGiOLZvc4zrOILSHPF1NOSxzqI7oASB93hjY+spO+KJY+7euxVuQDKYn3vjkh3IxWcI3kwxmDHhVXgY/XmhLMuDk+8OYGHVmA/z6DXd/4= 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=NGlJ9SJl; arc=none smtp.client-ip=209.85.221.52 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-f52.google.com with SMTP id ffacd0b85a97d-3417a3151c5so2739530f8f.1 for ; Mon, 25 Mar 2024 03:51:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711363866; x=1711968666; 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=82qCE9td6OtrJPbZ4uolnTjGQdgWhZ9rL5H7Hy2dBBI=; b=NGlJ9SJlXLqQYeAQ+3oelSnnqY+CCgdyW95CHPTD4sUMM2x0AIPjmeayibkxycHJ2K vhhIM8G4dreq/JoDAGScXsgVkXUSFTzp1OUPrraRtmK6UFSsXeL1Z0A+HDHoF0+rm5jf UDvKFIZ7TDkcK5oH22Vcjst7Rf3mvwyYUUci468efuczytgzYmYOmejlD+RU0XkjeUsn XiXLFdnD4ltw0uJDuj0zcXcbIY2gmeWn5TwGBNF5X65ZOBpW/Bz7VGQxAmADqlZJocI4 C/2uaIhldHWxruEG/t0VbJrkuR/ZiZ28QU2jt7+V2wC5uHB1O5hc0KJ6REFglxkVNTyk W01w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711363866; x=1711968666; 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=82qCE9td6OtrJPbZ4uolnTjGQdgWhZ9rL5H7Hy2dBBI=; b=iUMIdmVncX/3MILeHA3jvSVArk4ucSGinJ8sYrd4HXXFCHW2EUUpJSf2zWshSoJpwR IGSb8fUg4/wD2pR8GKHNILzPWturTxI4EYRcpFkXeXezzqfnHGg9tcEEptVis6vcX9in EOg61LUeTVx0ZbNJhJKcUhkT8lhEiRIw7MkjQOAi+gO0zL6FkEMSijGuh76AEC9lPXAe nYZz9YKZJFU7ZS+oKUeodseDugzWbEXocL3kIdPQZIFX2m2KMQmKk4M3LGCGDDwb5OYm SAPzqVBFJ8XKyqcR+o12Uxp1IsPNC/d5nDhNFedV8/AQ0I802zpizrYe/7swdLvuWP5a L5tQ== X-Forwarded-Encrypted: i=1; AJvYcCVh1GvqLkpOjSrGaXVpnxJfbVrhDklJkjX5hc+nWsGrJ0T5jckmOL0fbYUiptdk8Zn5t/A5+K1OkE/JvVbRlgY9k6Xu+k1jY5vKOJZQ X-Gm-Message-State: AOJu0Yz9tv+hFUG80VkRf8CyR2W92TaNxmd0qmwWGBRDi+Wd77pIyWqK QogwPlBpsv8YpL8Z/Y/HU0yKTSvaAHmB7CbwL84l2r07AudT344F2Z1gwqOB5A0= X-Received: by 2002:adf:efce:0:b0:33e:6ac9:f5b0 with SMTP id i14-20020adfefce000000b0033e6ac9f5b0mr4620135wrp.20.1711363866209; Mon, 25 Mar 2024 03:51:06 -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 cr1-20020a05600004e100b0033b48190e5esm9202151wrb.67.2024.03.25.03.51.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 03:51:05 -0700 (PDT) Date: Mon, 25 Mar 2024 10:51:04 +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 2/2] video: backlight: lcd: make lcd_class constant Message-ID: <20240325105104.GA182188@aspen.lan> References: <20240305-class_cleanup-backlight-v1-0-c0e15cc25be1@marliere.net> <20240305-class_cleanup-backlight-v1-2-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-2-c0e15cc25be1@marliere.net> On Tue, Mar 05, 2024 at 09:21:18AM -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 lcd_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.