Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5610144rwd; Mon, 12 Jun 2023 07:24:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Bxr24Lq9cO8gV4/wFe+ZY2vvHo3f84VyO0nUM4H6ulrWs1K9Fp1Io19/KkCjl5VG+05MV X-Received: by 2002:a17:902:d501:b0:1b0:663e:4b10 with SMTP id b1-20020a170902d50100b001b0663e4b10mr8041129plg.64.1686579893567; Mon, 12 Jun 2023 07:24:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686579893; cv=none; d=google.com; s=arc-20160816; b=qPiDRuNz1ygSOPdYuRc0zQBCrZfgTx4krN3iNdUXA5dEjwiPsDpEFwj6ZOWKYhK8zK j6yftwmrEq8KmtnoVJe/U9Fm0gIQLbk7EEM9Fzl1l1ytr59WdXCdQr7BH19mgiFP3TN6 3RPyw5lUhh8L+k08WVmhYXqr1s2LyfFg92zb7nIP2B4FQbpneDicjXwbAcpb5Fba42sw 4k5lT0WWvUaxqQVBBrGIdqLq9n0rqYvn5CM0Dqw2VnhpURi+2+qpnKimP8lJX0gqlc+c ZNeVw93oc+RhoNsZPP12S2ZkDiVliCQSggvvUFIfGbkbs3Bk3KcK5IcZDYbxAlhkVkiC qvWQ== 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=KHaIM1mXVDYd6HDF2qJug1/atoNFlj4bYCqrjFZko5Y=; b=qf5ZERdTOgl9VnXh1wgZJBD9X63pUD3Wb0/amHTy463/sX2WIyQ7OM6HMRd8j1N915 X2NDy8LWlYkcG8BKK/7tOmVg6sxhJjiAgpFnm8+bKk/9wCjZqlDQNA2/yxM+5wWd1tS3 mmefkhjNHP06JbM1rryjckWwYfVEpgRtzrW7DFYjx4sbFpDtxOZtkwJwwF5D0oKw8Mi6 e/i3Jb3bZe17ZN78wzuYfs6E3UB1Vi08Xu3j6l1aZZm3oGYHaW6sUeUxSEfLdr8SxNsu IJ1KbJiHlzIiyVV2IxhOMpVU00Pcr/BRAgbv7qhq4kWffzSsnUAeu+AiPWn+D6TG235t LBlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=Hfg9XyMW; 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 k1-20020a170902ba8100b001b046acc853si6838735pls.589.2023.06.12.07.24.40; Mon, 12 Jun 2023 07:24:53 -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=Hfg9XyMW; 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 S237214AbjFLOPN (ORCPT + 99 others); Mon, 12 Jun 2023 10:15:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237364AbjFLOOI (ORCPT ); Mon, 12 Jun 2023 10:14:08 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BD6210E9; Mon, 12 Jun 2023 07:14:01 -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 459BC2048A; Mon, 12 Jun 2023 14:14:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1686579240; 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=KHaIM1mXVDYd6HDF2qJug1/atoNFlj4bYCqrjFZko5Y=; b=Hfg9XyMWEfJlY7hQ0XQ/MkPgs/keqC+BODstU1pFrBJ20k3oCU2vXIiqhaONvM99eOxkN9 ZTQrDR8dR1nA062/VTXlI1bqE6aExK3nh76QNDGxlBXyuRNKt6mhsQYRjCcz3SquMYySji mAWUnW6DgtT3YnEpA0DiLZfyuhRR3hI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1686579240; 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=KHaIM1mXVDYd6HDF2qJug1/atoNFlj4bYCqrjFZko5Y=; b=2gstM1tXyQwjgJkTl8TkAoq1ZTddQJBL/3EAyI1iDJduEm0+2MSFbRe4hZUTNVigjw3ixi sVl93A3u8ve2X3Dw== 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 E85621357F; Mon, 12 Jun 2023 14:13:59 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id eEPaNycoh2RwGQAAMHmgww (envelope-from ); Mon, 12 Jun 2023 14:13:59 +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 16/38] fbdev/mb862xxfb: Output messages with fb_dbg() Date: Mon, 12 Jun 2023 16:07:54 +0200 Message-ID: <20230612141352.29939-17-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 Fix cases were output helpers are called with struct fb_info.dev. Use fb_dbg() instead. Prepares fbdev for making struct fb_info.dev optional. v2: * fix another reference to struct fb_info.dev (kernel test reobot) * remove fb_err() from commit message Signed-off-by: Thomas Zimmermann Reviewed-by: Javier Martinez Canillas --- drivers/video/fbdev/mb862xx/mb862xxfbdrv.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/video/fbdev/mb862xx/mb862xxfbdrv.c b/drivers/video/fbdev/mb862xx/mb862xxfbdrv.c index b5c8fcab9940d..119c2a582ecbd 100644 --- a/drivers/video/fbdev/mb862xx/mb862xxfbdrv.c +++ b/drivers/video/fbdev/mb862xx/mb862xxfbdrv.c @@ -112,8 +112,7 @@ static int mb862xxfb_check_var(struct fb_var_screeninfo *var, { unsigned long tmp; - if (fbi->dev) - dev_dbg(fbi->dev, "%s\n", __func__); + fb_dbg(fbi, "%s\n", __func__); /* check if these values fit into the registers */ if (var->hsync_len > 255 || var->vsync_len > 255) @@ -290,7 +289,7 @@ static int mb862xxfb_blank(int mode, struct fb_info *fbi) struct mb862xxfb_par *par = fbi->par; unsigned long reg; - dev_dbg(fbi->dev, "blank mode=%d\n", mode); + fb_dbg(fbi, "blank mode=%d\n", mode); switch (mode) { case FB_BLANK_POWERDOWN: @@ -791,7 +790,7 @@ static void of_platform_mb862xx_remove(struct platform_device *ofdev) resource_size_t res_size = resource_size(par->res); unsigned long reg; - dev_dbg(fbi->dev, "%s release\n", fbi->fix.id); + fb_dbg(fbi, "%s release\n", fbi->fix.id); /* display off */ reg = inreg(disp, GC_DCM1); @@ -1138,7 +1137,7 @@ static void mb862xx_pci_remove(struct pci_dev *pdev) struct mb862xxfb_par *par = fbi->par; unsigned long reg; - dev_dbg(fbi->dev, "%s release\n", fbi->fix.id); + fb_dbg(fbi, "%s release\n", fbi->fix.id); /* display off */ reg = inreg(disp, GC_DCM1); -- 2.41.0