summaryrefslogtreecommitdiff
path: root/include/linux/sysfs.h
diff options
context:
space:
mode:
authorThomas Weißschuh <linux@weissschuh.net>2025-08-11 11:13:35 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-08-19 13:12:12 +0200
commit1d6249c1ce826fcf03c695973095eb4a50fb7fd2 (patch)
tree21e50b09d6e4d6bf3491420db1f9dd67c3d43c76 /include/linux/sysfs.h
parent292cb391479d50f4379a0abab34324de92c82a92 (diff)
sysfs: remove bin_attribute::read_new/write_new()
These transitional fields are now unused and unnecessary. Remove them and their logic in the sysfs core. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Link: https://lore.kernel.org/r/20250811-sysfs-const-bin_attr-final-v4-1-7b6053fd58bb@weissschuh.net Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/sysfs.h')
-rw-r--r--include/linux/sysfs.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h
index f418aae4f113..7544f6d81c05 100644
--- a/include/linux/sysfs.h
+++ b/include/linux/sysfs.h
@@ -308,12 +308,8 @@ struct bin_attribute {
struct address_space *(*f_mapping)(void);
ssize_t (*read)(struct file *, struct kobject *, const struct bin_attribute *,
char *, loff_t, size_t);
- ssize_t (*read_new)(struct file *, struct kobject *, const struct bin_attribute *,
- char *, loff_t, size_t);
ssize_t (*write)(struct file *, struct kobject *, const struct bin_attribute *,
char *, loff_t, size_t);
- ssize_t (*write_new)(struct file *, struct kobject *,
- const struct bin_attribute *, char *, loff_t, size_t);
loff_t (*llseek)(struct file *, struct kobject *, const struct bin_attribute *,
loff_t, int);
int (*mmap)(struct file *, struct kobject *, const struct bin_attribute *attr,