control-host: Use fsi-master class paths
As of dev-5.3, and upstream v5.4, the FSI core creates fsi master class
based sysfs paths. These paths do not change depending on the FSI
master implantation or device tree layout, and therefore should be more
stable.
Signed-off-by: Joel Stanley <joel@jms.id.au>
Change-Id: I279024ca73e3f3d87c3456cf4fcd8d54615cd285
diff --git a/op-hostctl/control_host_obj.c b/op-hostctl/control_host_obj.c
index 27f7fc7..2988d4f 100644
--- a/op-hostctl/control_host_obj.c
+++ b/op-hostctl/control_host_obj.c
@@ -20,10 +20,10 @@
#define PPC_BIT32(bit) (0x80000000UL >> (bit))
#define FSI_EXTERNAL_MODE_PATH "/sys/devices/platform/gpio-fsi/external_mode"
-#define FSI_SCAN_PATH "/sys/devices/platform/gpio-fsi/fsi0/rescan"
+#define FSI_SCAN_PATH "/sys/class/fsi-master/fsi0/rescan"
/* TODO: Change this over to the cfam path once the cfam chardev patches have landed */
-#define FSI_RAW_PATH "/sys/devices/platform/gpio-fsi/fsi0/slave@00:00/raw"
+#define FSI_RAW_PATH "/sys/class/fsi-master/fsi0/slave@00:00/raw"
#define FSI_SCAN_DELAY_US 10000