Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp228683lqd; Tue, 23 Apr 2024 23:37:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWEwqSjSwdoz7+2yqf0vWm1VJ+9syDDUCh/gqzQZClTteed0u8YorOQ3fKkDl7Nim2LSH/HYKfitKKWXL2ncuNB95T74yh62fHvT6HtAA== X-Google-Smtp-Source: AGHT+IFgX4gMYaZNEq3YATXTqRzciyxOULPU/PHFIk2LHJXyaje5or7EIem0Mg/Opn8g8OmgssOd X-Received: by 2002:a17:906:38c7:b0:a55:55b3:e899 with SMTP id r7-20020a17090638c700b00a5555b3e899mr941173ejd.63.1713940635163; Tue, 23 Apr 2024 23:37:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713940635; cv=pass; d=google.com; s=arc-20160816; b=0ZTN3y4a9Kojw7nSYFj8fFjTGnIzgY230bu/avQDXYTgOYlOr2UUVK5eej+giVY1Xs 2AQTctDrDMkm3TZZdILkZ6ztWEYL4H87SLdQcJylU9c/eNl5Fa4W9c+Anl0Q4bCmfPjF 6GkFeqgNz3TnhxTPW0n2/Xji4vF955XCPSzHxUyntqI3/rFZRG9gATIzR36LryAk1QY/ MKrpYIAuRQJsGSEvhvg1QPOzLs+z2uMb5SLPkZrj+K3N90cA0mEdtztOFyjcVRC8OYkJ 4dkGrCbuSRQzO03hOh7CARS2jK+Q3owi3fsCnTEqY7vYVvBt5pDKBGxtRtkrhwJFi7mg HoAA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=r/H8tglSYCi1Oadv62OSzJ6J8JybcSN2vjSqFz4/gd4=; fh=+ojXJv0/4efHC+ZKQpCuefisvk/g778RKYDrPGgHhHg=; b=t85AjixOau6r3xBqtrrhyIH/8ksrZLmtahGVXa9Ow7/ZYYnTfOgSPzlAe3pbwWFFRw sVcKiQ/4FF12qBYYjxvb4s9hWbuUeiqAV3nR3SPF4esTp+HfJ+orLwJSX0XLpcUqMCLA xZqDJOvvRqJT4O+pzmfRoa0GFelEGaYkrKxVP5bN8xdb08LVckG5u9wrLJtaOehk1t9R DjySX9yIg7XkaaE9WmxP6D/O9d23qvlr7CbnroEb+JNUlWGcQ+yggESSLcM5h/UR4QvP IAmQypwQ5uIVaybUNxd4sqdukkU1yD6YXlaSF+M95E2dMHDSLzoZKJphmr7G6SAU1V8m HWWA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IwpYGWaq; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-156373-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156373-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id sh32-20020a1709076ea000b00a5584804fdesi7730000ejc.378.2024.04.23.23.37.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 23:37:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-156373-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=@kernel.org header.s=k20201202 header.b=IwpYGWaq; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-156373-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156373-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 E03321F22341 for ; Wed, 24 Apr 2024 06:37:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 60AF71581E2; Wed, 24 Apr 2024 06:35:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="IwpYGWaq" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 76959157E6C; Wed, 24 Apr 2024 06:35:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713940525; cv=none; b=KffPSgVKYuYD0eUbOHB4VSzL0t1YSX80sC9Cu/hkC2zQNEIsYyePrItmZ9cOkL1q2hxiyqbs2xPshcaYdb1p7UVfwuKUButPkhzkQxJIpWzHXVZH36l1EAITkY1sG4HDONOz5lVxBzzG/v/nGvAe2keg74TfcQKPktt+Y8m8qc8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713940525; c=relaxed/simple; bh=QqHhVK9SzqekY23QUK0NGbTMVW5eCZeUTtEhIWfnh+0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=UyIUhskW7+uOz+cWDhY0BQ4sFy48Nqnb/HVXU85QE9037RgLarmxYWg8SPoM4/Sv8ZqmjN/mj9vkcdy5soqd7lb8wrqYu2PtywAWuhvaKwmR/hW2ESdnKseDhrliDszN0VY5/3/qXghduwvOX062u3/GeroXZ8v5PBuIP+xptXM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=IwpYGWaq; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D5C7BC4AF0B; Wed, 24 Apr 2024 06:35:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713940524; bh=QqHhVK9SzqekY23QUK0NGbTMVW5eCZeUTtEhIWfnh+0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=IwpYGWaqENG2rdgG783mxgPVv7SZfywBXin0ml73pYYZsMJ77gnOIsm5xXVpNwXaJ sDJIuNXPJT4/ynSQ/pmS+o0r6hwgSZXaRmYaYjPmNJWmMGAqC57aMumyZWAC7CYXdo 3tZnv2GtBUG9ihVR72ztg7qcLwFxd7S64ZjPojSZl/Odk2Wml1s1gF7osuNrE29JpF qtgooBIaJNWEEGLCS+YX3dLrkHlcpV+QSlBLJjOLTI3K2f6uoGbTmZ8/iNgv1UbvTI R2a1zcVnwoo9o3Yrf6Un7x1vssvilnHuc7q1eHfB7JEkVX6V+q/uutiUHx9CR6qqJf JSESdhhCOq8tw== From: Krzysztof Kozlowski Date: Wed, 24 Apr 2024 08:33:35 +0200 Subject: [PATCH v2 09/19] backlight: lms283gf05: Constify lcd_ops 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: 7bit Message-Id: <20240424-video-backlight-lcd-ops-v2-9-1aaa82b07bc6@kernel.org> References: <20240424-video-backlight-lcd-ops-v2-0-1aaa82b07bc6@kernel.org> In-Reply-To: <20240424-video-backlight-lcd-ops-v2-0-1aaa82b07bc6@kernel.org> To: Lee Jones , Daniel Thompson , Jingoo Han , Helge Deller , =?utf-8?q?Bruno_Pr=C3=A9mont?= , Jiri Kosina , Benjamin Tissoires , Alexander Shiyan , Sascha Hauer , Pengutronix Kernel Team , Shawn Guo , Fabio Estevam Cc: 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, Krzysztof Kozlowski X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=810; i=krzk@kernel.org; h=from:subject:message-id; bh=QqHhVK9SzqekY23QUK0NGbTMVW5eCZeUTtEhIWfnh+0=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmKKfl2/5VGOxtE9L3jJEz+f24++Vzpjt/lPLHA pz0vnjtU3WJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZiin5QAKCRDBN2bmhouD 13gvD/9k585xOL0n6ZBs8N0MRHIClNoe8dC8Bcgcd1qpAbkQ8P8Lh3FW0m1qfieLQa0QNyeIwSe Rvfrxz39h1TkNm1k+R5dlLSEDDHkU0vb4sFLrQdgQ3r1dB4sOEDo4VXV1ht/IfpH6MCJNVJT6NF wUyo2o4nz0pmmYLhdxmTiqBaKLElxxeLIARh8RHaBSy36YWvESTPHNBYaGzjCfoBs5GA4NBATyi 1My39dx8syZ2zTVViT3SG90JBOoviYkWAuXa/5yQs8d2JTqQHYixeEtKIBDpczwxlEN6tVAgXJ+ ZF+PIX9cxO2zKm+Tbmd80s1l++zhRYmeAF2O6FT5gWp3h6aOP5kxa8r8FZCzfOuljRrBkDRdq9u kiA5cbSFBnjrWWbZqlstWGQEn7KO/p8uNm5n7rHHFyr4SuCo4nJmH/K9qqtW8wNS6oMKboPlITa aNALiq8KaTlvKJiA4NBJ/m0BYPNYP/y21a53Yn+d8A5fy7IBKHX+AcHN68K3G5Sn+LSwfYeHEp5 +MSWpsUNuCbwvHssC/IsZOL90et6xH0u/07iYn3AYtERhllLFP5raywcO4fFHl6IAKy9qZqBCCW wIE/3gILn+FdQyyhGpirhigLu+PdapHVD8RMuLxfEykpaYU6EfqyOMEMyasldZTBbC/iiU8zui8 /qqpxBvin0yKgmA== X-Developer-Key: i=krzk@kernel.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B 'struct lcd_ops' is not modified by core backlight code, so it can be made const for increased code safety. Reviewed-by: Daniel Thompson Signed-off-by: Krzysztof Kozlowski --- drivers/video/backlight/lms283gf05.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/backlight/lms283gf05.c b/drivers/video/backlight/lms283gf05.c index 36856962ed83..a65490e83d3d 100644 --- a/drivers/video/backlight/lms283gf05.c +++ b/drivers/video/backlight/lms283gf05.c @@ -139,7 +139,7 @@ static int lms283gf05_power_set(struct lcd_device *ld, int power) return 0; } -static struct lcd_ops lms_ops = { +static const struct lcd_ops lms_ops = { .set_power = lms283gf05_power_set, .get_power = NULL, }; -- 2.43.0