block: Change the function name of block ops 56/43456/1
authorJiyoung Yun <jy910.yun@samsung.com>
Thu, 9 Jul 2015 09:52:16 +0000 (18:52 +0900)
committerJiyoung Yun <jy910.yun@samsung.com>
Thu, 9 Jul 2015 09:52:16 +0000 (18:52 +0900)
To enhance the readability of struct block_dev_ops.

Change-Id: I84e552666a4ec65c1ccee9e3b876c7d9bdd9ab15
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
src/block/block.c
src/block/block.h

index 784ce57..87203f8 100644 (file)
@@ -151,15 +151,15 @@ static void broadcast_block_info(enum block_dev_operation op,
                if (ops->block_type != data->block_type)
                        continue;
                if (op == BLOCK_DEV_MOUNT)
-                       ops->mount(data, result);
+                       ops->mounted(data, result);
                else if (op == BLOCK_DEV_UNMOUNT)
-                       ops->unmount(data, result);
+                       ops->unmounted(data, result);
                else if (op == BLOCK_DEV_FORMAT)
-                       ops->format(data, result);
+                       ops->formatted(data, result);
                else if (op == BLOCK_DEV_INSERT)
-                       ops->insert(data);
+                       ops->inserted(data);
                else if (op == BLOCK_DEV_REMOVE)
-                       ops->remove(data);
+                       ops->removed(data);
        }
 }
 
index 5021ad7..d9ce1b7 100644 (file)
@@ -84,11 +84,11 @@ struct block_data {
 struct block_dev_ops {
        const char *name;
        enum block_device_type block_type;
-       void (*mount) (struct block_data *data, int result);
-       void (*unmount) (struct block_data *data, int result);
-       void (*format) (struct block_data *data, int result);
-       void (*insert) (struct block_data *data);
-       void (*remove) (struct block_data *data);
+       void (*mounted) (struct block_data *data, int result);
+       void (*unmounted) (struct block_data *data, int result);
+       void (*formatted) (struct block_data *data, int result);
+       void (*inserted) (struct block_data *data);
+       void (*removed) (struct block_data *data);
 };
 
 void add_block_dev(const struct block_dev_ops *ops);