Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1044846rwd; Tue, 13 Jun 2023 04:13:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6p2SFGYfVz8QFcNJKyTb/gapOWG592MVboxXmQggyDcr/1TT4WM6/UuOhrTlQpj8f+ug11 X-Received: by 2002:a05:6402:292:b0:514:930c:7951 with SMTP id l18-20020a056402029200b00514930c7951mr7615300edv.7.1686654796536; Tue, 13 Jun 2023 04:13:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686654796; cv=none; d=google.com; s=arc-20160816; b=lprNJcAMdJsihdZMZ+Fu3eTyb3gcTj23uD2J/FHTnPyZDwJFhQQlUkLrmw2qBxe+HE fWA8H4MVzX2CKWySDOLtIrqYB0YORPzMg0aJxNzz/PjnXKvqOLwGf4UCf2OZJCvCXVMC +ah4N2RsZTmXYHtv3YnAU5FgIDfb4OXsRbO9SHRcN+X7kMo75bw1xSnJ1VoCn7zmzbf7 ltRE5hECBDTPXlMe2nZNFwSZyD6QigDLFOXpEN8ofKxPlQjxNWYJfiutwBJdvE+xkMUW T6jNk8pC5Nakir9BwSw952AfAkrJ/y9zb4q82jtQlknmEvWkXgh/bwwo+3zFmdqyWTN5 vl5A== 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=UQPlVCoNyk1qRkb86F1S6ejVO3uXleDCgylKPJkMzac=; b=r6cR+NOsZTm79j8V3X2QFlYCphVTOm1mOY9w7+XEhXAgtv4sBMJKs8DEUqVgLId4h/ UO2CUvl1stpdzE/8kUiY6RB1+GR2bjh2WkwXNTWoAB2/XwsH288vnNvcDEk90U4vPTXq hs+GimviSvfORw9gJf7AikoeKTicJBoxoQ9FgVDUVWo6VDL9vxyURgkqP7wWd7ihBBHR 0RLAS8tm8kikCI8vccNsPgJejFu5mccc4gUek7WK1UJw+UpIwo8FoCachq2kxTdueFbe zyOwutaFEMgGEGQjDTOeSeGGXtQhmWFo2KImPoTCQJXMsu4psA1uWOox199GhEmYcOcR 7H3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=X5QHCpIa; 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 q14-20020a056402040e00b0050bc5b95923si6927143edv.497.2023.06.13.04.12.50; Tue, 13 Jun 2023 04:13:16 -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=X5QHCpIa; 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 S242107AbjFMLLY (ORCPT + 99 others); Tue, 13 Jun 2023 07:11:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242113AbjFMLKF (ORCPT ); Tue, 13 Jun 2023 07:10:05 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8B0492; Tue, 13 Jun 2023 04:10:04 -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 6F6122241B; Tue, 13 Jun 2023 11:10:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1686654603; 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=UQPlVCoNyk1qRkb86F1S6ejVO3uXleDCgylKPJkMzac=; b=X5QHCpIaFF1QFS2ynpI4urzXZi3mfmeazepnZG6M+AjlhWAvDz3l4rDJH4Drzb3EhoTIRa kzvCCZ1jfpEXfJ+kKTg7At8KhVOm/MkEUpu9/D6nCV1NtXQrEMNQsqQE6M7EdwFNiIOd7D iM7ADtpwUyAhlw9Vvo7JRfbLUM/BALM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1686654603; 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=UQPlVCoNyk1qRkb86F1S6ejVO3uXleDCgylKPJkMzac=; b=wwui3gQ+OWdcbUAjmCV0ljruVymKTdi4G9xRBJGjHads+HhDxZGAQSKlSnvp0sbQ/qW1bJ 4N/tVFqLpClyucAA== 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 22E2413483; Tue, 13 Jun 2023 11:10:03 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id kI5hB4tOiGR8CQAAMHmgww (envelope-from ); Tue, 13 Jun 2023 11:10:03 +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 , Benjamin Herrenschmidt Subject: [PATCH v3 22/38] fbdev/radeonfb: Use hardware device as backlight parent Date: Tue, 13 Jun 2023 13:06:57 +0200 Message-ID: <20230613110953.24176-23-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. v2: * add Cc: tag (Dan) Signed-off-by: Thomas Zimmermann Cc: Benjamin Herrenschmidt Reviewed-by: Javier Martinez Canillas Reviewed-by: Sam Ravnborg --- drivers/video/fbdev/aty/radeon_backlight.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/aty/radeon_backlight.c b/drivers/video/fbdev/aty/radeon_backlight.c index 427adc838f77e..23a38c3f3977e 100644 --- a/drivers/video/fbdev/aty/radeon_backlight.c +++ b/drivers/video/fbdev/aty/radeon_backlight.c @@ -147,7 +147,7 @@ void radeonfb_bl_init(struct radeonfb_info *rinfo) memset(&props, 0, sizeof(struct backlight_properties)); props.type = BACKLIGHT_RAW; props.max_brightness = FB_BACKLIGHT_LEVELS - 1; - bd = backlight_device_register(name, rinfo->info->dev, pdata, + bd = backlight_device_register(name, rinfo->info->device, pdata, &radeon_bl_data, &props); if (IS_ERR(bd)) { rinfo->info->bl_dev = NULL; -- 2.41.0