[PATCH] fsi: aspeed: convert cfam_reset to DEVICE_ATTR_WO()

Chen Jung Ku ku.loong at gapp.nthu.edu.tw
Thu Apr 30 14:43:27 PDT 2026


Replace manual DEVICE_ATTR() definition with DEVICE_ATTR_WO()
for the write-only cfam_reset attribute.

No functional change.

Signed-off-by: Chen Jung Ku <ku.loong at gapp.nthu.edu.tw>
---
 drivers/fsi/fsi-master-aspeed.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/fsi/fsi-master-aspeed.c b/drivers/fsi/fsi-master-aspeed.c
index aa1380cdff33..3b4a0e821c08 100644
--- a/drivers/fsi/fsi-master-aspeed.c
+++ b/drivers/fsi/fsi-master-aspeed.c
@@ -462,7 +462,7 @@ static ssize_t cfam_reset_store(struct device *dev, struct device_attribute *att
 	return count;
 }
 
-static DEVICE_ATTR(cfam_reset, 0200, NULL, cfam_reset_store);
+static DEVICE_ATTR_WO(cfam_reset);
 
 static int setup_cfam_reset(struct fsi_master_aspeed *aspeed)
 {
-- 
2.43.0




More information about the linux-arm-kernel mailing list