From nobody Thu Dec 18 09:59:10 2025 Received: from out-173.mta1.migadu.com (out-173.mta1.migadu.com [95.215.58.173]) (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 5C2DA240245 for ; Mon, 13 Jan 2025 15:24:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.173 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736781877; cv=none; b=K68Q5vhK51d9IdpLZUUZws/TKmELTl80e1ozf7EfS9vFkbZD45W+inBrdk0/xD8D4d4rebQnOOVBbSgt1+eIQqNyOkqnDav+Yq4r3LB0awhPCcFlveqbH+1k+4pc//BNDf/u2XgtW8WB0gvmqknEba5FOyIh5Bym6RMtbx5ErOU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736781877; c=relaxed/simple; bh=BszdlMEjmPU6bXtXwuZsyPGiZ+9/TmuMvG5IQhPskfg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VZuGiZKalKjbHi5RfKfjRV+n0Eh60yJyPxcuqifCqvkmCvemZejS0I0LP6T9qrrCAwR3kQN+eCVuZllf1O8k2vkynz3eM9GUFNNa4uJdfiA+AV3htYuM50RcTvUQmf1deto94nthYb3fwXfiNjS+zAUToDc877EO8JR6x2L+C4o= 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=i8//5h+5; arc=none smtp.client-ip=95.215.58.173 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="i8//5h+5" 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=1736781873; 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=QQNpWrbqUWe97igo6yAMoWQGxn0dgLOn1PoKsly3zVU=; b=i8//5h+5VtGPPm+Xhxf6GExuddzChbTjrv+mCRovKTe7H/yONVJ9SCz8S8ZuV0VhfGUrD7 BKkRRjIrNmyhOUfNP0QOIEMCbgH3JQhQNfDNC/Px3/+w4cDGHBPyiuwNmltymssZHst23G Bk+XyhW2bmyD8Ezu1jEkxkDOg/fHqJM= From: Thorsten Blum To: "James E.J. Bottomley" , "Martin K. Petersen" Cc: Thorsten Blum , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] scsi: aha1740: Use str_enabled_disabled() helper Date: Mon, 13 Jan 2025 16:23:38 +0100 Message-ID: <20250113152338.473477-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_enabled_disabled() helper function. Use pr_info() instead of printk(KERN_INFO) to silence multiple checkpatch warnings. Signed-off-by: Thorsten Blum --- drivers/scsi/aha1740.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/scsi/aha1740.c b/drivers/scsi/aha1740.c index be7ebbbb9ba8..c21286eaa8a1 100644 --- a/drivers/scsi/aha1740.c +++ b/drivers/scsi/aha1740.c @@ -114,9 +114,9 @@ static int aha1740_show_info(struct seq_file *m, struct= Scsi_Host *shpnt) { struct aha1740_hostdata *host =3D HOSTDATA(shpnt); seq_printf(m, "aha174x at IO:%lx, IRQ %d, SLOT %d.\n" - "Extended translation %sabled.\n", + "Extended translation %s.\n", shpnt->io_port, shpnt->irq, host->edev->slot, - host->translation ? "en" : "dis"); + str_enabled_disabled(host->translation)); return 0; } =20 @@ -578,10 +578,10 @@ static int aha1740_probe (struct device *dev) outb(G2CNTRL_HRST, G2CNTRL(slotbase)); outb(0, G2CNTRL(slotbase)); } - printk(KERN_INFO "Configuring slot %d at IO:%x, IRQ %u (%s)\n", - edev->slot, slotbase, irq_level, irq_type ? "edge" : "level"); - printk(KERN_INFO "aha174x: Extended translation %sabled.\n", - translation ? "en" : "dis"); + pr_info("Configuring slot %d at IO:%x, IRQ %u (%s)\n", + edev->slot, slotbase, irq_level, irq_type ? "edge" : "level"); + pr_info("aha174x: Extended translation %s.\n", + str_enabled_disabled(translation)); shpnt =3D scsi_host_alloc(&aha1740_template, sizeof(struct aha1740_hostdata)); if(shpnt =3D=3D NULL) --=20 2.47.1