Received: by 10.192.165.156 with SMTP id m28csp777296imm; Thu, 19 Apr 2018 07:24:58 -0700 (PDT) X-Google-Smtp-Source: AIpwx49SzgeFLPUdRPr0cii07HCyxdnQv/yCFL4j53pdJ0jvBSB0z3B6u31KbddSUyRCAjGL4Csm X-Received: by 10.98.198.7 with SMTP id m7mr6113040pfg.66.1524147898095; Thu, 19 Apr 2018 07:24:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524147898; cv=none; d=google.com; s=arc-20160816; b=puSKNrFjIVgoFADJv7Xl79UfDecwyFwG8CntWEEvWMyOt1DkbcRUUWvtYyHarduJv5 Si636Y8y9iqgV/e6lTqyxRf25F7wxjSjON08CWJL3BQBTAZur3buTR0RrrgofTa6fPsA nInAvuzzIHZAkyz5qobD4zU/Xak6E3gQxUL9KqcBmtEvEYoAI8d2/o6gFlUJf71SK5sa 1WusI2MaOuehjUUwNIj4Qahi3K6Fn+LyJbkCYytsa2L/k6IRDuTtmoXU/vBEXKaMxzCz 6a01j+Czpdujm5nZLEpQAMjFAdRsYn5QmSiqqLygg3pBG92S4arbJAD1aFY1eF1SojjD VYMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=Xj9GIxPwThpHnqKmVth0ldeTxJT3v4W4A/V+zVMdrNo=; b=cyk3pGt/sXRE9qpfrToksUd+rzM1eKNJLdtMNcE2n0vtRC4oZy6TFVKT90eNSW7wI/ OP5mhjs8md1BmA6Dft+SkfQwslE5h7zG3TkcXIKAYbUjQDHhhPyb7BwdT5zVYmiX2b1b mEPZN6jP5lGzjHMJUxZxbcWOa7aKdg8+Ue2gbWAOXzYZfhBDNt80H3ssBRYd61lipRmt H8ckrJowX+vVv8lpKRgzGYfGlUhX9QlOJ9PLTykeWUrKJBJ926DAweXyQv5LBgYvmDGK o4bTcmag+Iq1bdSXGgLYlWE7sQhn+IMa1pL/+JF9h7kfY+5HNXiaKJHm+Bax4T6gCmpR hKQQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f5si2905619pgv.668.2018.04.19.07.24.43; Thu, 19 Apr 2018 07:24:58 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753750AbeDSOXg (ORCPT + 99 others); Thu, 19 Apr 2018 10:23:36 -0400 Received: from sauhun.de ([88.99.104.3]:45270 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753314AbeDSOG4 (ORCPT ); Thu, 19 Apr 2018 10:06:56 -0400 Received: from localhost (unknown [145.253.130.2]) by pokefinder.org (Postfix) with ESMTPSA id BB6BE3139BA; Thu, 19 Apr 2018 16:06:53 +0200 (CEST) From: Wolfram Sang To: linux-kernel@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, kernel-janitors@vger.kernel.org, Wolfram Sang , Rob Clark , David Airlie , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org Subject: [PATCH 14/61] gpu: drm: msm: dsi: simplify getting .drvdata Date: Thu, 19 Apr 2018 16:05:44 +0200 Message-Id: <20180419140641.27926-15-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180419140641.27926-1-wsa+renesas@sang-engineering.com> References: <20180419140641.27926-1-wsa+renesas@sang-engineering.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We should get drvdata from struct device directly. Going via platform_device is an unneeded step back and forth. Signed-off-by: Wolfram Sang --- Build tested only. buildbot is happy. Please apply individually. drivers/gpu/drm/msm/dsi/dsi_host.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/msm/dsi/dsi_host.c b/drivers/gpu/drm/msm/dsi/dsi_host.c index 7a03a9489708..10ed20736072 100644 --- a/drivers/gpu/drm/msm/dsi/dsi_host.c +++ b/drivers/gpu/drm/msm/dsi/dsi_host.c @@ -471,8 +471,7 @@ static void dsi_bus_clk_disable(struct msm_dsi_host *msm_host) int msm_dsi_runtime_suspend(struct device *dev) { - struct platform_device *pdev = to_platform_device(dev); - struct msm_dsi *msm_dsi = platform_get_drvdata(pdev); + struct msm_dsi *msm_dsi = dev_get_drvdata(dev); struct mipi_dsi_host *host = msm_dsi->host; struct msm_dsi_host *msm_host = to_msm_dsi_host(host); @@ -486,8 +485,7 @@ int msm_dsi_runtime_suspend(struct device *dev) int msm_dsi_runtime_resume(struct device *dev) { - struct platform_device *pdev = to_platform_device(dev); - struct msm_dsi *msm_dsi = platform_get_drvdata(pdev); + struct msm_dsi *msm_dsi = dev_get_drvdata(dev); struct mipi_dsi_host *host = msm_dsi->host; struct msm_dsi_host *msm_host = to_msm_dsi_host(host); -- 2.11.0