Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
5ff7eed2
Commit
5ff7eed2
authored
Jul 30, 2002
by
Patrick Mochel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixup users of driverfs:
do a s/driver_file_entry/device_attribute/g on all of them.
parent
3ffe04d8
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
16 additions
and
16 deletions
+16
-16
drivers/pci/proc.c
drivers/pci/proc.c
+2
-2
drivers/scsi/scsi_scan.c
drivers/scsi/scsi_scan.c
+1
-1
drivers/scsi/sg.c
drivers/scsi/sg.c
+2
-2
drivers/scsi/sr.c
drivers/scsi/sr.c
+2
-2
drivers/scsi/st.c
drivers/scsi/st.c
+2
-2
drivers/usb/core/usb.c
drivers/usb/core/usb.c
+5
-5
fs/partitions/check.c
fs/partitions/check.c
+2
-2
No files found.
drivers/pci/proc.c
View file @
5ff7eed2
...
@@ -378,7 +378,7 @@ static ssize_t pci_show_irq(struct device * dev, char * buf, size_t count, loff_
...
@@ -378,7 +378,7 @@ static ssize_t pci_show_irq(struct device * dev, char * buf, size_t count, loff_
return
off
?
0
:
sprintf
(
buf
,
"%u
\n
"
,
pci_dev
->
irq
);
return
off
?
0
:
sprintf
(
buf
,
"%u
\n
"
,
pci_dev
->
irq
);
}
}
static
struct
d
river_file_entry
pci_irq_entry
=
{
static
struct
d
evice_attribute
pci_irq_entry
=
{
name:
"irq"
,
name:
"irq"
,
mode:
S_IRUGO
,
mode:
S_IRUGO
,
show:
pci_show_irq
,
show:
pci_show_irq
,
...
@@ -406,7 +406,7 @@ static ssize_t pci_show_resources(struct device * dev, char * buf, size_t count,
...
@@ -406,7 +406,7 @@ static ssize_t pci_show_resources(struct device * dev, char * buf, size_t count,
return
(
str
-
buf
);
return
(
str
-
buf
);
}
}
static
struct
d
river_file_entry
pci_resource_entry
=
{
static
struct
d
evice_attribute
pci_resource_entry
=
{
name:
"resources"
,
name:
"resources"
,
mode:
S_IRUGO
,
mode:
S_IRUGO
,
show:
pci_show_resources
,
show:
pci_show_resources
,
...
...
drivers/scsi/scsi_scan.c
View file @
5ff7eed2
...
@@ -306,7 +306,7 @@ static ssize_t scsi_device_type_read(struct device *driverfs_dev, char *page,
...
@@ -306,7 +306,7 @@ static ssize_t scsi_device_type_read(struct device *driverfs_dev, char *page,
return
0
;
return
0
;
}
}
static
struct
d
river_file_entry
scsi_device_type_file
=
{
static
struct
d
evice_attribute
scsi_device_type_file
=
{
name:
"type"
,
name:
"type"
,
mode:
S_IRUGO
,
mode:
S_IRUGO
,
show:
scsi_device_type_read
,
show:
scsi_device_type_read
,
...
...
drivers/scsi/sg.c
View file @
5ff7eed2
...
@@ -1402,7 +1402,7 @@ static ssize_t sg_device_kdev_read(struct device *driverfs_dev, char *page,
...
@@ -1402,7 +1402,7 @@ static ssize_t sg_device_kdev_read(struct device *driverfs_dev, char *page,
Sg_device
*
sdp
=
list_entry
(
driverfs_dev
,
Sg_device
,
sg_driverfs_dev
);
Sg_device
*
sdp
=
list_entry
(
driverfs_dev
,
Sg_device
,
sg_driverfs_dev
);
return
off
?
0
:
sprintf
(
page
,
"%x
\n
"
,
sdp
->
i_rdev
.
value
);
return
off
?
0
:
sprintf
(
page
,
"%x
\n
"
,
sdp
->
i_rdev
.
value
);
}
}
static
struct
d
river_file_entry
sg_device_kdev_file
=
{
static
struct
d
evice_attribute
sg_device_kdev_file
=
{
name:
"kdev"
,
name:
"kdev"
,
mode:
S_IRUGO
,
mode:
S_IRUGO
,
show:
sg_device_kdev_read
,
show:
sg_device_kdev_read
,
...
@@ -1413,7 +1413,7 @@ static ssize_t sg_device_type_read(struct device *driverfs_dev, char *page,
...
@@ -1413,7 +1413,7 @@ static ssize_t sg_device_type_read(struct device *driverfs_dev, char *page,
{
{
return
off
?
0
:
sprintf
(
page
,
"CHR
\n
"
);
return
off
?
0
:
sprintf
(
page
,
"CHR
\n
"
);
}
}
static
struct
d
river_file_entry
sg_device_type_file
=
{
static
struct
d
evice_attribute
sg_device_type_file
=
{
name:
"type"
,
name:
"type"
,
mode:
S_IRUGO
,
mode:
S_IRUGO
,
show:
sg_device_type_read
,
show:
sg_device_type_read
,
...
...
drivers/scsi/sr.c
View file @
5ff7eed2
...
@@ -739,7 +739,7 @@ static ssize_t sr_device_kdev_read(struct device *driverfs_dev,
...
@@ -739,7 +739,7 @@ static ssize_t sr_device_kdev_read(struct device *driverfs_dev,
kdev
.
value
=
(
int
)
driverfs_dev
->
driver_data
;
kdev
.
value
=
(
int
)
driverfs_dev
->
driver_data
;
return
off
?
0
:
sprintf
(
page
,
"%x
\n
"
,
kdev
.
value
);
return
off
?
0
:
sprintf
(
page
,
"%x
\n
"
,
kdev
.
value
);
}
}
static
struct
d
river_file_entry
sr_device_kdev_file
=
{
static
struct
d
evice_attribute
sr_device_kdev_file
=
{
name:
"kdev"
,
name:
"kdev"
,
mode:
S_IRUGO
,
mode:
S_IRUGO
,
show:
sr_device_kdev_read
,
show:
sr_device_kdev_read
,
...
@@ -750,7 +750,7 @@ static ssize_t sr_device_type_read(struct device *driverfs_dev,
...
@@ -750,7 +750,7 @@ static ssize_t sr_device_type_read(struct device *driverfs_dev,
{
{
return
off
?
0
:
sprintf
(
page
,
"CHR
\n
"
);
return
off
?
0
:
sprintf
(
page
,
"CHR
\n
"
);
}
}
static
struct
d
river_file_entry
sr_device_type_file
=
{
static
struct
d
evice_attribute
sr_device_type_file
=
{
name:
"type"
,
name:
"type"
,
mode:
S_IRUGO
,
mode:
S_IRUGO
,
show:
sr_device_type_read
,
show:
sr_device_type_read
,
...
...
drivers/scsi/st.c
View file @
5ff7eed2
...
@@ -3533,7 +3533,7 @@ static ssize_t st_device_kdev_read(struct device *driverfs_dev,
...
@@ -3533,7 +3533,7 @@ static ssize_t st_device_kdev_read(struct device *driverfs_dev,
kdev
.
value
=
(
int
)
driverfs_dev
->
driver_data
;
kdev
.
value
=
(
int
)
driverfs_dev
->
driver_data
;
return
off
?
0
:
sprintf
(
page
,
"%x
\n
"
,
kdev
.
value
);
return
off
?
0
:
sprintf
(
page
,
"%x
\n
"
,
kdev
.
value
);
}
}
static
struct
d
river_file_entry
st_device_kdev_file
=
{
static
struct
d
evice_attribute
st_device_kdev_file
=
{
name:
"kdev"
,
name:
"kdev"
,
mode:
S_IRUGO
,
mode:
S_IRUGO
,
show:
st_device_kdev_read
,
show:
st_device_kdev_read
,
...
@@ -3544,7 +3544,7 @@ static ssize_t st_device_type_read(struct device *driverfs_dev,
...
@@ -3544,7 +3544,7 @@ static ssize_t st_device_type_read(struct device *driverfs_dev,
{
{
return
off
?
0
:
sprintf
(
page
,
"CHR
\n
"
);
return
off
?
0
:
sprintf
(
page
,
"CHR
\n
"
);
}
}
static
struct
d
river_file_entry
st_device_type_file
=
{
static
struct
d
evice_attribute
st_device_type_file
=
{
name:
"type"
,
name:
"type"
,
mode:
S_IRUGO
,
mode:
S_IRUGO
,
show:
st_device_type_read
,
show:
st_device_type_read
,
...
...
drivers/usb/core/usb.c
View file @
5ff7eed2
...
@@ -835,7 +835,7 @@ show_config (struct device *dev, char *buf, size_t count, loff_t off)
...
@@ -835,7 +835,7 @@ show_config (struct device *dev, char *buf, size_t count, loff_t off)
udev
=
to_usb_device
(
dev
);
udev
=
to_usb_device
(
dev
);
return
sprintf
(
buf
,
"%u
\n
"
,
udev
->
actconfig
->
bConfigurationValue
);
return
sprintf
(
buf
,
"%u
\n
"
,
udev
->
actconfig
->
bConfigurationValue
);
}
}
static
struct
d
river_file_entry
usb_config_entry
=
{
static
struct
d
evice_attribute
usb_config_entry
=
{
.
name
=
"configuration"
,
.
name
=
"configuration"
,
.
mode
=
S_IRUGO
,
.
mode
=
S_IRUGO
,
.
show
=
show_config
,
.
show
=
show_config
,
...
@@ -854,7 +854,7 @@ show_altsetting (struct device *dev, char *buf, size_t count, loff_t off)
...
@@ -854,7 +854,7 @@ show_altsetting (struct device *dev, char *buf, size_t count, loff_t off)
interface
=
to_usb_interface
(
dev
);
interface
=
to_usb_interface
(
dev
);
return
sprintf
(
buf
,
"%u
\n
"
,
interface
->
altsetting
->
bAlternateSetting
);
return
sprintf
(
buf
,
"%u
\n
"
,
interface
->
altsetting
->
bAlternateSetting
);
}
}
static
struct
d
river_file_entry
usb_altsetting_entry
=
{
static
struct
d
evice_attribute
usb_altsetting_entry
=
{
.
name
=
"altsetting"
,
.
name
=
"altsetting"
,
.
mode
=
S_IRUGO
,
.
mode
=
S_IRUGO
,
.
show
=
show_altsetting
,
.
show
=
show_altsetting
,
...
@@ -875,7 +875,7 @@ static ssize_t show_product (struct device *dev, char *buf, size_t count, loff_t
...
@@ -875,7 +875,7 @@ static ssize_t show_product (struct device *dev, char *buf, size_t count, loff_t
buf
[
len
+
1
]
=
0x00
;
buf
[
len
+
1
]
=
0x00
;
return
len
+
1
;
return
len
+
1
;
}
}
static
struct
d
river_file_entry
usb_product_entry
=
{
static
struct
d
evice_attribute
usb_product_entry
=
{
.
name
=
"product"
,
.
name
=
"product"
,
.
mode
=
S_IRUGO
,
.
mode
=
S_IRUGO
,
.
show
=
show_product
,
.
show
=
show_product
,
...
@@ -897,7 +897,7 @@ show_manufacturer (struct device *dev, char *buf, size_t count, loff_t off)
...
@@ -897,7 +897,7 @@ show_manufacturer (struct device *dev, char *buf, size_t count, loff_t off)
buf
[
len
+
1
]
=
0x00
;
buf
[
len
+
1
]
=
0x00
;
return
len
+
1
;
return
len
+
1
;
}
}
static
struct
d
river_file_entry
usb_manufacturer_entry
=
{
static
struct
d
evice_attribute
usb_manufacturer_entry
=
{
.
name
=
"manufacturer"
,
.
name
=
"manufacturer"
,
.
mode
=
S_IRUGO
,
.
mode
=
S_IRUGO
,
.
show
=
show_manufacturer
,
.
show
=
show_manufacturer
,
...
@@ -919,7 +919,7 @@ show_serial (struct device *dev, char *buf, size_t count, loff_t off)
...
@@ -919,7 +919,7 @@ show_serial (struct device *dev, char *buf, size_t count, loff_t off)
buf
[
len
+
1
]
=
0x00
;
buf
[
len
+
1
]
=
0x00
;
return
len
+
1
;
return
len
+
1
;
}
}
static
struct
d
river_file_entry
usb_serial_entry
=
{
static
struct
d
evice_attribute
usb_serial_entry
=
{
.
name
=
"serial"
,
.
name
=
"serial"
,
.
mode
=
S_IRUGO
,
.
mode
=
S_IRUGO
,
.
show
=
show_serial
,
.
show
=
show_serial
,
...
...
fs/partitions/check.c
View file @
5ff7eed2
...
@@ -210,7 +210,7 @@ static ssize_t partition_device_kdev_read(struct device *driverfs_dev,
...
@@ -210,7 +210,7 @@ static ssize_t partition_device_kdev_read(struct device *driverfs_dev,
kdev
.
value
=
(
int
)(
long
)
driverfs_dev
->
driver_data
;
kdev
.
value
=
(
int
)(
long
)
driverfs_dev
->
driver_data
;
return
off
?
0
:
sprintf
(
page
,
"%x
\n
"
,
kdev
.
value
);
return
off
?
0
:
sprintf
(
page
,
"%x
\n
"
,
kdev
.
value
);
}
}
static
struct
d
river_file_entry
partition_device_kdev_file
=
{
static
struct
d
evice_attribute
partition_device_kdev_file
=
{
name:
"kdev"
,
name:
"kdev"
,
mode:
S_IRUGO
,
mode:
S_IRUGO
,
show:
partition_device_kdev_read
,
show:
partition_device_kdev_read
,
...
@@ -221,7 +221,7 @@ static ssize_t partition_device_type_read(struct device *driverfs_dev,
...
@@ -221,7 +221,7 @@ static ssize_t partition_device_type_read(struct device *driverfs_dev,
{
{
return
off
?
0
:
sprintf
(
page
,
"BLK
\n
"
);
return
off
?
0
:
sprintf
(
page
,
"BLK
\n
"
);
}
}
static
struct
d
river_file_entry
partition_device_type_file
=
{
static
struct
d
evice_attribute
partition_device_type_file
=
{
name:
"type"
,
name:
"type"
,
mode:
S_IRUGO
,
mode:
S_IRUGO
,
show:
partition_device_type_read
,
show:
partition_device_type_read
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment