Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
969780f8
K
Kernel
项目概览
openeuler
/
Kernel
大约 1 年 前同步成功
通知
7
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
969780f8
编写于
11月 09, 2005
作者:
L
Linus Torvalds
浏览文件
操作
浏览文件
下载
差异文件
Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/i2c-2.6
上级
ad8f76be
8750197f
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
24 addition
and
33 deletion
+24
-33
Documentation/i2c/busses/i2c-viapro
Documentation/i2c/busses/i2c-viapro
+2
-4
Documentation/i2c/writing-clients
Documentation/i2c/writing-clients
+2
-2
drivers/hwmon/w83627hf.c
drivers/hwmon/w83627hf.c
+4
-12
drivers/i2c/busses/i2c-viapro.c
drivers/i2c/busses/i2c-viapro.c
+14
-13
drivers/i2c/chips/ds1337.c
drivers/i2c/chips/ds1337.c
+2
-2
未找到文件。
Documentation/i2c/busses/i2c-viapro
浏览文件 @
969780f8
...
...
@@ -7,12 +7,10 @@ Supported adapters:
* VIA Technologies, Inc. VT82C686A/B
Datasheet: Sometimes available at the VIA website
* VIA Technologies, Inc. VT8231, VT8233, VT8233A, VT8235, VT8237
Datasheet: available on request from V
ia
* VIA Technologies, Inc. VT8231, VT8233, VT8233A, VT8235, VT8237
R
Datasheet: available on request from V
IA
Authors:
Frodo Looijaard <frodol@dds.nl>,
Philip Edelbrock <phil@netroedge.com>,
Kysti Mlkki <kmalkki@cc.hut.fi>,
Mark D. Studebaker <mdsxyz123@yahoo.com>,
Jean Delvare <khali@linux-fr.org>
...
...
Documentation/i2c/writing-clients
浏览文件 @
969780f8
...
...
@@ -412,7 +412,7 @@ For now, you can ignore the `flags' parameter. It is there for future use.
release_region(address,FOO_EXTENT);
/* SENSORS ONLY END */
ERROR1:
kfree(
new_client
);
kfree(
data
);
ERROR0:
return err;
}
...
...
@@ -443,7 +443,7 @@ much simpler than the attachment code, fortunately!
release_region(client->addr,LM78_EXTENT);
/* HYBRID SENSORS CHIP ONLY END */
kfree(
data
);
kfree(
i2c_get_clientdata(client)
);
return 0;
}
...
...
drivers/hwmon/w83627hf.c
浏览文件 @
969780f8
...
...
@@ -180,11 +180,10 @@ superio_exit(void)
#define W83781D_REG_BANK 0x4E
#define W83781D_REG_CONFIG 0x40
#define W83781D_REG_ALARM1 0x4
1
#define W83781D_REG_ALARM2 0x4
2
#define W83781D_REG_ALARM3 0x45
0
#define W83781D_REG_ALARM1 0x4
59
#define W83781D_REG_ALARM2 0x4
5A
#define W83781D_REG_ALARM3 0x45
B
#define W83781D_REG_IRQ 0x4C
#define W83781D_REG_BEEP_CONFIG 0x4D
#define W83781D_REG_BEEP_INTS1 0x56
#define W83781D_REG_BEEP_INTS2 0x57
...
...
@@ -1370,13 +1369,6 @@ static void w83627hf_init_client(struct i2c_client *client)
W83781D_REG_TEMP3_CONFIG
,
tmp
&
0xfe
);
}
}
/* enable comparator mode for temp2 and temp3 so
alarm indication will work correctly */
i
=
w83627hf_read_value
(
client
,
W83781D_REG_IRQ
);
if
(
!
(
i
&
0x40
))
w83627hf_write_value
(
client
,
W83781D_REG_IRQ
,
i
|
0x40
);
}
/* Start monitoring */
...
...
@@ -1400,7 +1392,7 @@ static struct w83627hf_data *w83627hf_update_device(struct device *dev)
/* skip missing sensors */
if
(((
data
->
type
==
w83697hf
)
&&
(
i
==
1
))
||
((
data
->
type
==
w83627thf
||
data
->
type
==
w83637hf
)
&&
(
i
==
4
||
i
==
5
)))
&&
(
i
==
5
||
i
==
6
)))
continue
;
data
->
in
[
i
]
=
w83627hf_read_value
(
client
,
W83781D_REG_IN
(
i
));
...
...
drivers/i2c/busses/i2c-viapro.c
浏览文件 @
969780f8
...
...
@@ -142,19 +142,18 @@ static int vt596_transaction(u8 size)
/* Make sure the SMBus host is ready to start transmitting */
if
((
temp
=
inb_p
(
SMBHSTSTS
))
&
0x1F
)
{
dev_dbg
(
&
vt596_adapter
.
dev
,
"SMBus busy (0x%02x). "
"Resetting...
"
,
temp
);
"Resetting...
\n
"
,
temp
);
outb_p
(
temp
,
SMBHSTSTS
);
if
((
temp
=
inb_p
(
SMBHSTSTS
))
&
0x1F
)
{
printk
(
"Failed! (0x%02x)
\n
"
,
temp
);
dev_err
(
&
vt596_adapter
.
dev
,
"SMBus reset failed! "
"(0x%02x)
\n
"
,
temp
);
return
-
1
;
}
else
{
printk
(
"Successful!
\n
"
);
}
}
/* Start the transaction by setting bit 6 */
outb_p
(
0x40
|
(
size
&
0x3C
)
,
SMBHSTCNT
);
outb_p
(
0x40
|
size
,
SMBHSTCNT
);
/* We will always wait for a fraction of a second */
do
{
...
...
@@ -171,7 +170,7 @@ static int vt596_transaction(u8 size)
if
(
temp
&
0x10
)
{
result
=
-
1
;
dev_err
(
&
vt596_adapter
.
dev
,
"Transaction failed (0x%02x)
\n
"
,
inb_p
(
SMBHSTCNT
)
&
0x3C
);
size
);
}
if
(
temp
&
0x08
)
{
...
...
@@ -180,11 +179,13 @@ static int vt596_transaction(u8 size)
}
if
(
temp
&
0x04
)
{
int
read
=
inb_p
(
SMBHSTADD
)
&
0x01
;
result
=
-
1
;
/* Quick commands are used to probe for chips, so
errors are expected, and we don't want to frighten the
user. */
if
((
inb_p
(
SMBHSTCNT
)
&
0x3C
)
!=
VT596_QUICK
)
/* The quick and receive byte commands are used to probe
for chips, so errors are expected, and we don't want
to frighten the user. */
if
(
!
((
size
==
VT596_QUICK
&&
!
read
)
||
(
size
==
VT596_BYTE
&&
read
)))
dev_err
(
&
vt596_adapter
.
dev
,
"Transaction error!
\n
"
);
}
...
...
@@ -462,9 +463,9 @@ static void __exit i2c_vt596_exit(void)
}
}
MODULE_AUTHOR
(
"Frodo Looijaard <frodol@dds.nl
> and "
"Philip Edelbrock <phil@netroedge.com
>"
);
MODULE_AUTHOR
(
"Kyosti Malkki <kmalkki@cc.hut.fi>, "
"Mark D. Studebaker <mdsxyz123@yahoo.com
> and "
"Jean Delvare <khali@linux-fr.org
>"
);
MODULE_DESCRIPTION
(
"vt82c596 SMBus driver"
);
MODULE_LICENSE
(
"GPL"
);
...
...
drivers/i2c/chips/ds1337.c
浏览文件 @
969780f8
...
...
@@ -164,9 +164,9 @@ static int ds1337_set_datetime(struct i2c_client *client, struct rtc_time *dt)
buf
[
1
]
=
BIN2BCD
(
dt
->
tm_sec
);
buf
[
2
]
=
BIN2BCD
(
dt
->
tm_min
);
buf
[
3
]
=
BIN2BCD
(
dt
->
tm_hour
);
buf
[
4
]
=
BIN2BCD
(
dt
->
tm_wday
)
+
1
;
buf
[
4
]
=
BIN2BCD
(
dt
->
tm_wday
+
1
)
;
buf
[
5
]
=
BIN2BCD
(
dt
->
tm_mday
);
buf
[
6
]
=
BIN2BCD
(
dt
->
tm_mon
)
+
1
;
buf
[
6
]
=
BIN2BCD
(
dt
->
tm_mon
+
1
)
;
val
=
dt
->
tm_year
;
if
(
val
>=
100
)
{
val
-=
100
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录