Skip to contentSkip to conversation

fsi: replace snprintf with sysfs_emit

PATCH New [email protected] 1 participant 1 message Jul 13, 2023 1 message not in the archive FSI

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 fsi: replace snprintf with sysfs_emit

coccinelle report:
./drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c:
479:9-17: WARNING: use scnprintf or sprintf

./drivers/fsi/fsi-master-ast-cf.c:1086:8-16: WARNING: use scnprintf or sprintf

---
 drivers/fsi/fsi-master-ast-cf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/fsi/fsi-master-ast-cf.c +1 -1
index 5f608ef8b53c..294ca962f569 100644
@@ -1083,7 +1083,7 @@ static ssize_t external_mode_show(struct device *dev,
 {
     struct fsi_master_acf *master = dev_get_drvdata(dev);
 
-    return snprintf(buf, PAGE_SIZE - 1, "%u\n",
+    return scnprintf(buf, PAGE_SIZE - 1, "%u\n",
             master->external_mode ? 1 : 0);
 }