Commit b4fb88ba authored by Federico Vaga's avatar Federico Vaga

general: rename zio_sys_operations to zio_sysfs_operations

This is a general change that affects triggers and buffers as well.
It introduces incompatibilities but the old name was actually a bug.
Signed-off-by: 's avatarFederico Vaga <federico.vaga@gmail.com>
Acked-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent fe69b59c
......@@ -49,7 +49,7 @@ int kmalloc_conf_set(struct kobject *kobj, struct zio_attribute *zattr,
zattr->value = usr_val;
return 0;
}
struct zio_sys_operations zbk_sysfs_ops = {
struct zio_sysfs_operations zbk_sysfs_ops = {
.conf_set = kmalloc_conf_set,
};
......
......@@ -128,7 +128,7 @@ struct zio_buffer_type {
unsigned long flags; /* to be defined */
/* file operations (read/write etc) are buffer-specific too */
const struct zio_sys_operations *s_op;
const struct zio_sysfs_operations *s_op;
const struct zio_buffer_operations *b_op;
const struct file_operations *f_op;
......
......@@ -32,10 +32,10 @@ struct zio_attribute {
unsigned long addr;
} priv;
uint32_t value;
const struct zio_sys_operations *s_op;
const struct zio_sysfs_operations *s_op;
};
struct zio_sys_operations {
struct zio_sysfs_operations {
int (*info_get)(struct kobject *kobj, struct zio_attribute *zattr,
uint32_t *usr_val);
int (*conf_set)(struct kobject *kobj, struct zio_attribute *zattr,
......
......@@ -15,7 +15,7 @@ struct zio_trigger_type {
unsigned long flags; /* to be defined */
/* file_operations because the trigger may override the buffer */
const struct zio_sys_operations *s_op;
const struct zio_sysfs_operations *s_op;
const struct zio_trigger_operations *t_op;
const struct file_operations *f_op;
......
......@@ -83,7 +83,7 @@ struct zio_device {
spinlock_t lock; /* for all attr ops */
unsigned long flags;
struct zio_attribute_set zattr_set;
const struct zio_sys_operations *s_op;
const struct zio_sysfs_operations *s_op;
const struct zio_device_operations *d_op;
/* The full device is an array of csets */
......
......@@ -56,7 +56,7 @@ int zti_conf_set(struct kobject *kobj, struct zio_attribute *zattr,
return 0;
}
struct zio_sys_operations zti_s_ops = {
struct zio_sysfs_operations zti_s_ops = {
.conf_set = zti_conf_set,
};
......
......@@ -63,7 +63,7 @@ int ztt_conf_set(struct kobject *kobj, struct zio_attribute *zattr,
return 0;
}
struct zio_sys_operations ztt_s_ops = {
struct zio_sysfs_operations ztt_s_ops = {
.conf_set = ztt_conf_set,
};
......
......@@ -35,7 +35,7 @@ int ztu_conf_set(struct kobject *kobj, struct zio_attribute *zattr,
return 0;
}
struct zio_sys_operations ztu_s_ops = {
struct zio_sysfs_operations ztu_s_ops = {
.conf_set = ztu_conf_set,
};
......
......@@ -597,7 +597,7 @@ static int zattr_create_group(struct kobject *kobj,
struct zio_attribute *zattr,
struct attribute_group *grp,
unsigned int n_attr,
const struct zio_sys_operations *s_op,
const struct zio_sysfs_operations *s_op,
int is_ext)
{
int i;
......@@ -655,7 +655,7 @@ static void zattr_remove_group(struct kobject *kobj,
}
/* create a set of zio attributes: the standard one and the extended one */
static int zattr_set_create(struct zio_obj_head *head,
const struct zio_sys_operations *s_op)
const struct zio_sysfs_operations *s_op)
{
int err = 0;
struct zio_attribute_set *zattr_set;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment