Skip to content

Commit

Permalink
ata: sata_via: Use str_up_down() helper in vt6420_prereset()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Salah Triki authored and Niklas Cassel committed Feb 20, 2025
1 parent deca423 commit 0ce4a0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/ata/sata_via.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <scsi/scsi_cmnd.h>
#include <scsi/scsi_host.h>
#include <linux/libata.h>
#include <linux/string_choices.h>

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

ata_port_info(ap,
"SATA link %s 1.5 Gbps (SStatus %X SControl %X)\n",
online ? "up" : "down", sstatus, scontrol);
str_up_down(online), sstatus, scontrol);

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

0 comments on commit 0ce4a0d

Please sign in to comment.