Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5630404rwd; Mon, 12 Jun 2023 07:40:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6Uz4gL5ttieB1f4cUjaFFV6kIvd9J/LTGor2vQBPak/WfrZmpBOvOqBT55infMWq5c4igr X-Received: by 2002:a17:902:ecc4:b0:1b2:665:d251 with SMTP id a4-20020a170902ecc400b001b20665d251mr6957403plh.47.1686580856456; Mon, 12 Jun 2023 07:40:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686580856; cv=none; d=google.com; s=arc-20160816; b=cWi4rLRw5micsFimFBgUiVSiBlRmFYLs7ce63NWlu34IFvWxdqh3U6QL5IUPP5KvPI GNBHekTwnGM/IHPgS4/gLp+jAl3bdUvT0xu5nbtDv8sy8w5cwPurwh5SJjqawGihxzxC FVJcUzZ/3jCvPjGajhaKLSpbmonHCtujEn0cb1a8t862gveIUW/8UEUz07LQOOUr1Yq2 rTubp24DzuAy37NTmuSZftFbHAvqaxY2yUQBQDWIeIXsQM9dUE6xMhx5ldtZ/X+LGmvo omisA7foodgLZkKYO9ElZ6uvV5K1a/x18c4iVrPLQcLCelSMQrKneW0xBgy3ulYbPjOR k5qw== 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=Uq3P5AVTLRK7bl4Y5Ypo+7feJO7mfpXNi4f79/IoFJA=; b=j80y+dRSXd/25y4rm76Z2veMm01ENQMDMR5LIpoAKuUe5TcAkgXdNhj+gNR8i+0B7/ cmCCbOmlB7+W+MJxsSAGnogCW9SNqseEE3u5ik4fhOwc3wmvRMLOJv/tlpaaJW+G0YKu 7uvFPynVxtW0K3TBzr4NOqmb4H/JETI/LQJSYATKe+VLBOuCGYiBxTnxGmwCAJcwt23V xmYK55BsMj+/gFteUjXpdomD9GYLPlC++VXWyHwsCsIaEB+JDOvvZD8i7LyMgHNNeEF+ bqrXqsflqrdbH4r0AM/EFuXaS8iUvyuVO+jwbgf5s2WOvfWVfrW6xVMLI2WZxN37WqZb ytlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=sRseSoPD; 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 s4-20020a170902ea0400b001b3bbac961bsi2899910plg.38.2023.06.12.07.40.43; Mon, 12 Jun 2023 07:40:56 -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=sRseSoPD; 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 S237695AbjFLOQs (ORCPT + 99 others); Mon, 12 Jun 2023 10:16:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237491AbjFLOOS (ORCPT ); Mon, 12 Jun 2023 10:14:18 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 385481732; Mon, 12 Jun 2023 07:14:07 -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 B249422855; Mon, 12 Jun 2023 14:14:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1686579245; 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=Uq3P5AVTLRK7bl4Y5Ypo+7feJO7mfpXNi4f79/IoFJA=; b=sRseSoPDBMYHnoMO82X6VaU5G6VWzq45iiA+OXn+JB96yJf5ndMsdKQanRhFSDUtkC1v6s vcGti5xBJknY4oguTiIGhEKh1YzWEp36oIMVzxULJ2oex1ecUtf4s5jq8qlHyz3qy4D6Mq PdENCOcRsV+VtbhZVTW60wVD1/sWArA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1686579245; 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=Uq3P5AVTLRK7bl4Y5Ypo+7feJO7mfpXNi4f79/IoFJA=; b=L4Ecb5bKDK/bqyWKK0bpLBlHmnKq6jvyOIM/GZXblzKlOLVlqTrwQAaD8r7vVSOkE+Z/wz vuDO0QnXT3uFGNBw== 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 60EDB1357F; Mon, 12 Jun 2023 14:14:05 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id mBWRFi0oh2RwGQAAMHmgww (envelope-from ); Mon, 12 Jun 2023 14:14:05 +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 31/38] fbdev/tdfxfb: Set i2c adapter parent to hardware device Date: Mon, 12 Jun 2023 16:08:09 +0200 Message-ID: <20230612141352.29939-32-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 3dfx hardware device from the Linux device hierarchy as parent device of the i2c adapter. 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/tdfxfb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/fbdev/tdfxfb.c b/drivers/video/fbdev/tdfxfb.c index cdf8e9fe99487..dd0fa42eceb9b 100644 --- a/drivers/video/fbdev/tdfxfb.c +++ b/drivers/video/fbdev/tdfxfb.c @@ -1327,8 +1327,8 @@ static void tdfxfb_create_i2c_busses(struct fb_info *info) par->chan[0].par = par; par->chan[1].par = par; - tdfxfb_setup_ddc_bus(&par->chan[0], "Voodoo3-DDC", info->dev); - tdfxfb_setup_i2c_bus(&par->chan[1], "Voodoo3-I2C", info->dev); + tdfxfb_setup_ddc_bus(&par->chan[0], "Voodoo3-DDC", info->device); + tdfxfb_setup_i2c_bus(&par->chan[1], "Voodoo3-I2C", info->device); } static void tdfxfb_delete_i2c_busses(struct tdfx_par *par) -- 2.41.0