]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - include/linux/cpufreq.h
uapi linux/coda_psdev.h: move upc_req definition from uapi to kernel side headers
[mirror_ubuntu-bionic-kernel.git] / include / linux / cpufreq.h
index 065f3a8eb48615becdb299e0b50241794799facf..4ac964f43b5d00369edd80d03929b5c29a71a8e9 100644 (file)
@@ -254,20 +254,12 @@ __ATTR(_name, 0644, show_##_name, store_##_name)
 static struct freq_attr _name =                        \
 __ATTR(_name, 0200, NULL, store_##_name)
 
-struct global_attr {
-       struct attribute attr;
-       ssize_t (*show)(struct kobject *kobj,
-                       struct attribute *attr, char *buf);
-       ssize_t (*store)(struct kobject *a, struct attribute *b,
-                        const char *c, size_t count);
-};
-
 #define define_one_global_ro(_name)            \
-static struct global_attr _name =              \
+static struct kobj_attribute _name =           \
 __ATTR(_name, 0444, show_##_name, NULL)
 
 #define define_one_global_rw(_name)            \
-static struct global_attr _name =              \
+static struct kobj_attribute _name =           \
 __ATTR(_name, 0644, show_##_name, store_##_name)