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

From: Chen Jung Ku

Date: Thu Apr 30 2026 - 17:45:01 EST


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@xxxxxxxxxxxxxxxx>
---
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