Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
7b77d065
Commit
7b77d065
authored
Dec 10, 2006
by
Jean Delvare
Committed by
Jean Delvare
Dec 10, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
i2c: Use the __ATTR macro where possible
Signed-off-by:
Jean Delvare
<
khali@linux-fr.org
>
parent
438d6c2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
drivers/i2c/i2c-core.c
drivers/i2c/i2c-core.c
+4
-7
No files found.
drivers/i2c/i2c-core.c
View file @
7b77d065
...
@@ -128,14 +128,11 @@ static ssize_t show_client_name(struct device *dev, struct device_attribute *att
...
@@ -128,14 +128,11 @@ static ssize_t show_client_name(struct device *dev, struct device_attribute *att
}
}
/*
/*
* We can't use the DEVICE_ATTR() macro here as we want the same filename for a
* We can't use the DEVICE_ATTR() macro here, as we used the same name for
* different type of a device. So beware if the DEVICE_ATTR() macro ever
* an i2c adapter attribute (above).
* changes, this definition will also have to change.
*/
*/
static
struct
device_attribute
dev_attr_client_name
=
{
static
struct
device_attribute
dev_attr_client_name
=
.
attr
=
{.
name
=
"name"
,
.
mode
=
S_IRUGO
,
.
owner
=
THIS_MODULE
},
__ATTR
(
name
,
S_IRUGO
,
&
show_client_name
,
NULL
);
.
show
=
&
show_client_name
,
};
/* ---------------------------------------------------
/* ---------------------------------------------------
...
...
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