From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752775AbbBMJGG (ORCPT ); Fri, 13 Feb 2015 04:06:06 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:44269 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751910AbbBMJGA (ORCPT ); Fri, 13 Feb 2015 04:06:00 -0500 Date: Fri, 13 Feb 2015 12:05:43 +0300 From: Dan Carpenter To: Tolga Ceylan Cc: Greg Kroah-Hartman , "David S. Miller" , Dilek Uzulmez , Ning Zhou , Gulsah Kose , Tom Gundersen , Scott Weir , Monam Agarwal , Peter P Waskiewicz Jr , Uma Sharma , Josh Triplett , Daniel Ngu , Robert Nachlinger , Ebru Akagunduz , Octavian Purdila , Kiran Padwal , Alexey Khoroshilov , Aybuke Ozdemir , Cihangir Akturk , Abel Moyo , Himangi Saraogi , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] Staging: gdm724x: code style improvements Message-ID: <20150213090543.GE5155@mwanda> References: <1423817763-32214-1-git-send-email-tolga.ceylan@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1423817763-32214-1-git-send-email-tolga.ceylan@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Source-IP: ucsinet21.oracle.com [156.151.31.93] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 13, 2015 at 12:56:03AM -0800, Tolga Ceylan wrote: > Corrections based on checkpatch.pl with --strict. > 1) Lines over 80 were corrected > 2) Alignment should match open paranthesis cases corrected > 3) Comparisons such as if (x == NULL) rewritten as if (!x) > 4) CamelCase variables renamed > 5) Missing spaces between operators added > 6) Unnecessary blank lines removed > 7) in mem alloc arguments sizeof(struct foo) rewritten as sizeof(*foo_obj) > You're doing too many things at one. This should probably be split into 7 patches. > u16 gdm_cpu_to_dev16(struct gdm_endian *ed, u16 x) > @@ -39,7 +38,7 @@ u16 gdm_cpu_to_dev16(struct gdm_endian *ed, u16 x) > if (ed->dev_ed == ed->host_ed) > return x; > > - return Endian16_Swap(x); > + return ENDIAN16_SWAP(x); > } All the changes are good except these. We have standard macros cpu_to_be16()/le16() and back for these. regards, dan carpenter