firewire: core: add memo about the caller of show functions for device attributes
[sfrench/cifs-2.6.git] / drivers / firewire / core-device.c
index f208a02d0ebf717a9bed73072f68c0cf78ebdb68..e6cdb905eeaca70aec09132606d66996d5b87579 100644 (file)
@@ -322,6 +322,7 @@ static ssize_t show_immediate(struct device *dev,
        if (value < 0)
                return -ENOENT;
 
+       // Note that this function is also called by init_fw_attribute_group() with NULL pointer.
        return buf ? sysfs_emit(buf, "0x%06x\n", value) : 0;
 }
 
@@ -357,6 +358,7 @@ static ssize_t show_text_leaf(struct device *dev,
                }
        }
 
+       // Note that this function is also called by init_fw_attribute_group() with NULL pointer.
        if (buf) {
                bufsize = PAGE_SIZE - 1;
        } else {