From patchwork Tue Aug 23 05:50:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 9295621 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 23379607D0 for ; Tue, 23 Aug 2016 12:32:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 15A092877C for ; Tue, 23 Aug 2016 12:32:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0A6CD28792; Tue, 23 Aug 2016 12:32:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4D8F62877C for ; Tue, 23 Aug 2016 12:32:21 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 001146E7B7; Tue, 23 Aug 2016 12:29:10 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pf0-x230.google.com (mail-pf0-x230.google.com [IPv6:2607:f8b0:400e:c00::230]) by gabe.freedesktop.org (Postfix) with ESMTPS id 99F556E59C for ; Tue, 23 Aug 2016 05:50:52 +0000 (UTC) Received: by mail-pf0-x230.google.com with SMTP id y134so40055460pfg.0 for ; Mon, 22 Aug 2016 22:50:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=m+2ROlZmlgTTc1VX3Y+qr2Eql/cLf40dJSqJAJ+65iM=; b=RzwtiMAa4GV6QToGIH/qEXESBKwV56Qj7CsR8LTIQwnx316qmJ63mYatXyrm44x0XE drm4MPi8alrguVbts92sIZkQsSZRUr8DgKGCKjr6J0dbQHOYbBZP4MXuWKYIXg0TupSX c6gTcFmJsxlsk1zw118tMSEMeePNf5SKFUGG0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=m+2ROlZmlgTTc1VX3Y+qr2Eql/cLf40dJSqJAJ+65iM=; b=dmGPJqMQlKVNJCUyy4Me8VdOJalNr0EesHS2juPiJNNzThxGhOtIC5aAMf4Sf/lVeA YXFMei5bqIlausbNv9jQLVTW6oR84b5KoF9/HDE7e480ICkKOjOTPnWspJbKzlvAqjwW CJI9pvfQeXZGXzYYhuqDmsN+5v49qocuPgX273KpI6GCrI/FkInEzJGGbgbhpGgbOpGQ LJnOz7nUSdvtQIUF+Qn09GPBXdq638FxG5yu03hwhLLxPOW+kj1/b7F0o6iHrYuSSxL3 mTweoaTkOGIfMCjVLRKbeTuv1TBZ9RmsBgktCEfkGPxEgYXoz2OS9CbC7PLzD3iiG3K5 PmuQ== X-Gm-Message-State: AEkoouuLnWtWD1g7bHi8/JPVt2+iaBMomgyJozqCTJ2ytlT9mWDgA5AoTUADn7D7d3Faw7mf X-Received: by 10.98.216.199 with SMTP id e190mr50048407pfg.123.1471931452227; Mon, 22 Aug 2016 22:50:52 -0700 (PDT) Received: from localhost.localdomain (c-73-67-244-238.hsd1.or.comcast.net. [73.67.244.238]) by smtp.gmail.com with ESMTPSA id wp4sm1937967pab.15.2016.08.22.22.50.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 22 Aug 2016 22:50:51 -0700 (PDT) From: John Stultz To: lkml Subject: [RFC][PATCH 1/4] drm/bridge: adv7511: Move the common data structures to header file Date: Mon, 22 Aug 2016 22:50:44 -0700 Message-Id: <1471931447-12049-2-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1471931447-12049-1-git-send-email-john.stultz@linaro.org> References: <1471931447-12049-1-git-send-email-john.stultz@linaro.org> MIME-Version: 1.0 Cc: Guodong Xu , dri-devel@lists.freedesktop.org, Jose Abreu , Wolfram Sang , Mark Brown , Srinivas Kandagatla , Laurent Pinchart , Andy Green , Zhangfei Gao , Dave Long X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Archit Taneja This patch moves the adv7511 data structure to header file so that the audio driver file could use it. Cc: David Airlie Cc: Archit Taneja Cc: Laurent Pinchart Cc: Wolfram Sang Cc: Srinivas Kandagatla Cc: "Ville Syrjälä" Cc: Boris Brezillon Cc: Andy Green Cc: Dave Long Cc: Guodong Xu Cc: Zhangfei Gao Cc: Mark Brown Cc: Lars-Peter Clausen Cc: Jose Abreu Cc: dri-devel@lists.freedesktop.org Signed-off-by: Srinivas Kandagatla Signed-off-by: John Stultz --- drivers/gpu/drm/bridge/adv7511/adv7511.h | 8 ++++++++ drivers/gpu/drm/bridge/adv7511/adv7511_drv.c | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/bridge/adv7511/adv7511.h b/drivers/gpu/drm/bridge/adv7511/adv7511.h index 161c923..c7002a0 100644 --- a/drivers/gpu/drm/bridge/adv7511/adv7511.h +++ b/drivers/gpu/drm/bridge/adv7511/adv7511.h @@ -16,6 +16,14 @@ #include #include +#include + +struct regmap; +struct adv7511; + +int adv7511_packet_enable(struct adv7511 *adv7511, unsigned int packet); +int adv7511_packet_disable(struct adv7511 *adv7511, unsigned int packet); + #define ADV7511_REG_CHIP_REVISION 0x00 #define ADV7511_REG_N0 0x01 #define ADV7511_REG_N1 0x02 diff --git a/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c b/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c index ec8fb2e..f8eb7f8 100644 --- a/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c +++ b/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c @@ -160,7 +160,7 @@ static void adv7511_set_colormap(struct adv7511 *adv7511, bool enable, ADV7511_CSC_UPDATE_MODE, 0); } -static int adv7511_packet_enable(struct adv7511 *adv7511, unsigned int packet) +int adv7511_packet_enable(struct adv7511 *adv7511, unsigned int packet) { if (packet & 0xff) regmap_update_bits(adv7511->regmap, ADV7511_REG_PACKET_ENABLE0, @@ -175,7 +175,7 @@ static int adv7511_packet_enable(struct adv7511 *adv7511, unsigned int packet) return 0; } -static int adv7511_packet_disable(struct adv7511 *adv7511, unsigned int packet) +int adv7511_packet_disable(struct adv7511 *adv7511, unsigned int packet) { if (packet & 0xff) regmap_update_bits(adv7511->regmap, ADV7511_REG_PACKET_ENABLE0,