From nobody Sun Feb 8 21:26:28 2026 Received: from out-175.mta1.migadu.com (out-175.mta1.migadu.com [95.215.58.175]) (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 025DC189F42 for ; Thu, 26 Dec 2024 23:11:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.175 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735254699; cv=none; b=XSqNFnafkZzmppEj6HDeRup8tg9AMFyjBmtT30Q++I6sCtr3VPEbLRjXbzCEn5mkUicfhkfPJn9SwXupyZNjp+QF0OkQy6ahw7oBcguJsixBt4mgJVnftTVjWleilAzjAEwsg8K1d1YRxF9fWRq5jYGMK6WP5iDxrg2jpLKzSQw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735254699; c=relaxed/simple; bh=fyq5hcxQjgguw2NPoBSX6OSpXEdCvqMPj0ts2E+ANFI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=U0JY52ati2fckFq+W4k1HHxoIuveqykcYhKRHK634teQDRyBC/EwJn36mpzhwpwKRVk3rkvr1qqgtlhYBHjJWkUOFBykOoO0tJTnyq9vlcyipe3o2CKNT0KpGaPbbjMM/uORbflZ+VJklzHVnICifc2g6bqq0TPcETpY5kfyCzY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=f7rTtqa+; arc=none smtp.client-ip=95.215.58.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="f7rTtqa+" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1735254694; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=53XDtA867xd9JOVC6cDsgqiASKw81mcRiOr1i5b2wTA=; b=f7rTtqa+AqYRs0hNAMfoel3FJlEcahbOfQyQz6n6PmhiVKc4LCfr4/GdZbn0AIk/VvzM4B Ruoc1zMwWXEAe56gG5BBrmsDwc6HR4NUXcbbNb5MudsASWnAgqIi3TKdSOOGuZz5nn5cYs xXIT16LHnv4uRyvBMgT98qaBDYbhyAk= From: Thorsten Blum To: Andrew Lunn , Sebastian Hesselbarth , Gregory Clement , Russell King Cc: Thorsten Blum , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: orion/gpio: Use str_hi_lo() and str_lo_hi() helpers Date: Fri, 27 Dec 2024 00:10:52 +0100 Message-ID: <20241226231052.566363-2-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" Remove hard-coded strings by using the str_hi_lo() and str_lo_hi() helper functions. Signed-off-by: Thorsten Blum --- arch/arm/plat-orion/gpio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/plat-orion/gpio.c b/arch/arm/plat-orion/gpio.c index 595e9cb33c1d..31cc42345b82 100644 --- a/arch/arm/plat-orion/gpio.c +++ b/arch/arm/plat-orion/gpio.c @@ -466,14 +466,14 @@ static void orion_gpio_dbg_show(struct seq_file *s, s= truct gpio_chip *chip) =20 if (is_out) { seq_printf(s, " out %s %s\n", - out & msk ? "hi" : "lo", + str_hi_lo(out & msk), blink & msk ? "(blink )" : ""); continue; } =20 seq_printf(s, " in %s (act %s) - IRQ", - (data_in ^ in_pol) & msk ? "hi" : "lo", - in_pol & msk ? "lo" : "hi"); + str_hi_lo((data_in ^ in_pol) & msk), + str_lo_hi(in_pol & msk)); if (!((edg_msk | lvl_msk) & msk)) { seq_puts(s, " disabled\n"); continue; --=20 2.47.1