소스 검색

[PATCH] Driver core: Documentation: update device attribute callbacks

Signed-off-by: Yani Ioannou <yani.ioannou@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Yani Ioannou 20 년 전
부모
커밋
3eb8c7836e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Documentation/filesystems/sysfs.txt

+ 1 - 1
Documentation/filesystems/sysfs.txt

@@ -214,7 +214,7 @@ Other notes:
 
 
 A very simple (and naive) implementation of a device attribute is:
 A very simple (and naive) implementation of a device attribute is:
 
 
-static ssize_t show_name(struct device * dev, char * buf)
+static ssize_t show_name(struct device *dev, struct device_attribute *attr, char *buf)
 {
 {
         return sprintf(buf,"%s\n",dev->name);
         return sprintf(buf,"%s\n",dev->name);
 }
 }