Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4920101ybv; Tue, 11 Feb 2020 05:57:35 -0800 (PST) X-Google-Smtp-Source: APXvYqyYr1rypMaSSebxIqktK6wS2hO+tHgaBR4949u2ZDZfk8K1Z1nTWG2oiUikZOMz9roYC7oC X-Received: by 2002:a9d:7a56:: with SMTP id z22mr5012659otm.201.1581429455399; Tue, 11 Feb 2020 05:57:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581429455; cv=none; d=google.com; s=arc-20160816; b=BSKX/QTgrrC3aW5AWwLh3zgvEvoiABFrpxPwaXmxWJPV6RL5OLxAEUXO7usw8FSdp7 Vs/IETwWccZpOeGOh1TqkHliGY9LfOaW+eIFaYWKhWH6LYb//ULKOA95c+XEHlaZ+DPT gLZ5xTYwLDEeHhIsdoLhm7xkmdJLez+cei6pBMS1A5Q7LDBQG4gq1WSmUZ+0baCFA55Q Bn876Ab+QSQ7rUOkw0OwVCReLDPiInO/hZzMNYu4ypWtAUwEkzPHo0Ixo72Om+/G1Etd uxM9iCLHpDGIWFdBxyf63Aih9mc9CGzEKmpXlKlCDaDphRrr5pW9X16M36qJicSnkElg h5/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :organization:in-reply-to:subject:cc:to:from; bh=VgItm69O7R3WOCtzVtDvk/jt6ofbHcN3BQWGEj3L/4c=; b=WH9buHU6ICRjRyP0o5vR6EERQfPVgZoZkyX0iFhPfJ+gZ0ts7ezmmzqVLs2h7AYvKz RYF20cK1iHVIgoY0SKitipC8m7j3f8IC5ToErjzKBfN2ap4rLuKTQt+w6r4o0Hk/wkOF T4Z4g7R25RmZG1jgEPzm5s+vF7x4vv1WzcNJdo881BJog/X7Af6uJdA4CthFf6qvTx+R 04qK1wHkO5gS3sH16WKyabaCTesX8dqno+c0TtE/fu7RCkg+rqrGdqSn8OPEJ0xbpVZ4 E75M37T/UpWwwwX0u8qpknRfDCLCoXyeBLhK7n3fgCQhtT5jWlCjEXAKozMRYvfNo38u fLiA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v22si1698234oia.30.2020.02.11.05.57.23; Tue, 11 Feb 2020 05:57:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728976AbgBKNrk (ORCPT + 99 others); Tue, 11 Feb 2020 08:47:40 -0500 Received: from mga07.intel.com ([134.134.136.100]:35535 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728921AbgBKNrk (ORCPT ); Tue, 11 Feb 2020 08:47:40 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Feb 2020 05:47:39 -0800 X-IronPort-AV: E=Sophos;i="5.70,428,1574150400"; d="scan'208";a="226507295" Received: from jnikula-mobl3.fi.intel.com (HELO localhost) ([10.237.66.161]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Feb 2020 05:47:36 -0800 From: Jani Nikula To: Wambui Karuga , joonas.lahtinen@linux.intel.com, rodrigo.vivi@intel.com, airlied@linux.ie, daniel@ffwll.ch Cc: sean@poorly.run, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 11/12] drm/i915/hdmi: convert to struct drm_device based logging macros. In-Reply-To: <20200206080014.13759-12-wambui.karugax@gmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <20200206080014.13759-1-wambui.karugax@gmail.com> <20200206080014.13759-12-wambui.karugax@gmail.com> Date: Tue, 11 Feb 2020 15:47:33 +0200 Message-ID: <87tv3xz156.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 06 Feb 2020, Wambui Karuga wrote: > @@ -1364,11 +1372,15 @@ int intel_hdmi_hdcp_write_an_aksv(struct intel_digital_port *intel_dig_port, > static int intel_hdmi_hdcp_read_bksv(struct intel_digital_port *intel_dig_port, > u8 *bksv) > { > + struct drm_i915_private *i915 = > + intel_dig_port->base.base.dev->dev_private; The preferred way to get from intel_digital_port to i915 throughout is struct drm_i915_private *i915 = to_i915(intel_dig_port->base.base.dev); I realize there are some bad examples in the file; I've posted [1] to fix them. BR, Jani. [1] http://patchwork.freedesktop.org/patch/msgid/20200211134427.31605-1-jani.nikula@intel.com -- Jani Nikula, Intel Open Source Graphics Center