Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1054635rwd; Tue, 13 Jun 2023 04:21:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6QB5yZpAogOHniYPxa+s+hFKm+GWBaPh4tn4YOkN/2x2RsCsIbUIAZEmSoi6RMWAzgIEe+ X-Received: by 2002:a17:902:a601:b0:1b3:e6ba:1573 with SMTP id u1-20020a170902a60100b001b3e6ba1573mr1442815plq.6.1686655292178; Tue, 13 Jun 2023 04:21:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686655292; cv=none; d=google.com; s=arc-20160816; b=Uw3xT8zctsEo0OrPlDOWMJ9IKkvo26aEXQI05f/d0VdVMtxM8QrG11KrrUcVARD2t5 mPoOt85DaYlgmZNVmqwEknaOtQjp4ztOFXKNtCtaPuSjA3/F9+phqSv8Eu95m+4pUpJu JGR456xh5ZkgxZCyb5ykSe5g1enbXep+UziSz7SSiuZieBCklhxzES9XMDKk5OB8DV6u 4QcpRvyRrnM7l19KKUJHVebxtnw5As4rVXTr6stWUpml0N7HqsBUolIBpZ7LlVwfQOzc GN8l+cH8G9H8gjTBIw6M46lGCqlHBl+OCEXHhH/c5auBeAPKD/ziwcmf3DKxTAp56jl5 cxEg== 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=N6UYzax8sy0i7WEMeFaDgyi8TXvZrP+1xJ7ZvWeiGdc=; b=VjtRb0yqBWMN7/b299cMadvouJwg/cM6wmqm/OPi1OAwW89iWROOumid1q+QfqB4mg izRGkahxG+ZLTssUbQXexLtDiFAx8DmpOCWMMOw+IpRjsPLBxWh1qJrXZlW33Hr4shVh w+80eVoDPpRJVqZPwpXdghsOZrNSF+1efjRpgkvY40O51R2YliMZ1V5cr2JHfz4FFtSl DGJksRZTJMSOCEFMGJQflfIWl0mYZsNoQ7MMoqVQrHJLS1acOWdbjOKNIXbD1033ysLv a1e4CGUTW9D3OQIy5B9ejOTFp8vhSgn3TnALdWGktkSG7i/Tm6y5PXg8i5Es4sqcjGG7 pnVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=qtz2dSwP; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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 o14-20020a170902d4ce00b0019c93e0dce0si5194179plg.254.2023.06.13.04.21.19; Tue, 13 Jun 2023 04:21:32 -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=qtz2dSwP; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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 S239520AbjFMLKR (ORCPT + 99 others); Tue, 13 Jun 2023 07:10:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240194AbjFMLKB (ORCPT ); Tue, 13 Jun 2023 07:10:01 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F64610DA; Tue, 13 Jun 2023 04:10:00 -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 244E522400; Tue, 13 Jun 2023 11:09:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1686654599; 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=N6UYzax8sy0i7WEMeFaDgyi8TXvZrP+1xJ7ZvWeiGdc=; b=qtz2dSwP5WJ5nsuM05H6W2WTXW0XAhOxB/6rivaTIV+vVU1nJib4WaikFGa+pQtHdDL4Uy rBvizmtOk++j73+ABdjldHh/clPoWseETINWt+jcQNHvSIPk2IT9ZnkD9d/sr4zQK/WETi HL4vNlGuSSJat5CGGi08A5aIBlyxYfQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1686654599; 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=N6UYzax8sy0i7WEMeFaDgyi8TXvZrP+1xJ7ZvWeiGdc=; b=iIQ4na6vF/ATUubYmNBaHn0nwKW8Y1Kw+l50sGNwnwBduKI74p4HPe3KqYeuUV6gG34bKT gdmIjWuJU0FGDUDg== 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 D633E13483; Tue, 13 Jun 2023 11:09:58 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id sBB1M4ZOiGR8CQAAMHmgww (envelope-from ); Tue, 13 Jun 2023 11:09:58 +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 Subject: [PATCH v3 08/38] fbdev/atyfb: Use hardware device as backlight parent Date: Tue, 13 Jun 2023 13:06:43 +0200 Message-ID: <20230613110953.24176-9-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 Reviewed-by: Javier Martinez Canillas Reviewed-by: Sam Ravnborg --- drivers/video/fbdev/aty/atyfb_base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/aty/atyfb_base.c b/drivers/video/fbdev/aty/atyfb_base.c index 51504fe39054c..e1602e3fbc66b 100644 --- a/drivers/video/fbdev/aty/atyfb_base.c +++ b/drivers/video/fbdev/aty/atyfb_base.c @@ -2255,7 +2255,7 @@ static void aty_bl_init(struct atyfb_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, &aty_bl_data, + bd = backlight_device_register(name, info->device, par, &aty_bl_data, &props); if (IS_ERR(bd)) { info->bl_dev = NULL; -- 2.41.0