Skip to content

Commit 0ce4a0d

Browse files
salah-trikifloatious
authored andcommitted
ata: sata_via: Use str_up_down() helper in vt6420_prereset()
Remove hard-coded strings by using the str_up_down() helper function. Signed-off-by: Salah Triki <salah.triki@gmail.com> Reviewed-by: Damien Le Moal <dlemoal@kernel.org> Link: https://lore.kernel.org/r/20250220080757.87278-1-salah.triki@gmail.com Signed-off-by: Niklas Cassel <cassel@kernel.org>
1 parent deca423 commit 0ce4a0d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/ata/sata_via.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include <scsi/scsi_cmnd.h>
2626
#include <scsi/scsi_host.h>
2727
#include <linux/libata.h>
28+
#include <linux/string_choices.h>
2829

2930
#define DRV_NAME "sata_via"
3031
#define DRV_VERSION "2.6"
@@ -359,7 +360,7 @@ static int vt6420_prereset(struct ata_link *link, unsigned long deadline)
359360

360361
ata_port_info(ap,
361362
"SATA link %s 1.5 Gbps (SStatus %X SControl %X)\n",
362-
online ? "up" : "down", sstatus, scontrol);
363+
str_up_down(online), sstatus, scontrol);
363364

364365
/* SStatus is read one more time */
365366
svia_scr_read(link, SCR_STATUS, &sstatus);

0 commit comments

Comments
 (0)