From nobody Tue Dec 16 14:57:07 2025 Received: from mxhk.zte.com.cn (mxhk.zte.com.cn [63.216.63.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 88E4A243387; Thu, 29 May 2025 02:20:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=63.216.63.35 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748485225; cv=none; b=EW/6TXtNzGwBKDvpkKU8qxSF5Kcvu8k797jEKHTt5fmEI+uKav8+qjWpyuUiGKlxSfH+VXX3YQUHnLjokbNOJGDK/cBGQn2gBDcGxCDc8f8970AOTMMIchehQO4HfeDcNURzVV/rRqWyHtYrY8bejbn7Z5CxQKrJT8IRV1gzDzU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748485225; c=relaxed/simple; bh=tEolrqcCuhXAu9I1vJ4rGsJwBc9CSCyq+vYYgFFWVSQ=; h=Date:Message-ID:Mime-Version:From:To:Cc:Subject:Content-Type; b=HkSBwhmwT+SqB73LkpE8BYZHrLgxXK+5HbY/fEGfYZZ3fR/ZH+q59Br0kKLEIahat6emXdSbyMWOJlZ4LTto1QZ7KLXY32UfHHck+WkULKjiJrQo7YPoNOzPa0mscWTv+VVSt+pFAq10FhZcKvBp/e66BpWL6gPPlThPBtUn6TM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zte.com.cn; spf=pass smtp.mailfrom=zte.com.cn; arc=none smtp.client-ip=63.216.63.35 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zte.com.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=zte.com.cn Received: from mse-fl1.zte.com.cn (unknown [10.5.228.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mxhk.zte.com.cn (FangMail) with ESMTPS id 4b797d2Qrpz5B1J6; Thu, 29 May 2025 10:20:13 +0800 (CST) Received: from xaxapp04.zte.com.cn ([10.99.98.157]) by mse-fl1.zte.com.cn with SMTP id 54T2K3oB033259; Thu, 29 May 2025 10:20:03 +0800 (+08) (envelope-from shao.mingyin@zte.com.cn) Received: from mapi (xaxapp05[null]) by mapi (Zmail) with MAPI id mid32; Thu, 29 May 2025 10:20:05 +0800 (CST) Date: Thu, 29 May 2025 10:20:05 +0800 (CST) X-Zmail-TransId: 2afc6837c4557a9-4fe71 X-Mailer: Zmail v1.0 Message-ID: <20250529102005168oXmW54srQ-rBCEFa12u1U@zte.com.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 From: To: Cc: , , , , , , , Subject: =?UTF-8?B?cG1kb21haW46IHN0YXJmaXZlOiBVc2Ugc3RyX29uX29mZigpIGhlbHBlciBpbiBqaDcxMTBfcG11X3NldF9zdGF0ZSgp?= X-MAIL: mse-fl1.zte.com.cn 54T2K3oB033259 X-Fangmail-Anti-Spam-Filtered: true X-Fangmail-MID-QID: 6837C45D.000/4b797d2Qrpz5B1J6 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Shao Mingyin Remove hard-coded strings by using the str_on_off() helper function. Signed-off-by: Shao Mingyin --- drivers/pmdomain/starfive/jh71xx-pmu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/pmdomain/starfive/jh71xx-pmu.c b/drivers/pmdomain/star= five/jh71xx-pmu.c index 74720c09a6e3..30c29ac9391f 100644 --- a/drivers/pmdomain/starfive/jh71xx-pmu.c +++ b/drivers/pmdomain/starfive/jh71xx-pmu.c @@ -12,6 +12,7 @@ #include #include #include +#include #include /* register offset */ @@ -155,7 +156,7 @@ static int jh7110_pmu_set_state(struct jh71xx_pmu_dev *= pmd, u32 mask, bool on) if (ret) { dev_err(pmu->dev, "%s: failed to power %s\n", - pmd->genpd.name, on ? "on" : "off"); + pmd->genpd.name, str_on_off(on)); return -ETIMEDOUT; } --=20 2.25.1