Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754003AbbFOGhG (ORCPT ); Mon, 15 Jun 2015 02:37:06 -0400 Received: from smtprelay0109.hostedemail.com ([216.40.44.109]:43557 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752759AbbFOGg7 (ORCPT ); Mon, 15 Jun 2015 02:36:59 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::,RULES_HIT:41:355:379:541:599:960:968:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1538:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3872:3874:4321:5007:6261:7901:7903:10004:10400:10471:10848:11232:11658:11914:12296:12517:12519:12740:13069:13161:13229:13255:13311:13357:21080,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0 X-HE-Tag: wool91_1f968e0d6d31f X-Filterd-Recvd-Size: 1745 Message-ID: <1434350216.2507.39.camel@perches.com> Subject: Re: doubt about sm7xxfb (was: Re: [PATCH v4 0/7] staging: fsl-mc: New functionality to the MC bus driver) From: Joe Perches To: Sudip Mukherjee Cc: Greg KH , devel@driverdev.osuosl.org, linux-fbdev@vger.kernel.org, tomi.valkeinen@ti.com, linux-kernel@vger.kernel.org, dan.carpenter@oracle.com Date: Sun, 14 Jun 2015 23:36:56 -0700 In-Reply-To: <20150615051712.GA21087@sudip-PC> References: <1433887148-2310-1-git-send-email-German.Rivera@freescale.com> <20150613001849.GB5234@kroah.com> <20150613084618.GA6492@sudip-PC> <20150613162839.GA14842@kroah.com> <1434214625.2507.9.camel@perches.com> <20150615051712.GA21087@sudip-PC> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.12.11-0ubuntu3 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 826 Lines: 18 On Mon, 2015-06-15 at 10:47 +0530, Sudip Mukherjee wrote: > On Sat, Jun 13, 2015 at 09:57:05AM -0700, Joe Perches wrote: > > It's unfortunate there are so many #ifdef __BIG_ENDIAN uses. > instead of #ifdef __BIG_ENDIAN can i then use a bool flag to check by if-else? I think that'd be worse. Moving the #ifdef into the .h may be better, but , whatever works well enough. Another thing may be to move the vgamode array declaration in fb7xx.h to the .c file and make it const and remove the #define numvgamodes and just use ARRAY_SIZE directly in the one place it's used. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/