projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0667391
)
ata: ahci: use sysfs_emit()
author
Damien Le Moal
<damien.lemoal@opensource.wdc.com>
Thu, 2 Dec 2021 06:02:17 +0000
(15:02 +0900)
committer
Damien Le Moal
<damien.lemoal@opensource.wdc.com>
Tue, 4 Jan 2022 11:00:12 +0000
(20:00 +0900)
Use sysfs_emit() instead of sprintf in remapped_nvme_show().
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
drivers/ata/ahci.c
patch
|
blob
|
history
diff --git
a/drivers/ata/ahci.c
b/drivers/ata/ahci.c
index 1e1167e725a407f430fdb92b47585892a77ef1ef..98d04a78045850aa92affe8a6bd140a432346f6f 100644
(file)
--- a/
drivers/ata/ahci.c
+++ b/
drivers/ata/ahci.c
@@
-1657,7
+1657,7
@@
static ssize_t remapped_nvme_show(struct device *dev,
struct ata_host *host = dev_get_drvdata(dev);
struct ahci_host_priv *hpriv = host->private_data;
- return s
printf
(buf, "%u\n", hpriv->remapped_nvme);
+ return s
ysfs_emit
(buf, "%u\n", hpriv->remapped_nvme);
}
static DEVICE_ATTR_RO(remapped_nvme);