Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753151Ab3DKEej (ORCPT ); Thu, 11 Apr 2013 00:34:39 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:50558 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753088Ab3DKEeg (ORCPT ); Thu, 11 Apr 2013 00:34:36 -0400 X-AuditID: cbfee68d-b7f786d000005188-68-51663d5bdfe3 From: Jingoo Han To: "'Arnd Bergmann'" , linux-arm-kernel@lists.infradead.org Cc: "'Tomi Valkeinen'" , linux-kernel@vger.kernel.org, "'Kukjin Kim'" , linux-samsung-soc@vger.kernel.org, linux-fbdev@vger.kernel.org, "'Jingoo Han'" References: <1365638712-1028578-1-git-send-email-arnd@arndb.de> <1365638712-1028578-14-git-send-email-arnd@arndb.de> In-reply-to: <1365638712-1028578-14-git-send-email-arnd@arndb.de> Subject: Re: [PATCH 13/30] video/s3c: move platform_data out of arch/arm Date: Thu, 11 Apr 2013 13:34:34 +0900 Message-id: <003001ce366d$de38c280$9aaa4780$%han@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac42SHpvEpDekeWjQq2dvIBR/FGzVAAJQatg Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrOIsWRmVeSWpSXmKPExsVy+t8zA91o27RAg3WrWSz+TjrGbvHykKbF 5YWXWC16F1xls9j0+BqrxYm+D6wWl3fNYbOYcX4fk8X6+bfYHDg9fv+axOixeUm9R9+WVYwe x29sZ/L4vEkugDWKyyYlNSezLLVI3y6BK6Nph3bBS72KY1vfsDYwtql2MXJySAiYSDycv4kR whaTuHBvPVsXIxeHkMAyRokjH5ewwxRd7XrADGILCUxnlLjbzQJR9ItRomldA1iCTUBN4suX w2ANIgKeEmdOLgArYha4wSjRPeMdaxcjB1BHmcSBbn+QGk4BR4n7n2+C1QsLe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SLCSTZiGZNAtJywJGllWMoqkFyQXFSem5 RnrFibnFpXnpesn5uZsYwWnimfQOxlUNFocYBTgYlXh4TzSkBgqxJpYVV+YeYpTgYFYS4eXa CRTiTUmsrEotyo8vKs1JLT7EmAz050RmKdHkfGAKyyuJNzQ2MTOyNDKzMDIxNydNWEmc92Cr daCQQHpiSWp2ampBahHMFiYOTqkGRov5+UJP1q/dprr/V/8x5qVnb1+qTNx6rczqsqrIuyk6 IgtKj+/mvzqt7vWC/c+dLrs8DmeSvD1ZwzRDZ4vwYf3DWaeZJObsDUxbuIW9+0naotmrboQl uzKkt91b+HW26wOLe0vkb2X/Ef/iE3oo8krwjEatRsmLr9gUi4xE2V63qxaz1yQksyixFGck GmoxFxUnAgA36SYLVwMAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 6069 Lines: 174 On Thursday, April 11, 2013 9:05 AM, Arnd Bergmann wrote: > > The s3c-fb driver requires header files from the samsung platforms > to find its platform_data definition, but this no longer works on > multiplatform kernels, so let's move the data into a new header > file under include/linux/platform_data. > > Signed-off-by: Arnd Bergmann > Cc: linux-fbdev@vger.kernel.org > Cc: Jingoo Han CC'ed Tomi Valkeinen. Hi Arnd, It looks good. Thank you for your patch. :) Acked-by: Jingoo Han Best regards, Jingoo Han > --- > arch/arm/plat-samsung/include/plat/fb.h | 50 +----------------------------- > drivers/video/s3c-fb.c | 3 +- > include/linux/platform_data/video_s3c.h | 54 +++++++++++++++++++++++++++++++++ > 3 files changed, 56 insertions(+), 51 deletions(-) > create mode 100644 include/linux/platform_data/video_s3c.h > > diff --git a/arch/arm/plat-samsung/include/plat/fb.h b/arch/arm/plat-samsung/include/plat/fb.h > index b885322..9ae5072 100644 > --- a/arch/arm/plat-samsung/include/plat/fb.h > +++ b/arch/arm/plat-samsung/include/plat/fb.h > @@ -15,55 +15,7 @@ > #ifndef __PLAT_S3C_FB_H > #define __PLAT_S3C_FB_H __FILE__ > > -/* S3C_FB_MAX_WIN > - * Set to the maximum number of windows that any of the supported hardware > - * can use. Since the platform data uses this for an array size, having it > - * set to the maximum of any version of the hardware can do is safe. > - */ > -#define S3C_FB_MAX_WIN (5) > - > -/** > - * struct s3c_fb_pd_win - per window setup data > - * @xres : The window X size. > - * @yres : The window Y size. > - * @virtual_x: The virtual X size. > - * @virtual_y: The virtual Y size. > - */ > -struct s3c_fb_pd_win { > - unsigned short default_bpp; > - unsigned short max_bpp; > - unsigned short xres; > - unsigned short yres; > - unsigned short virtual_x; > - unsigned short virtual_y; > -}; > - > -/** > - * struct s3c_fb_platdata - S3C driver platform specific information > - * @setup_gpio: Setup the external GPIO pins to the right state to transfer > - * the data from the display system to the connected display > - * device. > - * @vidcon0: The base vidcon0 values to control the panel data format. > - * @vidcon1: The base vidcon1 values to control the panel data output. > - * @vtiming: Video timing when connected to a RGB type panel. > - * @win: The setup data for each hardware window, or NULL for unused. > - * @display_mode: The LCD output display mode. > - * > - * The platform data supplies the video driver with all the information > - * it requires to work with the display(s) attached to the machine. It > - * controls the initial mode, the number of display windows (0 is always > - * the base framebuffer) that are initialised etc. > - * > - */ > -struct s3c_fb_platdata { > - void (*setup_gpio)(void); > - > - struct s3c_fb_pd_win *win[S3C_FB_MAX_WIN]; > - struct fb_videomode *vtiming; > - > - u32 vidcon0; > - u32 vidcon1; > -}; > +#include > > /** > * s3c_fb_set_platdata() - Setup the FB device with platform data. > diff --git a/drivers/video/s3c-fb.c b/drivers/video/s3c-fb.c > index 968a625..2e7991c 100644 > --- a/drivers/video/s3c-fb.c > +++ b/drivers/video/s3c-fb.c > @@ -24,10 +24,9 @@ > #include > #include > #include > +#include > > #include