From patchwork Mon Nov 12 13:33:39 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomi Valkeinen X-Patchwork-Id: 1728201 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 8FF743FCDE for ; Mon, 12 Nov 2012 13:34:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752540Ab2KLNeC (ORCPT ); Mon, 12 Nov 2012 08:34:02 -0500 Received: from comal.ext.ti.com ([198.47.26.152]:46080 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751353Ab2KLNeA (ORCPT ); Mon, 12 Nov 2012 08:34:00 -0500 Received: from dlelxv30.itg.ti.com ([172.17.2.17]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id qACDXxxS003035; Mon, 12 Nov 2012 07:34:00 -0600 Received: from DLEE74.ent.ti.com (dlee74.ent.ti.com [157.170.170.8]) by dlelxv30.itg.ti.com (8.13.8/8.13.8) with ESMTP id qACDXxX2004432; Mon, 12 Nov 2012 07:33:59 -0600 Received: from dlelxv22.itg.ti.com (172.17.1.197) by DLEE74.ent.ti.com (157.170.170.8) with Microsoft SMTP Server id 14.1.323.3; Mon, 12 Nov 2012 07:33:59 -0600 Received: from deskari.tieu.ti.com (h68-17.vpn.ti.com [172.24.68.17]) by dlelxv22.itg.ti.com (8.13.8/8.13.8) with ESMTP id qACDXtHd005436; Mon, 12 Nov 2012 07:33:58 -0600 From: Tomi Valkeinen To: , CC: Tony Lindgren , , Archit Taneja , Tomi Valkeinen Subject: [PATCH 1/2] [media] omap_vout: use omapdss's version instead of cpu_is_* Date: Mon, 12 Nov 2012 15:33:39 +0200 Message-ID: <1352727220-22540-2-git-send-email-tomi.valkeinen@ti.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1352727220-22540-1-git-send-email-tomi.valkeinen@ti.com> References: <1352727220-22540-1-git-send-email-tomi.valkeinen@ti.com> MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org cpu_is_* class functions create a dependency to OMAP platform code. omapdss driver, which omap_vout uses, exposes a function to get the version of the DSS hardware. To remove the dependency to OMAP platform code this patch changes omap_vout to use the omapdss version. For most of the checks, the ones dealing with DSS differences, this is actually more correct than using cpu_is_* functions. For the check whether VRFB is available or not this is not really correct, but still works fine. Signed-off-by: Tomi Valkeinen --- drivers/media/platform/omap/omap_vout.c | 3 +-- drivers/media/platform/omap/omap_voutlib.c | 38 ++++++++++++++++++++-------- drivers/media/platform/omap/omap_voutlib.h | 3 +++ 3 files changed, 32 insertions(+), 12 deletions(-) diff --git a/drivers/media/platform/omap/omap_vout.c b/drivers/media/platform/omap/omap_vout.c index 3ff94a3..7b1afc8 100644 --- a/drivers/media/platform/omap/omap_vout.c +++ b/drivers/media/platform/omap/omap_vout.c @@ -44,7 +44,6 @@ #include #include -#include #include #include