Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1593172pxy; Fri, 23 Apr 2021 11:47:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIzHMqFHJ7K4eSj0j4gsdXP4k6eOwaZ39iH+DxRsQpFl8Te9q2p+xeWHl7nO6tlffFZEMZ X-Received: by 2002:a17:906:64f:: with SMTP id t15mr5569829ejb.411.1619203640659; Fri, 23 Apr 2021 11:47:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619203640; cv=none; d=google.com; s=arc-20160816; b=ZLhqbnuPX56cb8etS6wm7SM4QC7ADdnXQZLF35jsksYZvqAvf1PuENsh5nfH7Rff5N OOm2ATMj/OtCL/1RvOrfiTAkpPyGfQDVeR5ykCnNo85fUUfVQg6OnMchuPBCOQXqHg7Z oSYnPzOoHtkps4yT3eOlG2Z2cPXwIo8NLmYBr+su3m/E1L0Le5OYZVqO0ERtvwFQQAZo 1lDR6D5x24OsGiLcHBGCk4jCWCgrKX41c77gIPICZwgR1hhRUqJSQ99VoMXTv+G1FHgx aaE5328kf7pX2s8GO6MiWM1dMu44wK7Y69XDnkWN7SP4FWUAMIQuBXFgusLRuwUypcjz jBaQ== 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; bh=777DBmFJ+rY1vS5I0vU/Gj0FBu2QfpmiUblV8exoJZI=; b=fxmQLnu+gS02v7hH/E++tp29HMVkh4o/euuNwoX4ZeTAaTDnzuRD4w021+MZYKuiTf Ut8d/8F8USjmInQRiQi0ujhvYwkF3X8taQQYE47FgvASeH5xZdoz2sjckvofZP67DkuM kEU3yIA5yqCXnuC1o/E+v0oHXudJOU/804iMtW5OfD47LsX+GHLDNSJgfU5Fy9/xjh5q IJ6nv7ijS3MVcYZsxKUR0rRWag5ZJWUeSEQx2HUJesyrRQm2KwymggTo2Ox2oHx6z8zg SFz+8deIOS3of+fxRcpccPHZOpeH4ZBkw+uFcAhTIaiaJqJjxSwa2V6WsbRymuyxbyHU 6OoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="HniV/vY7"; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j1si5423605eds.64.2021.04.23.11.46.56; Fri, 23 Apr 2021 11:47:20 -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=@redhat.com header.s=mimecast20190719 header.b="HniV/vY7"; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243754AbhDWSqb (ORCPT + 99 others); Fri, 23 Apr 2021 14:46:31 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:34911 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231684AbhDWSqa (ORCPT ); Fri, 23 Apr 2021 14:46:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1619203553; h=from:from:reply-to:subject:subject: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=777DBmFJ+rY1vS5I0vU/Gj0FBu2QfpmiUblV8exoJZI=; b=HniV/vY7WkldpOuOyhAm3w6tuXNDTgSuXAeaL1mlh5as+1/9CY8uOUvhOdOThmMYIZ6cko gLi+vC3DRwF6YZ+SMPlP+KBuZEFK+WLiic9wuwD5+eBl2iiGdjUe3zvyoKIsORoZei1nYG UrFZWGFJkLsk27OPvr6KKMP6XU5u5N8= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-509-a8EPpsHOP0Ss5eQQbzWLag-1; Fri, 23 Apr 2021 14:45:49 -0400 X-MC-Unique: a8EPpsHOP0Ss5eQQbzWLag-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9D7118C3B08; Fri, 23 Apr 2021 18:44:59 +0000 (UTC) Received: from Ruby.lyude.net (ovpn-114-74.rdu2.redhat.com [10.10.114.74]) by smtp.corp.redhat.com (Postfix) with ESMTP id 02FE3608BA; Fri, 23 Apr 2021 18:44:57 +0000 (UTC) From: Lyude Paul To: dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, nouveau@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= , Jani Nikula , Rodrigo Vivi , Thomas Zimmermann , Thierry Reding Cc: Maarten Lankhorst , Maxime Ripard , David Airlie , Daniel Vetter , linux-kernel@vger.kernel.org (open list) Subject: [PATCH v4 11/17] drm/dp_dual_mode: Pass drm_device to drm_dp_dual_mode_get_tmds_output() Date: Fri, 23 Apr 2021 14:43:03 -0400 Message-Id: <20210423184309.207645-12-lyude@redhat.com> In-Reply-To: <20210423184309.207645-1-lyude@redhat.com> References: <20210423184309.207645-1-lyude@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Another function to pass drm_device * down to so we can start using the drm_dbg_*() in the DRM DP helpers. Signed-off-by: Lyude Paul --- drivers/gpu/drm/drm_dp_dual_mode_helper.c | 5 +++-- include/drm/drm_dp_dual_mode_helper.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/drm_dp_dual_mode_helper.c b/drivers/gpu/drm/drm_dp_dual_mode_helper.c index 4a26b3e1f78f..c9c2952bcad2 100644 --- a/drivers/gpu/drm/drm_dp_dual_mode_helper.c +++ b/drivers/gpu/drm/drm_dp_dual_mode_helper.c @@ -296,6 +296,7 @@ EXPORT_SYMBOL(drm_dp_dual_mode_max_tmds_clock); /** * drm_dp_dual_mode_get_tmds_output - Get the state of the TMDS output buffers in the DP dual mode adaptor + * @dev: &drm_device to use * @type: DP dual mode adaptor type * @adapter: I2C adapter for the DDC bus * @enabled: current state of the TMDS output buffers @@ -310,8 +311,8 @@ EXPORT_SYMBOL(drm_dp_dual_mode_max_tmds_clock); * Returns: * 0 on success, negative error code on failure */ -int drm_dp_dual_mode_get_tmds_output(enum drm_dp_dual_mode_type type, - struct i2c_adapter *adapter, +int drm_dp_dual_mode_get_tmds_output(const struct drm_device *dev, + enum drm_dp_dual_mode_type type, struct i2c_adapter *adapter, bool *enabled) { uint8_t tmds_oen; diff --git a/include/drm/drm_dp_dual_mode_helper.h b/include/drm/drm_dp_dual_mode_helper.h index aabf9c951380..01eec9ff5962 100644 --- a/include/drm/drm_dp_dual_mode_helper.h +++ b/include/drm/drm_dp_dual_mode_helper.h @@ -108,7 +108,7 @@ enum drm_dp_dual_mode_type drm_dp_dual_mode_detect(const struct drm_device *dev, struct i2c_adapter *adapter); int drm_dp_dual_mode_max_tmds_clock(const struct drm_device *dev, enum drm_dp_dual_mode_type type, struct i2c_adapter *adapter); -int drm_dp_dual_mode_get_tmds_output(enum drm_dp_dual_mode_type type, +int drm_dp_dual_mode_get_tmds_output(const struct drm_device *dev, enum drm_dp_dual_mode_type type, struct i2c_adapter *adapter, bool *enabled); int drm_dp_dual_mode_set_tmds_output(const struct drm_device *dev, enum drm_dp_dual_mode_type type, struct i2c_adapter *adapter, bool enable); -- 2.30.2