From patchwork Wed Jun 22 07:49:50 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Damian Hobson-Garcia X-Patchwork-Id: 903802 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p5M7n5nT012642 for ; Wed, 22 Jun 2011 07:49:11 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752474Ab1FVHtI (ORCPT ); Wed, 22 Jun 2011 03:49:08 -0400 Received: from mail-pz0-f46.google.com ([209.85.210.46]:61458 "EHLO mail-pz0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751742Ab1FVHtI (ORCPT ); Wed, 22 Jun 2011 03:49:08 -0400 Received: by pzk9 with SMTP id 9so354043pzk.19 for ; Wed, 22 Jun 2011 00:49:07 -0700 (PDT) Received: by 10.68.21.225 with SMTP id y1mr142108pbe.190.1308728947420; Wed, 22 Jun 2011 00:49:07 -0700 (PDT) Received: from localhost.localdomain (mailhost.igel.co.jp [219.106.231.130]) by mx.google.com with ESMTPS id g8sm266171pba.21.2011.06.22.00.49.05 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 22 Jun 2011 00:49:06 -0700 (PDT) From: Damian Hobson-Garcia To: Magnus Damm , lethal@linux-sh.org, linux-sh@vger.kernel.org, linux-fbdev@vger.kernel.org Cc: taki@igel.co.jp, matsu@igel.co.jp, Damian Hobson-Garcia Subject: [PATCH 3/5] fbdev: sh_mobile_meram: Move private data from .h to .c Date: Wed, 22 Jun 2011 16:49:50 +0900 Message-Id: <1308728992-9660-4-git-send-email-dhobsong@igel.co.jp> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1308728992-9660-1-git-send-email-dhobsong@igel.co.jp> References: <1308728992-9660-1-git-send-email-dhobsong@igel.co.jp> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Wed, 22 Jun 2011 07:49:11 +0000 (UTC) There is no reason for sh_mobile_meram_priv to be in the .h file since it should be private to sh_mobile_meram.c Signed-off-by: Damian Hobson-Garcia --- drivers/video/sh_mobile_meram.c | 8 ++++++++ drivers/video/sh_mobile_meram.h | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/video/sh_mobile_meram.c b/drivers/video/sh_mobile_meram.c index 371f129..cc71cbf 100644 --- a/drivers/video/sh_mobile_meram.c +++ b/drivers/video/sh_mobile_meram.c @@ -37,6 +37,14 @@ #define MEQSEL1 0x40 #define MEQSEL2 0x44 +struct sh_mobile_meram_priv { + void __iomem *base; + struct mutex lock; + unsigned long used_icb; + int used_meram_cache_regions; + unsigned long used_meram_cache[SH_MOBILE_MERAM_ICB_NUM]; +}; + /* settings */ #define MERAM_SEC_LINE 15 #define MERAM_LINE_WIDTH 2048 diff --git a/drivers/video/sh_mobile_meram.h b/drivers/video/sh_mobile_meram.h index 82c54fb..1615204 100644 --- a/drivers/video/sh_mobile_meram.h +++ b/drivers/video/sh_mobile_meram.h @@ -17,14 +17,6 @@ #define SH_MOBILE_MERAM_CACHE_OFFSET(p) ((p) >> 16) #define SH_MOBILE_MERAM_CACHE_SIZE(p) ((p) & 0xffff) -struct sh_mobile_meram_priv { - void __iomem *base; - struct mutex lock; - unsigned long used_icb; - int used_meram_cache_regions; - unsigned long used_meram_cache[SH_MOBILE_MERAM_ICB_NUM]; -}; - int sh_mobile_meram_alloc_icb(const struct sh_mobile_meram_cfg *cfg, int xres, int yres,