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: radeon: Use const 'struct bin_attribute' callbacks

The sysfs core now provides callback variants that explicitly take a
const pointer. Make use of it to match the attribute definitions.

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
dcbcf524 59aa03ac

+4 -4
+4 -4
drivers/video/fbdev/aty/radeon_base.c
··· 2199 2199 2200 2200 2201 2201 static ssize_t radeon_show_edid1(struct file *filp, struct kobject *kobj, 2202 - struct bin_attribute *bin_attr, 2202 + const struct bin_attribute *bin_attr, 2203 2203 char *buf, loff_t off, size_t count) 2204 2204 { 2205 2205 struct device *dev = kobj_to_dev(kobj); ··· 2211 2211 2212 2212 2213 2213 static ssize_t radeon_show_edid2(struct file *filp, struct kobject *kobj, 2214 - struct bin_attribute *bin_attr, 2214 + const struct bin_attribute *bin_attr, 2215 2215 char *buf, loff_t off, size_t count) 2216 2216 { 2217 2217 struct device *dev = kobj_to_dev(kobj); ··· 2227 2227 .mode = 0444, 2228 2228 }, 2229 2229 .size = EDID_LENGTH, 2230 - .read = radeon_show_edid1, 2230 + .read_new = radeon_show_edid1, 2231 2231 }; 2232 2232 2233 2233 static const struct bin_attribute edid2_attr = { ··· 2236 2236 .mode = 0444, 2237 2237 }, 2238 2238 .size = EDID_LENGTH, 2239 - .read = radeon_show_edid2, 2239 + .read_new = radeon_show_edid2, 2240 2240 }; 2241 2241 2242 2242 static int radeonfb_pci_register(struct pci_dev *pdev,