[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.20.1702230804410.2203@hadrien>
Date: Thu, 23 Feb 2017 08:08:14 +0100 (CET)
From: Julia Lawall <julia.lawall@...6.fr>
To: Tahia Khan <tahia.khan@...il.com>
cc: arend.vanspriel@...adcom.com, outreachy-kernel@...glegroups.com,
aditya.shankar@...rochip.com, ganesh.krishna@...rochip.com,
gregkh@...uxfoundation.org, linux-wireless@...r.kernel.org,
devel@...verdev.osusl.org, linux-kernel@...r.kernel.org
Subject: Re: [Outreachy kernel] Re: [PATCH v2] staging: wilc1000: renames
struct tstrRSSI and its members u8Index, u8Full
> Thanks for the feedback Arend, I really appreciate it. I've decided to go with
> these changes in my follow-up patch request:
>
> - rename tstrRSSI to 'rssi_history_buffer' as Aren suggested since it makes the
> purpose of the struct clear
> - remove Hungarian notation from all tstrRSSI members' names
> - change type of u8Full to bool since it's only ever 1 or 0
> - change name of as8RSSI to 'samples' since this buffer is only ever used to
> compute an average, and the "rssi" prefix is implied by the struct's name
> - rename str_rssi to rssi_history in the network_info struct for clarity
>
> Since my reasoning for these changes deviates from just "renaming to
> avoid camel casing" (as in the original checkpatch.pl warning), would it still
> make sense to submit all this in a single patch? I know my commit message
> needs to change but I wonder if this is too much detail.
I would strongly suggest not to do it all in a single patch. Even if these
changes are not very complicated conceptually, there is always a chance of
doing things wrong. Taking the problems one by one will improve the chance
that the result is correct. Also, the results will be easier for you and
others to review if each patch only does one thing. And easier to revert
if needed later if something goes wrong.
julia
Powered by blists - more mailing lists