Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2849077pxb; Mon, 19 Apr 2021 16:00:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwo5hlKnbcAnXk4T60OGb6VoKOG45v+KhoeDoqC1x2K7cw4WmUrifj7YXF7VXt/IMhg2Xho X-Received: by 2002:a17:90a:a589:: with SMTP id b9mr1545143pjq.80.1618873218269; Mon, 19 Apr 2021 16:00:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618873218; cv=none; d=google.com; s=arc-20160816; b=cJyM/OiTRfbTboOgBJ/6NMBGcPovj+17rnKuiDZkYFlFNRckJqPPEQeEmU1kDHF90n CPuRMXNZgqBNaFGvhx1mwdnjZRNrztdIZU+iBxYOnftT1XpHfrSFir7pauwYMl3T7AjH 8N4Dqq/wZoeq/K3DIELmnEMuQjAlh1VRffCGHgU7LmMc9dspt+n3WdICCrcPodyUDL69 Qwjtse1U+ESPLISHxIZKdEcJPZG0I5rtPi1lAtokirzhiq6DYe7SN6Wp5hwnD0b7Aro5 08qreT5UOtBRQVXO2YvbxlaXe4uwoKPxf0PYOpWMCJxUhVBnO4VT+cV0cqnwVROsXNmt EzaQ== 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=ZVaZfDnEvWHb3CDGdr6Ww7KCKiJovsNn24D+zOkILNlDvbgNkjOm6n6Zys1YzTiMDw qACbDqVSPq3DD0Oz31ZsrXGOCs19JnOsg5RrA7nBdDHrjXTh/6mwSVlhPQzKDyQwrIpw fjwb4KYLrbJ8tRnEF6LmWX5uozD2uhlvo5Yj/VraFi242nxdklIXFWHG9tOrWrzOrKfI C2NidsQJfkBlLy3BZjgVqTOHoamTs6V4x4xJfxPoPBc67skvKdZr51ae6U/3FhJW4/1O MfoCbpqAMqK77Jeyln9e1ECeVkzVN1g43HvdXDx5TugqMUFW8UwULYcO0k6x8KFLlkad 4m3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="CBWo7L+/"; 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 q16si18698163pgg.312.2021.04.19.16.00.05; Mon, 19 Apr 2021 16:00:18 -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="CBWo7L+/"; 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 S232579AbhDSW6X (ORCPT + 99 others); Mon, 19 Apr 2021 18:58:23 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:39285 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232410AbhDSW6F (ORCPT ); Mon, 19 Apr 2021 18:58:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1618873055; 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=CBWo7L+/Iq26jlMjVoAtTgk6VW+nM6xdDIoCH6oRgA0Rn94UQzqvg0KU2O40KqudUtZ1TX +S9bxyLZ9emwjfPqD4tWUGUC6n6SHtNaFKzlQDVg0X324Nxi1Q4KXa2VWQEbsGsvI/EHuA KW6BnSQ2CPVbB0gnzIu92iYSUEKuYjU= 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-302-c4kkeU-YOlm7Elgz4I2qVg-1; Mon, 19 Apr 2021 18:57:33 -0400 X-MC-Unique: c4kkeU-YOlm7Elgz4I2qVg-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id EB1FB81746C; Mon, 19 Apr 2021 22:57:31 +0000 (UTC) Received: from Ruby.lyude.net (ovpn-119-153.rdu2.redhat.com [10.10.119.153]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6273E5C1C4; Mon, 19 Apr 2021 22:57:30 +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 v3 14/20] drm/dp_dual_mode: Pass drm_device to drm_dp_dual_mode_get_tmds_output() Date: Mon, 19 Apr 2021 18:55:16 -0400 Message-Id: <20210419225523.184856-15-lyude@redhat.com> In-Reply-To: <20210419225523.184856-1-lyude@redhat.com> References: <20210419225523.184856-1-lyude@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 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