Skip to content

Commit dcbcf52

Browse files
t-8chhdeller
authored andcommitted
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 <[email protected]> Signed-off-by: Helge Deller <[email protected]>
1 parent 59aa03a commit dcbcf52

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/video/fbdev/aty/radeon_base.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2199,7 +2199,7 @@ static ssize_t radeon_show_one_edid(char *buf, loff_t off, size_t count, const u
21992199

22002200

22012201
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,
22032203
char *buf, loff_t off, size_t count)
22042204
{
22052205
struct device *dev = kobj_to_dev(kobj);
@@ -2211,7 +2211,7 @@ static ssize_t radeon_show_edid1(struct file *filp, struct kobject *kobj,
22112211

22122212

22132213
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,
22152215
char *buf, loff_t off, size_t count)
22162216
{
22172217
struct device *dev = kobj_to_dev(kobj);
@@ -2227,7 +2227,7 @@ static const struct bin_attribute edid1_attr = {
22272227
.mode = 0444,
22282228
},
22292229
.size = EDID_LENGTH,
2230-
.read = radeon_show_edid1,
2230+
.read_new = radeon_show_edid1,
22312231
};
22322232

22332233
static const struct bin_attribute edid2_attr = {
@@ -2236,7 +2236,7 @@ static const struct bin_attribute edid2_attr = {
22362236
.mode = 0444,
22372237
},
22382238
.size = EDID_LENGTH,
2239-
.read = radeon_show_edid2,
2239+
.read_new = radeon_show_edid2,
22402240
};
22412241

22422242
static int radeonfb_pci_register(struct pci_dev *pdev,

0 commit comments

Comments
 (0)