mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-10-22 23:13:01 +02:00
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>
This commit is contained in:
parent
db6efc57b0
commit
45ef22b6b5
|
@ -362,7 +362,7 @@ static ssize_t sdram_offsets_show(struct device *dev,
|
|||
}
|
||||
|
||||
static ssize_t sdram_show(struct file *file, struct kobject *kobj,
|
||||
struct bin_attribute *a, char *buf,
|
||||
const struct bin_attribute *a, char *buf,
|
||||
loff_t off, size_t count)
|
||||
{
|
||||
struct device *dev = kobj_to_dev(kobj);
|
||||
|
@ -432,7 +432,7 @@ static int solo_sysfs_init(struct solo_dev *solo_dev)
|
|||
sysfs_attr_init(&sdram_attr->attr);
|
||||
sdram_attr->attr.name = "sdram";
|
||||
sdram_attr->attr.mode = 0440;
|
||||
sdram_attr->read = sdram_show;
|
||||
sdram_attr->read_new = sdram_show;
|
||||
sdram_attr->size = solo_dev->sdram_size;
|
||||
|
||||
if (device_create_bin_file(dev, sdram_attr)) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user