You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[PATCH] Driver Core: drivers/usb/input/aiptek.c - drivers/zorro/zorro-sysfs.c: update device attribute callbacks
Signed-off-by: Yani Ioannou <yani.ioannou@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
10523b3b82
commit
060b8845e6
@@ -1045,14 +1045,14 @@ static struct fb_ops gbefb_ops = {
|
||||
* sysfs
|
||||
*/
|
||||
|
||||
static ssize_t gbefb_show_memsize(struct device *dev, char *buf)
|
||||
static ssize_t gbefb_show_memsize(struct device *dev, struct device_attribute *attr, char *buf)
|
||||
{
|
||||
return snprintf(buf, PAGE_SIZE, "%d\n", gbe_mem_size);
|
||||
}
|
||||
|
||||
static DEVICE_ATTR(size, S_IRUGO, gbefb_show_memsize, NULL);
|
||||
|
||||
static ssize_t gbefb_show_rev(struct device *device, char *buf)
|
||||
static ssize_t gbefb_show_rev(struct device *device, struct device_attribute *attr, char *buf)
|
||||
{
|
||||
return snprintf(buf, PAGE_SIZE, "%d\n", gbe_revision);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user