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
nexedi
linux
Commits
b05596c2
Commit
b05596c2
authored
Oct 14, 2003
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Plain Diff
Merge kroah.com:/home/greg/linux/BK/bleed-2.5
into kroah.com:/home/greg/linux/BK/i2c-2.6
parents
15902084
bfcfbcc1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
10 deletions
+21
-10
drivers/i2c/algos/i2c-algo-ite.c
drivers/i2c/algos/i2c-algo-ite.c
+0
-7
drivers/i2c/chips/w83781d.c
drivers/i2c/chips/w83781d.c
+21
-3
No files found.
drivers/i2c/algos/i2c-algo-ite.c
View file @
b05596c2
...
...
@@ -779,10 +779,6 @@ int i2c_iic_add_bus(struct i2c_adapter *adap)
adap
->
retries
=
3
;
/* be replaced by defines */
adap
->
flags
=
0
;
#ifdef MODULE
MOD_INC_USE_COUNT
;
#endif
i2c_add_adapter
(
adap
);
iic_init
(
iic_adap
);
...
...
@@ -815,9 +811,6 @@ int i2c_iic_del_bus(struct i2c_adapter *adap)
return
res
;
DEB2
(
printk
(
"i2c-algo-ite: adapter unregistered: %s
\n
"
,
adap
->
name
));
#ifdef MODULE
MOD_DEC_USE_COUNT
;
#endif
return
0
;
}
...
...
drivers/i2c/chips/w83781d.c
View file @
b05596c2
...
...
@@ -422,9 +422,11 @@ sysfs_in_offsets(7);
sysfs_in_offsets
(
8
);
#define device_create_file_in(client, offset) \
do { \
device_create_file(&client->dev, &dev_attr_in_input##offset); \
device_create_file(&client->dev, &dev_attr_in_min##offset); \
device_create_file(&client->dev, &dev_attr_in_max##offset);
device_create_file(&client->dev, &dev_attr_in_max##offset); \
} while (0)
#define show_fan_reg(reg) \
static ssize_t show_##reg (struct device *dev, char *buf, int nr) \
...
...
@@ -482,8 +484,10 @@ sysfs_fan_offset(3);
sysfs_fan_min_offset
(
3
);
#define device_create_file_fan(client, offset) \
do { \
device_create_file(&client->dev, &dev_attr_fan_input##offset); \
device_create_file(&client->dev, &dev_attr_fan_min##offset); \
} while (0)
#define show_temp_reg(reg) \
static ssize_t show_##reg (struct device *dev, char *buf, int nr) \
...
...
@@ -566,9 +570,11 @@ sysfs_temp_offsets(2);
sysfs_temp_offsets
(
3
);
#define device_create_file_temp(client, offset) \
do { \
device_create_file(&client->dev, &dev_attr_temp_input##offset); \
device_create_file(&client->dev, &dev_attr_temp_max##offset); \
device_create_file(&client->dev, &dev_attr_temp_min##offset);
device_create_file(&client->dev, &dev_attr_temp_min##offset); \
} while (0)
static
ssize_t
show_vid_reg
(
struct
device
*
dev
,
char
*
buf
)
...
...
@@ -691,8 +697,10 @@ sysfs_beep(ENABLE, enable);
sysfs_beep
(
MASK
,
mask
);
#define device_create_file_beep(client) \
do { \
device_create_file(&client->dev, &dev_attr_beep_enable); \
device_create_file(&client->dev, &dev_attr_beep_mask);
device_create_file(&client->dev, &dev_attr_beep_mask); \
} while (0)
/* w83697hf only has two fans */
static
ssize_t
...
...
@@ -769,7 +777,9 @@ sysfs_fan_div(2);
sysfs_fan_div
(
3
);
#define device_create_file_fan_div(client, offset) \
do { \
device_create_file(&client->dev, &dev_attr_fan_div##offset); \
} while (0)
/* w83697hf only has two fans */
static
ssize_t
...
...
@@ -881,10 +891,14 @@ sysfs_pwm(3);
sysfs_pwm
(
4
);
#define device_create_file_pwm(client, offset) \
do { \
device_create_file(&client->dev, &dev_attr_pwm##offset); \
} while (0)
#define device_create_file_pwmenable(client, offset) \
do { \
device_create_file(&client->dev, &dev_attr_pwm_enable##offset); \
} while (0)
static
ssize_t
show_sensor_reg
(
struct
device
*
dev
,
char
*
buf
,
int
nr
)
...
...
@@ -957,7 +971,9 @@ sysfs_sensor(2);
sysfs_sensor
(
3
);
#define device_create_file_sensor(client, offset) \
do { \
device_create_file(&client->dev, &dev_attr_sensor##offset); \
} while (0)
#ifdef W83781D_RT
static
ssize_t
...
...
@@ -1016,7 +1032,9 @@ sysfs_rt(2);
sysfs_rt
(
3
);
#define device_create_file_rt(client, offset) \
do { \
device_create_file(&client->dev, &dev_attr_rt##offset); \
} while (0)
#endif
/* ifdef W83781D_RT */
...
...
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