Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1912765lqp; Tue, 16 Apr 2024 01:14:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXm2wxEryvaK0YjA76IVF/NbLHxxfIYX1Kj3RWwa8VZ7wvXbv4kQ/m26CJzbm2ahakpDu9H/ENEGZj/OCHlYBAMmjnbAUZHSWM7xjGyYg== X-Google-Smtp-Source: AGHT+IGEoo/spARR5fKdcKPYbpefnf4CYZYdiauWkmdX9S94Ta4Mz9GvxrPmyf3ixPzEOpGVGYjL X-Received: by 2002:a50:a417:0:b0:56e:3034:1d4a with SMTP id u23-20020a50a417000000b0056e30341d4amr8706400edb.9.1713255268535; Tue, 16 Apr 2024 01:14:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713255268; cv=pass; d=google.com; s=arc-20160816; b=ajxEj2vsH2XtoYHI9VAUuIGV6VNhSHOaWO1OZG4VIWH+eF9dyBud/DE1Va1lW49RxK vVJXgmhzFZVsBLD6GokpWVWnjRne4aBM23lStEt3dfww4UB0A0nKU2m3Nfzzz5xqz3mu fnTvJL57tvuyRMGwJU0SXLtSmis6We/v3D8hFn4OVElczlsHgwqEgsD5dMmMdMnT3QLA 3N1A0vYALKL/QUeFAcIWcPGp0eOHdnWLwdRZhvy55aKAehPhgbTLG8c+qgg6y+yYNejp Js9nU8nA0TuAL2VI2gdd1VSWJQgVqBYCnkLOFtkStoiY8dcMf1WFDEWpMdiuqKeWtQ+H odyQ== 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 :subject:cc:to:from:date:dkim-signature; bh=+8bP7NgL1Ju2XuVExtzdvTTK9SHKu6xSVXZ/pQ3qi4c=; fh=zn8SFWzD2U+aZwhrb/uJqRHdrIW9OAKNPo4JS5WYBI0=; b=FQqbkzgBNkHyYEoG6Q3j2MwBD3C34gpkLoGbqS3ZB28o9f6T/tp81K+mmvuIzg6TeC 44GurI85rkpdvCrQXPiw741UV2Ohcc13jqU0qotxtrC1uQ0K0+n48EjwBGFwx08oN9Vq KOYuFSIDlxpiG2EK3MVj7wUCIjFeihMg4LzYFIk5BmSIHto/alJSu1QLr4hhWHkowpN9 RcD5D3FLgad6PnbO2Y0RMqBMJHVb5YugAbEKEUlCYxqL+WU0G/bRUOuaJm5QNF2hRKdt 4cO+uFzsCPXHXVw+izNgXpJGq/s+68adm95d2MyUJLixpa6W2Z0yEgq30e+oOLmAnwGM upjw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sysophe.eu header.s=201205 header.b=hBtx2u4w; arc=pass (i=1 spf=pass spfdomain=sysophe.eu dkim=pass dkdomain=sysophe.eu dmarc=pass fromdomain=sysophe.eu); spf=pass (google.com: domain of linux-kernel+bounces-146481-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146481-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sysophe.eu Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ew7-20020a056402538700b0056e22df432dsi5623127edb.438.2024.04.16.01.14.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 01:14:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146481-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@sysophe.eu header.s=201205 header.b=hBtx2u4w; arc=pass (i=1 spf=pass spfdomain=sysophe.eu dkim=pass dkdomain=sysophe.eu dmarc=pass fromdomain=sysophe.eu); spf=pass (google.com: domain of linux-kernel+bounces-146481-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146481-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sysophe.eu 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 45E901F242E1 for ; Tue, 16 Apr 2024 08:14:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C6556127B72; Tue, 16 Apr 2024 08:14:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=sysophe.eu header.i=@sysophe.eu header.b="hBtx2u4w" Received: from hygieia.sysophe.eu (hygieia.sysophe.eu [138.201.91.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EB8B38665B; Tue, 16 Apr 2024 08:14:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=138.201.91.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713255258; cv=none; b=pcdPn6ViuFTF7/7alhSABt+uS+cueV8iZbakLnga+2V6cMBfyQM+dZQzqxWTHekyMegwGlXyPfRu1xkuYtOCysfj+GKFq5GimKCmDo4/1dQH5Am+TSmPfUFIT+zmAP186JLHK+ZfxBLEgaRroFrw2xbrvK8mfiJvAnxA49gZlvQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713255258; c=relaxed/simple; bh=edjAuXfq7+W3fzyyUCf6+gD+x+TW33YMUHyBSQMWzgw=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=X1JKKB74UPinFFgFrf7uQXpgB6ikXo3ouK1zVhsGPr2cEtEAAxC+QSWa/8uEQOcFEAIW5ReMjY7J2x660r1FeR/YlE2rI/pXYzlD5iu8k8JF5wVE4cdhqLExrPT/GNhsNIJrB/XeTUo3UwkCG1QqMIBA7LVki8JD02+qM6sML5Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sysophe.eu; spf=pass smtp.mailfrom=sysophe.eu; dkim=pass (1024-bit key) header.d=sysophe.eu header.i=@sysophe.eu header.b=hBtx2u4w; arc=none smtp.client-ip=138.201.91.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sysophe.eu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sysophe.eu Received: from pluto.restena.lu (pluto.restena.lu [IPv6:2001:a18:1:10::156]) by smtp.sysophe.eu (Postfix) with ESMTPSA id BF87F423AFD8; Tue, 16 Apr 2024 10:07:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=sysophe.eu; s=201205; t=1713254839; x=1713341239; bh=edjAuXfq7+W3fzyyUCf6+gD+x+TW33YMUHyBSQMWzgw=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=hBtx2u4wwMPCrGRHsDjOek7TOVxJ+EO4t94+pjKgGj5Jq3lsOyt98ZscjEi/+iIQG ZIWcqqOnannDIoE8x6gsRU0m+AHxYHXD9OpBUFSbpK2k6tYnno4Z2GUQHaIQngB/9A gEWwQdxAk7698/Ja6pJx/z5yS68Geat/5Jt4W2J0= Date: Tue, 16 Apr 2024 10:07:16 +0200 From: Bruno =?UTF-8?B?UHLDqW1vbnQ=?= To: Krzysztof Kozlowski Cc: Lee Jones , Daniel Thompson , Jingoo Han , Helge Deller , Jiri Kosina , Benjamin Tissoires , Alexander Shiyan , Sascha Hauer , Pengutronix Kernel Team , Shawn Guo , Fabio Estevam , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev, linux-omap@vger.kernel.org Subject: Re: [PATCH 15/18] HID: picoLCD: Constify lcd_ops Message-ID: <20240416100716.7360ec35@pluto.restena.lu> In-Reply-To: <20240414-video-backlight-lcd-ops-v1-15-9b37fcbf546a@kernel.org> References: <20240414-video-backlight-lcd-ops-v1-0-9b37fcbf546a@kernel.org> <20240414-video-backlight-lcd-ops-v1-15-9b37fcbf546a@kernel.org> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.39; x86_64-pc-linux-gnu) 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=UTF-8 Content-Transfer-Encoding: quoted-printable On Sun, 14 Apr 2024 18:36:13 +0200 Krzysztof Kozlowski wrote: > 'struct lcd_ops' is not modified by core backlight code, so it can be > made const for increased code safety. >=20 > Signed-off-by: Krzysztof Kozlowski Reviewed-by: Bruno Pr=C3=A9mont > --- >=20 > Depends on the first patch in the series. > --- > drivers/hid/hid-picolcd_lcd.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/hid/hid-picolcd_lcd.c b/drivers/hid/hid-picolcd_lcd.c > index 0c4b76de8ae5..061a33ba7b1d 100644 > --- a/drivers/hid/hid-picolcd_lcd.c > +++ b/drivers/hid/hid-picolcd_lcd.c > @@ -46,7 +46,7 @@ static int picolcd_check_lcd_fb(struct lcd_device *ldev= , struct fb_info *fb) > return fb && fb =3D=3D picolcd_fbinfo((struct picolcd_data *)lcd_get_da= ta(ldev)); > } > =20 > -static struct lcd_ops picolcd_lcdops =3D { > +static const struct lcd_ops picolcd_lcdops =3D { > .get_contrast =3D picolcd_get_contrast, > .set_contrast =3D picolcd_set_contrast, > .check_fb =3D picolcd_check_lcd_fb, >=20