Re: [PATCH 2/4] staging: rtl8723bs: rename local vars in phy_tx_power_limit_to_index()

From: Greg Kroah-Hartman

Date: Thu Oct 01 2026 - 05:43:47 EST


On Sat, Sep 26, 2026 at 10:12:25PM -0300, Leonardo Martins Martins wrote:
> In phy_tx_power_limit_to_index(), there are many mixed-case names and
> needlessly verbose names (such as the iterators, in other realtek
> drivers they are shortened like in this patch, by renaming them,
> accessing the TxPwrLimit_2_4G table takes less space), rename them.
>
> Signed-off-by: Leonardo Martins Martins <dev.lmmrtns@xxxxxxxxx>
> ---
> Renamed Variables:
> pHalData -> hal_data
> Adapter -> adapter
> BW40PwrBasedBm2_4G -> pwr_base
> regulation -> reg

This is ok, as is:

> channel -> ch

and there is nothing wrong with "channel", please keep both of these.

thanks,

greg k-h