Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1191130ybt; Tue, 7 Jul 2020 09:41:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxREc7NLe1IvXLdc8o4D4am2fYSVZ4ENc60IJwwQlpAyLZTtnZq7r7NHK8+RjM1uiW0/FK+ X-Received: by 2002:a05:6402:741:: with SMTP id p1mr61305281edy.222.1594140083200; Tue, 07 Jul 2020 09:41:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594140083; cv=none; d=google.com; s=arc-20160816; b=rYdoJyLser5x0uE71bwQoN9iyPvdJD8sjLErTWGHJNSeKdQ5XfmWxwVoMjzUkpDyG6 H0AJ2QfdNIntBmTQFTkwmPW5yrrAhizMyspf7KSC5gP7pz8qTVS1HWEfcip2N7g1nuVP f1HfdmOLh1gO8IDMWga2ol4SEl0EbhWw0TQT2Vyfb2h7c0ySFAE4jqH7fqbzq3nIdoEB DiJDLrOETVnA8OHmlA1dvm+CXFRdF0q1L0aRhdUoflOgTG3oI9zhOdtA/axsVjwjNYsR Z4aI8OZs9/akEProsjDFJeJjxsphp4q4h3gU9zDsu5/Pmib+SPz+9f+sVnu8OSom9yAN V1+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=bmIb4cH2dMGtvHMr8FQlvNy97HPJZVEYJ99uMcxhXoU=; b=xn62h7xDG/su+MsqTBxKMoLvX1gZ9HDl75u1uC8/bTD8jZi26vr3wrNh/lhkR/qAni riGD3cCwx8BS7uGXN45XRZwuFGu2gzktJJbrUcNG8cPklLrKK2ebjUzzz1AMmS3VGrW6 qqm2Kq2drG6zd9hqgEWB84SnzEMsiLlGSvOa+ikt+LYZMa0Y+TLR66Pzv3tezGvTJFJi ee7r89dTP1q1P5cb1FZVM/AQS1lgMtx7qyZ3xyYwYwFeicJ/uu4VCfvl6hCf05aqJRch aRPatO0WJNtGbFf6RMu57TkuAW6+ocOdkKBT3FO2Azdnn1m/GsPWq5rUmMGRHa7Nd19f 9mrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Wp0hPuYP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w4si14679094ejj.300.2020.07.07.09.40.59; Tue, 07 Jul 2020 09:41:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Wp0hPuYP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728728AbgGGQhR (ORCPT + 99 others); Tue, 7 Jul 2020 12:37:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728595AbgGGQhC (ORCPT ); Tue, 7 Jul 2020 12:37:02 -0400 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72C7DC061755 for ; Tue, 7 Jul 2020 09:37:02 -0700 (PDT) Received: by mail-pl1-x642.google.com with SMTP id x8so16064433plm.10 for ; Tue, 07 Jul 2020 09:37:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=bmIb4cH2dMGtvHMr8FQlvNy97HPJZVEYJ99uMcxhXoU=; b=Wp0hPuYPNTBfQkHFnUoNn4p67iZB5+2ozxyZ3kliqMA5nY9Q04iNE3hoEJs/GpAtHv GyAjbzVHFfi8KBDEb7tkLyIPqoO5HmS03vFdNsbWGlFA94O9tgzoTMHTJ2VCGEi/n8Hi njHnFsOYwCbTZgGjwpnRsYijy+X1Z4eebvlHugPyFJ9nBRVquoyjEe5ayq0Pma8ntx1T j4woHGEArYUarHKF/WRSiq2l+XOKMOpeXPANnKVc0X+tMc/D6743UGgDqN69KJs0qtQM Mb5KFeCTs0JctQoyYqei2ledsOy0Q6KwQEeEUQD8lUGxl4Csxw+7EmDjpuj9QuiqLRvc zv1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=bmIb4cH2dMGtvHMr8FQlvNy97HPJZVEYJ99uMcxhXoU=; b=tesc0dlF5JuPymgVhrQR3OC6mmHJVps6yG1xTWC8b6e2/gQDkKEhGfRsUHd7TjtF5E VnRJfsMjRRlrYtDH5579YfCXuBfHTFhS0RpUKg5rhMf1jM8GxuHVX2MyJJi3O2duatOm EwXY29knpBQpnC/U+VzQ0zTH0mqcyeUyI2Hur+oU8LqS9ko3NcpZ7ZaSoL/FRsCNAbrR NQ/+nsSMwFwQJmCpkruVO+bqe+IpctGe6C9UsvwgVffD7aiW85676lkDRO3dFscA4k9P /Q/RNMGdQ/VqgJQUf2tZb7zruuIiSgvXbH7fHCJwIPs/MSXd9aI8koaVhxM1xeNV37Ki 6Tug== X-Gm-Message-State: AOAM530k8/Wo4HEMLpoLEvtUWvbcyhlpOuw0CqqmGLXX8AMypj9PUl1t DXn6VAEn4/KEi4jLuzj7FD4= X-Received: by 2002:a17:90a:2048:: with SMTP id n66mr5435327pjc.71.1594139822038; Tue, 07 Jul 2020 09:37:02 -0700 (PDT) Received: from blackclown ([103.88.82.137]) by smtp.gmail.com with ESMTPSA id y12sm22966423pfm.158.2020.07.07.09.36.59 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 07 Jul 2020 09:37:01 -0700 (PDT) Date: Tue, 7 Jul 2020 22:06:47 +0530 From: Suraj Upadhyay To: maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@linux.ie, daniel@ffwll.ch Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [PATCH 3/4] drm: edid: Convert logging to drm_* functions. Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="yrj/dFKFPuw6o+aM" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --yrj/dFKFPuw6o+aM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Change logging of warnings to drm_warn() form dev_warn(). Signed-off-by: Suraj Upadhyay --- drivers/gpu/drm/drm_edid.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index 31496b6cfc56..ad7a1f9817ed 100644 --- a/drivers/gpu/drm/drm_edid.c +++ b/drivers/gpu/drm/drm_edid.c @@ -1844,9 +1844,8 @@ static void connector_bad_edid(struct drm_connector *= connector, if (connector->bad_edid_counter++ && !drm_debug_enabled(DRM_UT_KMS)) return; =20 - dev_warn(connector->dev->dev, - "%s: EDID is invalid:\n", - connector->name); + drm_warn(connector->dev, "%s: EDID is invalid:\n", connector->name); + for (i =3D 0; i < num_blocks; i++) { u8 *block =3D edid + i * EDID_LENGTH; char prefix[20]; @@ -5284,7 +5283,7 @@ int drm_add_edid_modes(struct drm_connector *connecto= r, struct edid *edid) } if (!drm_edid_is_valid(edid)) { clear_eld(connector); - dev_warn(connector->dev->dev, "%s: EDID invalid.\n", + drm_warn(connector->dev, "%s: EDID invalid.\n", connector->name); return 0; } --=20 2.17.1 --yrj/dFKFPuw6o+aM Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE7AbCa0kOsMJ4cx0j+gRsbIfe744FAl8EpJ8ACgkQ+gRsbIfe 746TcxAAkZNg/BfOOLgsJCdKiHfjZ+G8VmgQse7Oe491c79h5M7ehjraS2gAuXCu 7Ih7idgIH6BhEGhgTGumv+VDPHNZ1qxIGyhkxts5qDHcBnnOWwhIoT13v3YvgADp ZccQRXRKMzs/6F1qqoUzmDWXRivdP17pao5Ybu+7+ZRlB3lE/q48zxoha6mBl53m Y8+QZVYA6tidiCG+cc3KixVwYQEJBohuESbp9IShN8paS6OorxLOxf4ud2AvZolO zDNwgkuHrkOY4/OMSikmcM3ydyGN+Z5OhySDDf72wmKByzRfeBATEZntzV9NugIr +rfJddHV9COwm81g8SKEPIBagJaP2+gs3nwYpVe+Ey0mtapmKhQNe8pormdvmmMl /ggI12SbHCNQ4dZ91biGhPTIDs7boEpPyNvfkAclY0YuWo6BlY3QGWYKvaZDnh5n kyYpoSdA4SHy/auncAk0LPwgtaEONVTRF6oylKGAsfy4ht2l+8yZhxsaFBmPlsNO YLURe/P24F3rfXm8vzSzw90B5vkRsttPAE6AJEoxOYXiHut8+74OkJllCCuH1ArG xVxFV6O8zLK02PAWcdzQwBoqI+K7DrPHp/yKX0CH36PRzgQ1DeNaLp/zjKo8H8pB o+JjSYvIVcYQkQ6nEsq9PqPLtyjndY4heDgYLUZ6vAalJUJpoJs= =4ifc -----END PGP SIGNATURE----- --yrj/dFKFPuw6o+aM--