Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1055424rwd; Tue, 13 Jun 2023 04:22:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ697rDmKtqxqI+1lTa7DSq+YACNjTirNDCHHnvq99r1aaj5S7AUfPbX/RhcpMFzTNix3fX+ X-Received: by 2002:a05:6a00:2195:b0:657:97f7:1a5 with SMTP id h21-20020a056a00219500b0065797f701a5mr14842169pfi.23.1686655336189; Tue, 13 Jun 2023 04:22:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686655336; cv=none; d=google.com; s=arc-20160816; b=0uKUfN5CivyRzQoq2MDGwLsJgNza3vWt0ZGR1EbJWrikd+EljGsnuQ8vrpTuRaFDSj PgyHMpIt+QmMPctLbZHYcJOqIOSGQPF7YHQfJqSkYs6VPZh1l6gESumlj3kfcPTxklHU LYlgJHAQ3TtTIJqTJFbQMOwSWLscqGVOAPUBlk5QdlR20zisT3AKkdwTIgbyS55LYHmZ zOcangRtb2K5i8ALYKhmpM6M+M16qDVKIsrAsyE/xH/DiVUi8gVtlkxLO0tPA2ffbF1M eJrdZmz8Tfrj6W06wA+18PIHklPgUnmtRqN5GZJWCI1Lb5pDVvRTmoKAYJfZTgn5dQPr iqtQ== 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=ZfSP1y1Od3RE4xLQhOI7CNFh+UziWmakxVkeObt75SY=; b=iHSCyRJv7XT9QTUDAUeccwokcwsaP4pL3WcewWANm8b2tRQvav9CSGFICfGeYAsBU5 qNfdpqii0ZYhIdHmtMTQdCHsAQiQwwucxEmorD0/Fgzva3ku/UqAtznGSR47FjE6ssA+ 4G9x8mOlSfxnGLVIaHku2F2F+ViSBURON6V0jxBmBZyHbx5XXpZrjCv7KSEDq+U74X5m 71Jan+B2QGUj92QzbyzDOJC29BYI5uLN7cUWi2zfNssnvxRZqEU0SPyYwK+2x/Oal6oE EYlftrtT1yKq91U6W/YBT4t89rnb/aNaMzp7qpIPpxk/nQzLEt6WjN93UQbpa0FAvGUs ZE7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=BVN87CZX; 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 i1-20020aa796e1000000b0064de770ec36si8463788pfq.353.2023.06.13.04.22.04; Tue, 13 Jun 2023 04:22: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=BVN87CZX; 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 S242245AbjFMLMU (ORCPT + 99 others); Tue, 13 Jun 2023 07:12:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242129AbjFMLKJ (ORCPT ); Tue, 13 Jun 2023 07:10:09 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE142E52; Tue, 13 Jun 2023 04:10: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-out2.suse.de (Postfix) with ESMTPS id 6150D1FD9F; Tue, 13 Jun 2023 11:10:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1686654606; 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=ZfSP1y1Od3RE4xLQhOI7CNFh+UziWmakxVkeObt75SY=; b=BVN87CZX9PNwGlsQxUaCox0+gvzO4rs20m57EzzvMA3gw9SxzIvRBlJ2oKdFb5ad9VVTHG gQ3INMSWM/s7jt8VLQ68rYPvcS6A4wz7gG1G9gvoVpCN4f1Kw5dm9MXSP0jsFwNNsOus9Y iTs1M+VcjWanbcwEuWLIpLOwJ9c1nzA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1686654606; 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=ZfSP1y1Od3RE4xLQhOI7CNFh+UziWmakxVkeObt75SY=; b=lUIKTf5P2HghJ44B8ZTHw6QKEDgmMbMZhXzFHEdO0leLki1QSlYc7AS6dgC+mNlSz0ZwAE GLeHPozBRF6zjGDg== 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 132E713A47; Tue, 13 Jun 2023 11:10:06 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id eOmpA45OiGR8CQAAMHmgww (envelope-from ); Tue, 13 Jun 2023 11:10:06 +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 31/38] fbdev/tdfxfb: Set i2c adapter parent to hardware device Date: Tue, 13 Jun 2023 13:07:06 +0200 Message-ID: <20230613110953.24176-32-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 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 Reviewed-by: Sam Ravnborg --- 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