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.

media: solo6x10: Use const 'struct bin_attribute' callback

The sysfs core now provides callback variants that explicitly take a
const pointer. Use them so the non-const variants can be removed.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>

authored by

Thomas Weißschuh and committed by
Hans Verkuil
45ef22b6 db6efc57

+2 -2
+2 -2
drivers/media/pci/solo6x10/solo6x10-core.c
··· 362 362 } 363 363 364 364 static ssize_t sdram_show(struct file *file, struct kobject *kobj, 365 - struct bin_attribute *a, char *buf, 365 + const struct bin_attribute *a, char *buf, 366 366 loff_t off, size_t count) 367 367 { 368 368 struct device *dev = kobj_to_dev(kobj); ··· 432 432 sysfs_attr_init(&sdram_attr->attr); 433 433 sdram_attr->attr.name = "sdram"; 434 434 sdram_attr->attr.mode = 0440; 435 - sdram_attr->read = sdram_show; 435 + sdram_attr->read_new = sdram_show; 436 436 sdram_attr->size = solo_dev->sdram_size; 437 437 438 438 if (device_create_bin_file(dev, sdram_attr)) {