From nobody Sat Feb 7 22:34:16 2026 Received: from out-174.mta1.migadu.com (out-174.mta1.migadu.com [95.215.58.174]) (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 93D5C182D0 for ; Mon, 26 Jan 2026 00:48:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769388489; cv=none; b=cPkYG/wF2TmCFXcORNJ5XJmkyWccDvGC2mXk3I3Z/VP1YQcy3DBRTYOwIwD7M8SNlxL+Qm+kV8NbdLungw+/b5lT9qHHiW1nbLdE3X57mj7Y9idHuaSFuncAolDuvvUo0xmvqlKpxkt5KFRNP8GNK8KdP2Ayj3RKDjhGDCGWU6c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769388489; c=relaxed/simple; bh=77ejVWm3RqaunBnqTtyiE17J+Kn+MrZpFgEM6nArHDI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tCok4365uZvc8TA9SIgBzdcXMS9hgkim9XSKtVKyroLA3Ps5X3yNowGYdwhzFCCIF/HEcXgAo74tw0atcFe3SpsfR+X/EHjZbu8oq6Mb4viNO5oi0q4oLAUxvm1aO01/qMU5ohYUvcpvw3WyHAn5FUNsrl/toHn4bplaNj7Jjz4= 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=bF1gj8Uq; arc=none smtp.client-ip=95.215.58.174 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="bF1gj8Uq" 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=1769388475; 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=bNA3ZpqetyMD8oFtPWDLnd8bAEY7gRxY838rg7405uM=; b=bF1gj8Uq2tiscl8DvfjxIWhmnIALlj+1SVOex6JcKPn3J1SsOWXKgya7EifkSVxk+BPkc5 AWajSdxL9QEBeEYfSylzhaMLiow4TvsLGLQssGbSUVrt0nj55Qe8eDGXZAq7NbdlJf0wfq iFFI8DAjgdP5vNYbRMvtfbJFRpKuHTc= From: Thorsten Blum To: Moritz Fischer , Xu Yilun , Tom Rix Cc: Thorsten Blum , linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH RESEND] fpga: bridge: Use str_enabled_disabled helper in state_show Date: Mon, 26 Jan 2026 01:47:48 +0100 Message-ID: <20260126004748.210857-1-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" Replace hard-coded strings with the str_enabled_disabled() helper. This unifies the output and helps the linker with deduplication, which can result in a smaller binary. Signed-off-by: Thorsten Blum --- drivers/fpga/fpga-bridge.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/fpga/fpga-bridge.c b/drivers/fpga/fpga-bridge.c index 8ef395b49bf8..0c54e415fa5a 100644 --- a/drivers/fpga/fpga-bridge.c +++ b/drivers/fpga/fpga-bridge.c @@ -12,6 +12,7 @@ #include #include #include +#include =20 static DEFINE_IDA(fpga_bridge_ida); static const struct class fpga_bridge_class; @@ -305,7 +306,7 @@ static ssize_t state_show(struct device *dev, return state; } =20 - return sysfs_emit(buf, "%s\n", state ? "enabled" : "disabled"); + return sysfs_emit(buf, "%s\n", str_enabled_disabled(state)); } =20 static DEVICE_ATTR_RO(name); --=20 Thorsten Blum GPG: 1D60 735E 8AEF 3BE4 73B6 9D84 7336 78FD 8DFE EAD4