Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1055569rwd; Tue, 13 Jun 2023 04:22:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6B+Cv8ydfiwpm1RUNgjfVEYF8ZREL2Gx3gVpZ+6tbrgDOixvo5S0+SfwwA+/dFi1NusS3P X-Received: by 2002:a17:902:bf03:b0:1b1:ac87:b47b with SMTP id bi3-20020a170902bf0300b001b1ac87b47bmr6571900plb.55.1686655345062; Tue, 13 Jun 2023 04:22:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686655345; cv=none; d=google.com; s=arc-20160816; b=vLkRQeSq0LS4Vk3qhPPl0G+Z3AJigzDq/ejfkkHxNjhAW8Cy1kE1d1mQ4yXdsV7D5o 8byTcef9KUS6u7NKaX31hBQXaj3FVMWEj5r3HoKOvgtI2bxWKijK3vS5hLzDrrZ2XWTq u/T+SPuLBrbMeJZSpY5P/Te26eMYNQDtYAz3U66nH56fzZLEgTTHBQlhDPgUdITmlebR LewdkACqdeBJmWfY9yBN7EUg1OmW13YbZScqn/2sdy6WmI1PLNpNkanm+DleK5cYDfYK usKvsCHV3hgcKdMglaIiktUYbnMBhOeOQmVuN3+YIMP0Gidq0yxNMVCJihMTtDRfjtWb REsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=cRJCI1DQyCCftvFjU3f789NQ4HahDIyRoVbm/3ldQBA=; b=X3Err5D3CfQ/4HSQLmPNIKiAENXiuR21DkrSEGhKmekcxNxboqzqHb5MGgv2Pvf4Kn sKjCVcV5HwJofdUmrrSlko60PgeYR5psKDW41xUJoiGy5ibifJ0o8nfBkg9AyV2AbWjz 6DUjjeBrFNNqTzhbLQhsaj8rwUcg5ApdkcSmq7rtXMsr/o5eTb38N3Qj3WV6vZZz4f1C hG6KMs3N8ROw1l3PHVtzCF4oxGXa6KPUolDD0x0RGDAn8zhUMOH/khQMWzNH2yZiF2ME nxZUhON0WOrkJinkferqmZ8ZK2st28NqVB6aSr0LXUeoRoXNpLpv6W+/W3pl+1tz1cEw K8ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=TNbrvrjT; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e18-20020a170902e0d200b001b3de0e9435si2065495pla.97.2023.06.13.04.22.12; Tue, 13 Jun 2023 04:22:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=TNbrvrjT; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241718AbjFMLLm (ORCPT + 99 others); Tue, 13 Jun 2023 07:11:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242109AbjFMLKE (ORCPT ); Tue, 13 Jun 2023 07:10:04 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD5FAE52; Tue, 13 Jun 2023 04:10:03 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 72D5722422; Tue, 13 Jun 2023 11:10:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1686654602; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cRJCI1DQyCCftvFjU3f789NQ4HahDIyRoVbm/3ldQBA=; b=TNbrvrjTZ/MF6TDgcloaNlx9L7iyKuiH+xSnSkMWgt4Yf8HIWd4XKJxSqC/rmdVLAMogUg NoR83gzOeP/cJhElTeecPOBWP8bLNuKUeFQKgI/MhDB4gxUyBagAnXv3au6NSFmwTr0Bx2 6AfaUvpNF3s+9Sl7XQlwbpUFBapaJW0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1686654602; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cRJCI1DQyCCftvFjU3f789NQ4HahDIyRoVbm/3ldQBA=; b=jz0m4YdfgQIYkF8jd3kA0FNs+89zJX2jgMK6U+4ASaeVPdbktSEB9iDt+XFjjkkUc9gq86 jW8IfeJ4jc2u/qAA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 23EE913A47; Tue, 13 Jun 2023 11:10:02 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id wBzGB4pOiGR8CQAAMHmgww (envelope-from ); Tue, 13 Jun 2023 11:10:02 +0000 From: Thomas Zimmermann To: daniel@ffwll.ch, javierm@redhat.com, sam@ravnborg.org, deller@gmx.de, geert+renesas@glider.be, lee@kernel.org, daniel.thompson@linaro.org, jingoohan1@gmail.com, dan.carpenter@linaro.org, michael.j.ruhl@intel.com Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-sh@vger.kernel.org, linux-omap@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Thomas Zimmermann , Antonino Daplas Subject: [PATCH v3 19/38] fbdev/nvidiafb: Use hardware device as backlight parent Date: Tue, 13 Jun 2023 13:06:54 +0200 Message-ID: <20230613110953.24176-20-tzimmermann@suse.de> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230613110953.24176-1-tzimmermann@suse.de> References: <20230613110953.24176-1-tzimmermann@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use the hardware device in struct fb_info.device as parent of the backlight device. Aligns the driver with the rest of the codebase and prepares fbdev for making struct fb_info.dev optional. Signed-off-by: Thomas Zimmermann Cc: Antonino Daplas Reviewed-by: Javier Martinez Canillas Reviewed-by: Sam Ravnborg --- drivers/video/fbdev/nvidia/nv_backlight.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/nvidia/nv_backlight.c b/drivers/video/fbdev/nvidia/nv_backlight.c index 503a7a683855a..160da9c50a52c 100644 --- a/drivers/video/fbdev/nvidia/nv_backlight.c +++ b/drivers/video/fbdev/nvidia/nv_backlight.c @@ -98,7 +98,7 @@ void nvidia_bl_init(struct nvidia_par *par) memset(&props, 0, sizeof(struct backlight_properties)); props.type = BACKLIGHT_RAW; props.max_brightness = FB_BACKLIGHT_LEVELS - 1; - bd = backlight_device_register(name, info->dev, par, &nvidia_bl_ops, + bd = backlight_device_register(name, info->device, par, &nvidia_bl_ops, &props); if (IS_ERR(bd)) { info->bl_dev = NULL; -- 2.41.0