Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <linux@weissschuh.net>
Signed-off-by: Helge Deller <deller@gmx.de>

authored by

Thomas Weißschuh and committed by
Helge Deller
59aa03ac 78d4f34e

+4 -4
+4 -4
drivers/video/fbdev/udlfb.c
··· 1416 1416 1417 1417 static ssize_t edid_show( 1418 1418 struct file *filp, 1419 - struct kobject *kobj, struct bin_attribute *a, 1419 + struct kobject *kobj, const struct bin_attribute *a, 1420 1420 char *buf, loff_t off, size_t count) { 1421 1421 struct device *fbdev = kobj_to_dev(kobj); 1422 1422 struct fb_info *fb_info = dev_get_drvdata(fbdev); ··· 1438 1438 1439 1439 static ssize_t edid_store( 1440 1440 struct file *filp, 1441 - struct kobject *kobj, struct bin_attribute *a, 1441 + struct kobject *kobj, const struct bin_attribute *a, 1442 1442 char *src, loff_t src_off, size_t src_size) { 1443 1443 struct device *fbdev = kobj_to_dev(kobj); 1444 1444 struct fb_info *fb_info = dev_get_drvdata(fbdev); ··· 1482 1482 .attr.name = "edid", 1483 1483 .attr.mode = 0666, 1484 1484 .size = EDID_LENGTH, 1485 - .read = edid_show, 1486 - .write = edid_store 1485 + .read_new = edid_show, 1486 + .write_new = edid_store 1487 1487 }; 1488 1488 1489 1489 static const struct device_attribute fb_device_attrs[] = {