Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5599172rwd; Mon, 12 Jun 2023 07:16:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5/BljgsywMGpAu5orIYPYJz8QgRftRjAWGO1NNui0dzDtDLbrAVSB6wYxsbEKn1Yf813GS X-Received: by 2002:a17:907:e86:b0:973:92cc:fc78 with SMTP id ho6-20020a1709070e8600b0097392ccfc78mr11129388ejc.49.1686579402211; Mon, 12 Jun 2023 07:16:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686579402; cv=none; d=google.com; s=arc-20160816; b=CUKmpTDGJX8LIKz+CgzG+cONwuvWxE93vq2tW5NH5iJPG/aIENzReGChPI4B+EwKa0 kf83//QcmC9141RcQOqvfOhMHk+LZGgTViem40G5mqh1ke+33NWGwTCy+X8Uj94FwCP/ Zi7PrYyJ6mtIOsWKi2KfUsBlXlaaXWhJ8fEncpERJ6CC+7K5Pp1gN+8VCcT5OzIQqpP4 qN+RTNiWk6d/MSFvDFkaUr7XRcOqqiPJS1QE6FXLXPSEg3U+tmWD7p8+OPgGOjVxmQrL zsW5jUjrEHqdn2sQchP2ia2H/rygejhz31ZiYhe1w6ZDuLMBt4I49VjHgCGxZyThn5Z6 W3gg== 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=V05YqbcHFkVh40/g+io2C7/2OJyvLIuQRZ3y/TKygo8=; b=YyorLBiNCW+WkJDgjDu3sbhCfxppXLAE19ZH+FPAjWIgFFmJ385ul1ms2rbDyYV0g6 dVBjYhU/MzZT5o4cXKQSOPJJ0KNv8R9qXs5ZEFOPYLkrutfGqBkmUd3A5nzdTpKTAG32 0kWQ2TG2N62O15QNljT89p2EQrvIPxkYgdfrgj4sNXZOZCSpbPYH7aQhlzZm+X604Xn4 SXr7b6o1U+8bCVYmoc9J06zU79ILDWDZCDqMGEyZlz9MNpZ0Y3/fjVKkHovfF86os1nT 4MXZDEQRjYh6x9FQDYe9VoLlgfxEqrcrlb9yVHxeY/dzTpOevdIqHPe/ZeIduizBV2Lp IhlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=T2euGdcQ; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b="vNbQs/Lj"; 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 r26-20020a170906365a00b009768fdc7fc1si5265139ejb.446.2023.06.12.07.16.14; Mon, 12 Jun 2023 07:16:42 -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=T2euGdcQ; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b="vNbQs/Lj"; 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 S237564AbjFLOOZ (ORCPT + 99 others); Mon, 12 Jun 2023 10:14:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237278AbjFLOOA (ORCPT ); Mon, 12 Jun 2023 10:14:00 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFD9219C; Mon, 12 Jun 2023 07:13:58 -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 7D9902283A; Mon, 12 Jun 2023 14:13:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1686579237; 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=V05YqbcHFkVh40/g+io2C7/2OJyvLIuQRZ3y/TKygo8=; b=T2euGdcQaW2rmPvlyCi7lJ1mkZrEd72+/fhhzMqgppXGBGopdDkJK5SKyCyb5T/C+loCv+ 6OFAZDBPYb9PXIQchvOTpxeU9n8u/plj9XOG+ofNWocbJ3JWwHNvJJoyI503bSSjY9p9DA e4teRawwOgNlbVcSg2ZLnL3ImsMqKBI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1686579237; 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=V05YqbcHFkVh40/g+io2C7/2OJyvLIuQRZ3y/TKygo8=; b=vNbQs/Lji8VC4za6ijU1bMo1lBLxsxsTBPEICggoy20po+PG44rdnjGCWFShw4SwgP10Qb 7r4NlZRpNRfDSWAQ== 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 2F94A13A67; Mon, 12 Jun 2023 14:13:57 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id OMbTCiUoh2RwGQAAMHmgww (envelope-from ); Mon, 12 Jun 2023 14:13:57 +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 v2 08/38] fbdev/atyfb: Use hardware device as backlight parent Date: Mon, 12 Jun 2023 16:07:46 +0200 Message-ID: <20230612141352.29939-9-tzimmermann@suse.de> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230612141352.29939-1-tzimmermann@suse.de> References: <20230612141352.29939-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 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 --- 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