allow specifiying access mode when creating twifs file node
[lunaix-os.git] / lunaix-os / hal / rtc / rtc_device.c
index 396c9bbf83c90684944bf3e9f7c8e4acfc2db066..8676b3fce733ad52fed8c5674fd5af313b093a79 100644 (file)
@@ -166,7 +166,9 @@ static void
 hwrtc_twifs_export(struct hwrtc_potens* pot)
 {
     const char* name = pot->rtc_proxy->name_val;
-    struct twimap* rtc_mapping = twifs_mapping(NULL, pot, name);
+    struct twimap* rtc_mapping;
+    
+    rtc_mapping = twifs_mapping(NULL, pot, FSACL_aR, name);
     rtc_mapping->read = __hwrtc_readinfo;
 }