]> err.no Git - linux-2.6/blobdiff - drivers/firewire/fw-device.h
firewire: Rename 'send_iso' to 'start_iso'.
[linux-2.6] / drivers / firewire / fw-device.h
index f39cf6ae62535142956cf7a44bbe98c5d3644dd2..402a785ceedb79a44cf2f1391631f2888ef7aaf9 100644 (file)
 
 #include <linux/fs.h>
 #include <linux/cdev.h>
+#include <asm/atomic.h>
 
 enum fw_device_state {
        FW_DEVICE_INITIALIZING,
        FW_DEVICE_RUNNING,
-       FW_DEVICE_SHUTDOWN
+       FW_DEVICE_SHUTDOWN,
 };
 
 struct fw_device {
-       int state;
+       atomic_t state;
        struct fw_node *node;
        int node_id;
        int generation;
@@ -48,7 +49,7 @@ struct fw_device {
 static inline struct fw_device *
 fw_device(struct device *dev)
 {
-        return container_of(dev, struct fw_device, device);
+       return container_of(dev, struct fw_device, device);
 }
 
 struct fw_device *fw_device_get(struct fw_device *device);
@@ -63,7 +64,7 @@ struct fw_unit {
 static inline struct fw_unit *
 fw_unit(struct device *dev)
 {
-        return container_of(dev, struct fw_unit, device);
+       return container_of(dev, struct fw_unit, device);
 }
 
 #define CSR_OFFSET     0x40
@@ -119,7 +120,7 @@ struct fw_driver {
 static inline struct fw_driver *
 fw_driver(struct device_driver *drv)
 {
-        return container_of(drv, struct fw_driver, driver);
+       return container_of(drv, struct fw_driver, driver);
 }
 
 extern const struct file_operations fw_device_ops;