Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 54B3AC61DA4 for ; Sat, 11 Mar 2023 08:53:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230111AbjCKIxg (ORCPT ); Sat, 11 Mar 2023 03:53:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230095AbjCKIxd (ORCPT ); Sat, 11 Mar 2023 03:53:33 -0500 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6215E1EBC4 for ; Sat, 11 Mar 2023 00:53:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=c1iabbZQ4Nv+oLa1cSDitovBVqdnTKgDmVkS+5QeAEU=; b=IwH2RC9qk70rhqR4PZ5H9C6fGKfg33PukobAKfrEXyWOTXpMtwVK8gTw W/p00W0HTPJAWdIMKnN+YBr2C0P85gUmIk9WV5TK6nGfQFGOXhjaaBHwA xBzY+F6NaQk0T6n8rUNuOwvU+bqot0Mn8HJQ5X8tDaFyj1zpsNvolvB+9 A=; Authentication-Results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=julia.lawall@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="5.98,252,1673910000"; d="scan'208";a="96627825" Received: from 231.85.89.92.rev.sfr.net (HELO hadrien) ([92.89.85.231]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Mar 2023 09:53:30 +0100 Date: Sat, 11 Mar 2023 09:53:29 +0100 (CET) From: Julia Lawall X-X-Sender: jll@hadrien To: Kloudifold cc: Julia Lawall , teddy.wang@siliconmotion.com, sudipm.mukherjee@gmail.com, gregkh@linuxfoundation.org, linux-staging@lists.linux.dev, outreachy@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: sm750: Rename camel case functions in sm750_cursor.* In-Reply-To: Message-ID: References: User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 11 Mar 2023, Kloudifold wrote: > > On Sat, 11 Mar 2023 at 05:39, Julia Lawall wrote: > > > > You don't need the filename in the subject. > > > > On Sat, 11 Mar 2023, Kloudifold wrote: > > > > > This patch fixes the "CHECK: Avoid CamelCase" reported by > > > checkpatch.pl by renaming camel case functions. > > > > > > Signed-off-by: Kloudifold > > > --- > > > drivers/staging/sm750fb/sm750_cursor.c | 14 +++++++------- > > > drivers/staging/sm750fb/sm750_cursor.h | 12 ++++++------ > > > 2 files changed, 13 insertions(+), 13 deletions(-) > > > > > > diff --git a/drivers/staging/sm750fb/sm750_cursor.c b/drivers/staging/sm750fb/sm750_cursor.c > > > index 43e6f52c2..ff643e33f 100644 > > > --- a/drivers/staging/sm750fb/sm750_cursor.c > > > +++ b/drivers/staging/sm750fb/sm750_cursor.c > > > @@ -58,13 +58,13 @@ void sm750_hw_cursor_disable(struct lynx_cursor *cursor) > > > poke32(HWC_ADDRESS, 0); > > > } > > > > > > -void sm750_hw_cursor_setSize(struct lynx_cursor *cursor, int w, int h) > > > +void sm750_hw_cursor_set_size(struct lynx_cursor *cursor, int w, int h) > > > { > > > cursor->w = w; > > > cursor->h = h; > > > } > > > > > > -void sm750_hw_cursor_setPos(struct lynx_cursor *cursor, int x, int y) > > > +void sm750_hw_cursor_set_pos(struct lynx_cursor *cursor, int x, int y) > > > { > > > u32 reg; > > > > > > @@ -73,7 +73,7 @@ void sm750_hw_cursor_setPos(struct lynx_cursor *cursor, int x, int y) > > > poke32(HWC_LOCATION, reg); > > > } > > > > > > -void sm750_hw_cursor_setColor(struct lynx_cursor *cursor, u32 fg, u32 bg) > > > +void sm750_hw_cursor_set_color(struct lynx_cursor *cursor, u32 fg, u32 bg) > > > { > > > u32 reg = (fg << HWC_COLOR_12_2_RGB565_SHIFT) & > > > HWC_COLOR_12_2_RGB565_MASK; > > > @@ -82,8 +82,8 @@ void sm750_hw_cursor_setColor(struct lynx_cursor *cursor, u32 fg, u32 bg) > > > poke32(HWC_COLOR_3, 0xffe0); > > > } > > > > > > -void sm750_hw_cursor_setData(struct lynx_cursor *cursor, u16 rop, > > > - const u8 *pcol, const u8 *pmsk) > > > +void sm750_hw_cursor_set_data(struct lynx_cursor *cursor, u16 rop, > > > + const u8 *pcol, const u8 *pmsk) > > > > The indentation of the second line looks random. It's not a multiple of > > the tabs, and it doesn't line up with the right side of the (. So there > > doesn't seem to be any need to change it for this patch. > > > > Acturally, if you set tabs be 8 characters as it said in Linux kernel coding > style, it lines up with the right side of the (. > > The checkpatch.pl didn't say "CHECK: Alignment should match open parenthesis". > > It shows up didn't line up the ( may because tabs are 4 characters in > mails. OK, I see, thanks. I think it is the + or - at the beginning of the line that causes patches to look odd in this respect sometimes. > So, should I just change the subject of the email? If I want to resend this patch, > should I make it a reply to this current discussion string or something else? v2. See the tutorial. julia