From patchwork Tue Mar 1 12:06:05 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maurus Cuelenaere X-Patchwork-Id: 598861 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p21C5xvO004106 for ; Tue, 1 Mar 2011 12:06:09 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756348Ab1CAMGI (ORCPT ); Tue, 1 Mar 2011 07:06:08 -0500 Received: from mail-ey0-f174.google.com ([209.85.215.174]:38915 "EHLO mail-ey0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756333Ab1CAMGI (ORCPT ); Tue, 1 Mar 2011 07:06:08 -0500 Received: by mail-ey0-f174.google.com with SMTP id 24so1629655eyx.19 for ; Tue, 01 Mar 2011 04:06:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:date:to:cc:message-id:in-reply-to:references :from:subject; bh=AQ2aaPWCbFtoaTCNfpCv5Ei4tV8o9UOCfXLip75NeBg=; b=odO/WebZ5b9UHOG49E/8tryT5OA4XVSVoeAoe7R2J2CXizT8PHULTnmNhFhMoBl5qi IM+UqTy/HXCgvmOLh4Ra/iNGeN+ia47jqqS1TthFa9QeTD1OwCg6iqJWbOl8XanQZuKi PXLKUUC9GPvjulGlB3XvsMYSOIakxzpIJI3Tk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:to:cc:message-id:in-reply-to:references:from:subject; b=OMNgBo3f48LxiHG2ARq0i+LA1efQgqjAqQ4iLyrC5BN1zHzg25fz4T9IoX0KIGLiUb OOrwOanh+MqWmDm/sf8VFz2cvAd62WLIOGc3/K9o6vVFocAeeHMpF3ODRuJxNCwzPYZB +oXMtO1O/AQlZxkKzgWbbSZhBOiL5P7utfJx0= Received: by 10.213.112.196 with SMTP id x4mr2490171ebp.21.1298981167452; Tue, 01 Mar 2011 04:06:07 -0800 (PST) Received: from maurus-desktop (78-22-96-2.access.telenet.be [78.22.96.2]) by mx.google.com with ESMTPS id t5sm4132552eeh.14.2011.03.01.04.06.05 (version=SSLv3 cipher=OTHER); Tue, 01 Mar 2011 04:06:07 -0800 (PST) Received: by maurus-desktop (sSMTP sendmail emulation); Tue, 1 Mar 2011 13:06:05 +0100 Date: Tue, 1 Mar 2011 13:06:05 +0100 To: linux-fbdev@vger.kernel.org Cc: Lars-Peter Clausen Message-Id: <1202f26b58f8dea782600827a158f08b1775953b.1298980528.git.mcuelenaere@gmail.com> In-Reply-To: References: From: Maurus Cuelenaere Subject: [PATCH 5/6] FBDEV: JZ4740: Get rid of enumeration value not handled in switch warnings Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@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]); Tue, 01 Mar 2011 12:06:09 +0000 (UTC) diff --git a/arch/mips/include/asm/mach-jz4740/jz4740_fb.h b/arch/mips/include/asm/mach-jz4740/jz4740_fb.h index eaaac43..d6c11f2 100644 --- a/arch/mips/include/asm/mach-jz4740/jz4740_fb.h +++ b/arch/mips/include/asm/mach-jz4740/jz4740_fb.h @@ -17,27 +17,25 @@ #include -enum jz4740_fb_lcd_type { - JZ_LCD_TYPE_GENERIC_16_BIT = 0, - JZ_LCD_TYPE_GENERIC_18_BIT = 0 | (1 << 4), - JZ_LCD_TYPE_SPECIAL_TFT_1 = 1, - JZ_LCD_TYPE_SPECIAL_TFT_2 = 2, - JZ_LCD_TYPE_SPECIAL_TFT_3 = 3, - JZ_LCD_TYPE_NON_INTERLACED_CCIR656 = 5, - JZ_LCD_TYPE_INTERLACED_CCIR656 = 7, - JZ_LCD_TYPE_SINGLE_COLOR_STN = 8, - JZ_LCD_TYPE_SINGLE_MONOCHROME_STN = 9, - JZ_LCD_TYPE_DUAL_COLOR_STN = 10, - JZ_LCD_TYPE_DUAL_MONOCHROME_STN = 11, - JZ_LCD_TYPE_8BIT_SERIAL = 12, +#define JZ_LCD_TYPE_GENERIC_16_BIT (0) +#define JZ_LCD_TYPE_GENERIC_18_BIT (0 | (1 << 4)) +#define JZ_LCD_TYPE_SPECIAL_TFT_1 (1) +#define JZ_LCD_TYPE_SPECIAL_TFT_2 (2) +#define JZ_LCD_TYPE_SPECIAL_TFT_3 (3) +#define JZ_LCD_TYPE_NON_INTERLACED_CCIR656 (5) +#define JZ_LCD_TYPE_INTERLACED_CCIR656 (7) +#define JZ_LCD_TYPE_SINGLE_COLOR_STN (8) +#define JZ_LCD_TYPE_SINGLE_MONOCHROME_STN (9) +#define JZ_LCD_TYPE_DUAL_COLOR_STN (10) +#define JZ_LCD_TYPE_DUAL_MONOCHROME_STN (11) +#define JZ_LCD_TYPE_8BIT_SERIAL (12) - JZ_SLCD_TYPE_PARALLEL_8_BIT = 1 | (1 << 5), - JZ_SLCD_TYPE_PARALLEL_16_BIT = 0 | (1 << 5), - JZ_SLCD_TYPE_PARALLEL_18_BIT = 2 | (1 << 5), - JZ_SLCD_TYPE_SERIAL_8_BIT = 1 | (3 << 5), - JZ_SLCD_TYPE_SERIAL_16_BIT = 0 | (3 << 5), - JZ_SLCD_TYPE_SERIAL_18_BIT = 2 | (3 << 5), -}; +#define JZ_SLCD_TYPE_PARALLEL_8_BIT (1 | (1 << 5)) +#define JZ_SLCD_TYPE_PARALLEL_16_BIT (0 | (1 << 5)) +#define JZ_SLCD_TYPE_PARALLEL_18_BIT (2 | (1 << 5)) +#define JZ_SLCD_TYPE_SERIAL_8_BIT (1 | (3 << 5)) +#define JZ_SLCD_TYPE_SERIAL_16_BIT (0 | (3 << 5)) +#define JZ_SLCD_TYPE_SERIAL_18_BIT (2 | (3 << 5)) #define JZ4740_FB_SPECIAL_TFT_CONFIG(start, stop) (((start) << 16) | (stop)) @@ -58,7 +56,7 @@ struct jz4740_fb_platform_data { struct fb_videomode *modes; unsigned int bpp; - enum jz4740_fb_lcd_type lcd_type; + unsigned int lcd_type; struct { uint32_t spl;