[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID:
<ZQ0PR01MB130266C8DC79B041567E2262F2742@ZQ0PR01MB1302.CHNPR01.prod.partner.outlook.cn>
Date: Thu, 12 Jun 2025 01:12:05 +0000
From: Changhuang Liang <changhuang.liang@...rfivetech.com>
To: "shao.mingyin@....com.cn" <shao.mingyin@....com.cn>,
"ulf.hansson@...aro.org" <ulf.hansson@...aro.org>
CC: "geert+renesas@...der.be" <geert+renesas@...der.be>,
"magnus.damm@...il.com" <magnus.damm@...il.com>, "heiko@...ech.de"
<heiko@...ech.de>, "krzk@...nel.org" <krzk@...nel.org>,
"alim.akhtar@...sung.com" <alim.akhtar@...sung.com>, Walker Chen
<walker.chen@...rfivetech.com>, "sebastian.reichel@...labora.com"
<sebastian.reichel@...labora.com>, "detlev.casanova@...labora.com"
<detlev.casanova@...labora.com>, "finley.xiao@...k-chips.com"
<finley.xiao@...k-chips.com>, "shawn.lin@...k-chips.com"
<shawn.lin@...k-chips.com>, "pgwipeout@...il.com" <pgwipeout@...il.com>,
"qiu.yutan@....com.cn" <qiu.yutan@....com.cn>, "linux-pm@...r.kernel.org"
<linux-pm@...r.kernel.org>, "linux-renesas-soc@...r.kernel.org"
<linux-renesas-soc@...r.kernel.org>, "linux-kernel@...r.kernel.org"
<linux-kernel@...r.kernel.org>, "linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>, "linux-rockchip@...ts.infradead.org"
<linux-rockchip@...ts.infradead.org>, "linux-samsung-soc@...r.kernel.org"
<linux-samsung-soc@...r.kernel.org>, "yang.yang29@....com.cn"
<yang.yang29@....com.cn>, "xu.xin16@....com.cn" <xu.xin16@....com.cn>,
"yang.tao172@....com.cn" <yang.tao172@....com.cn>, "ye.xingchen@....com.cn"
<ye.xingchen@....com.cn>
Subject:
回复: [PATCH v2] pmdomain: Use str_enable_disable-like helpers
> From: Shao Mingyin <shao.mingyin@....com.cn>
>
> Replace ternary (condition ? "enable" : "disable") syntax and ternary
> (condition ? "on" : "off") syntax with helpers from string_choices.h because:
> 1. Simple function call with one argument is easier to read. Ternary
> operator has three arguments and with wrapping might lead to quite
> long code.
> 2. Is slightly shorter thus also easier to read.
> 3. It brings uniformity in the text - same string.
> 4. Allows deduping by the linker, which results in a smaller binary
> file.
>
> Signed-off-by: Shao Mingyin <shao.mingyin@....com.cn>
For starfive:
Reviewed-by: Changhuang Liang <changhuang.liang@...rfivetech.com>
Powered by blists - more mailing lists