From patchwork Mon Aug 29 23:41:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 9304627 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 8B00460756 for ; Mon, 29 Aug 2016 23:41:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7CAA4289B1 for ; Mon, 29 Aug 2016 23:41:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 715DA289C3; Mon, 29 Aug 2016 23:41:52 +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 190B7289B1 for ; Mon, 29 Aug 2016 23:41:52 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 54DA46E22C; Mon, 29 Aug 2016 23:41:50 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pa0-x230.google.com (mail-pa0-x230.google.com [IPv6:2607:f8b0:400e:c03::230]) by gabe.freedesktop.org (Postfix) with ESMTPS id 79E446E07C for ; Mon, 29 Aug 2016 23:41:46 +0000 (UTC) Received: by mail-pa0-x230.google.com with SMTP id ci2so973622pad.3 for ; Mon, 29 Aug 2016 16:41:46 -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=OIr3PEKgvj8q+CZ5an3jJA3kFdQQMKZrLnVMvOfVkqeQnEzsovkUamBEK1W59bsFjd hM6QmDEZu1Fm120KA8e3jf35lQVmYwv5nQjdcxc56npfwDS2wxZQYXpZHlEjLXdCxVxB CY8lygufgvyXfdLafwX0VlB1gctI7CEXa+u+Q= 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=MhIOZpXVYlPsOtrSOEgtFsPBsUC7ZZbqkhtqUgcsyi/LphctomX/wZsspHiISQ9LDo HztXJluKSJJwMiYJbe3fW/kihZAkx8EjwZfBFiC7KV9ZDojaFyMceA8U7D17IioMN35Q CrM4AUmdy/6pKKMn5Flv18noOnKvLdMzCRx/BUwkTYVIcTygROEOe0JmuVUxfBu9FOsN gLiGQHYXmOcmtUlwEdvk4b1hUf7JztnfcVRfmxQr9q101PkM5tWcK4q/BTQvyaYlACiT u5jE6+5ZtYhTy9XQhJteWjOxdT2c2VtjnwY3onGJ0VLhzEvhDhAt5GgpL+fA35tcCtUt zW9w== X-Gm-Message-State: AE9vXwNTlN3II6aHAqA3kLvlpUgaPBoRZ2D/nXUAwtqIYP5HRqjeo9V/PLsXqwFf3N1sffWM X-Received: by 10.66.243.208 with SMTP id xa16mr1019884pac.81.1472514105965; Mon, 29 Aug 2016 16:41:45 -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 te10sm51873603pac.4.2016.08.29.16.41.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 29 Aug 2016 16:41:45 -0700 (PDT) From: John Stultz To: lkml Subject: [PATCH 1/4 v2] drm/bridge: adv7511: Move the common data structures to header file Date: Mon, 29 Aug 2016 16:41:33 -0700 Message-Id: <1472514096-10915-2-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1472514096-10915-1-git-send-email-john.stultz@linaro.org> References: <1472514096-10915-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,