From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754911AbdA0N2C (ORCPT ); Fri, 27 Jan 2017 08:28:02 -0500 Received: from userp1050.oracle.com ([156.151.31.82]:26673 "EHLO userp1050.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754563AbdA0N1W (ORCPT ); Fri, 27 Jan 2017 08:27:22 -0500 Date: Fri, 27 Jan 2017 16:24:47 +0300 From: Dan Carpenter To: Johan Hovold Cc: mrossibellom@gmail.com, elder@kernel.org, gregkh@linuxfoundation.org, greybus-dev@lists.linaro.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] greybus: Fix coding stye error Message-ID: <20170127132447.GQ4201@mwanda> References: <1485511881-8693-1-git-send-email-mrossibellom@gmail.com> <20170127122930.GL4149@mwanda> <20170127123905.GF3560@localhost> <20170127124721.GP4201@mwanda> <20170127130806.GH3560@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170127130806.GH3560@localhost> User-Agent: Mutt/1.5.21 (2010-09-15) X-Source-IP: userp1040.oracle.com [156.151.31.81] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 27, 2017 at 02:08:06PM +0100, Johan Hovold wrote: > On Fri, Jan 27, 2017 at 03:47:21PM +0300, Dan Carpenter wrote: > > The name sucks is what I'm saying. Please fix it eventually. > > I disagree. The name uses a common prefix that reflects the object it is > working on. This should not be changed. As it is currently named, the > function is also self-documenting. Trying to abbreviate the name just to > meet a 80 col limit (when there are alternatives) is just silly. gb_interface_request_mode_switch() It's not self documenting because there are no verbs in that sentence. I guess in JAVA it would be considered good style. This is "Enterprise Quality" in the derogatory sense of the term. The prefix makes everything too long and doesn't add any value. We don't keep the 80 character limit because of small screens, we keep it to discourage this type of code. regards, dan carpenter