Skip to content

Commit 59aa03a

Browse files
t-8chhdeller
authored andcommitted
fbdev: udlfb: Use const 'struct bin_attribute' callback
The sysfs core now provides callback variants that explicitly take a const pointer. Make use of it to match the attribute definition. Signed-off-by: Thomas Weißschuh <[email protected]> Signed-off-by: Helge Deller <[email protected]>
1 parent 78d4f34 commit 59aa03a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/video/fbdev/udlfb.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1416,7 +1416,7 @@ static ssize_t metrics_cpu_kcycles_used_show(struct device *fbdev,
14161416

14171417
static ssize_t edid_show(
14181418
struct file *filp,
1419-
struct kobject *kobj, struct bin_attribute *a,
1419+
struct kobject *kobj, const struct bin_attribute *a,
14201420
char *buf, loff_t off, size_t count) {
14211421
struct device *fbdev = kobj_to_dev(kobj);
14221422
struct fb_info *fb_info = dev_get_drvdata(fbdev);
@@ -1438,7 +1438,7 @@ static ssize_t edid_show(
14381438

14391439
static ssize_t edid_store(
14401440
struct file *filp,
1441-
struct kobject *kobj, struct bin_attribute *a,
1441+
struct kobject *kobj, const struct bin_attribute *a,
14421442
char *src, loff_t src_off, size_t src_size) {
14431443
struct device *fbdev = kobj_to_dev(kobj);
14441444
struct fb_info *fb_info = dev_get_drvdata(fbdev);
@@ -1482,8 +1482,8 @@ static const struct bin_attribute edid_attr = {
14821482
.attr.name = "edid",
14831483
.attr.mode = 0666,
14841484
.size = EDID_LENGTH,
1485-
.read = edid_show,
1486-
.write = edid_store
1485+
.read_new = edid_show,
1486+
.write_new = edid_store
14871487
};
14881488

14891489
static const struct device_attribute fb_device_attrs[] = {

0 commit comments

Comments
 (0)