Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
b15654dd
K
Kernel
项目概览
openeuler
/
Kernel
大约 2 年 前同步成功
通知
8
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看板
提交
b15654dd
编写于
11月 14, 2022
作者:
J
Jonathan Cameron
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'i2c/i2c/client_device_id_helper-immutable' into togreg
上级
d94fbd92
66223373
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
15 addition
and
0 deletion
+15
-0
drivers/i2c/i2c-core-base.c
drivers/i2c/i2c-core-base.c
+14
-0
include/linux/i2c.h
include/linux/i2c.h
+1
-0
未找到文件。
drivers/i2c/i2c-core-base.c
浏览文件 @
b15654dd
...
@@ -2236,6 +2236,20 @@ int i2c_get_device_id(const struct i2c_client *client,
...
@@ -2236,6 +2236,20 @@ int i2c_get_device_id(const struct i2c_client *client,
}
}
EXPORT_SYMBOL_GPL
(
i2c_get_device_id
);
EXPORT_SYMBOL_GPL
(
i2c_get_device_id
);
/**
* i2c_client_get_device_id - get the driver match table entry of a device
* @client: the device to query. The device must be bound to a driver
*
* Returns a pointer to the matching entry if found, NULL otherwise.
*/
const
struct
i2c_device_id
*
i2c_client_get_device_id
(
const
struct
i2c_client
*
client
)
{
const
struct
i2c_driver
*
drv
=
to_i2c_driver
(
client
->
dev
.
driver
);
return
i2c_match_id
(
drv
->
id_table
,
client
);
}
EXPORT_SYMBOL_GPL
(
i2c_client_get_device_id
);
/* ----------------------------------------------------
/* ----------------------------------------------------
* the i2c address scanning function
* the i2c address scanning function
* Will not work for 10-bit addresses!
* Will not work for 10-bit addresses!
...
...
include/linux/i2c.h
浏览文件 @
b15654dd
...
@@ -189,6 +189,7 @@ s32 i2c_smbus_read_i2c_block_data_or_emulated(const struct i2c_client *client,
...
@@ -189,6 +189,7 @@ s32 i2c_smbus_read_i2c_block_data_or_emulated(const struct i2c_client *client,
u8
*
values
);
u8
*
values
);
int
i2c_get_device_id
(
const
struct
i2c_client
*
client
,
int
i2c_get_device_id
(
const
struct
i2c_client
*
client
,
struct
i2c_device_identity
*
id
);
struct
i2c_device_identity
*
id
);
const
struct
i2c_device_id
*
i2c_client_get_device_id
(
const
struct
i2c_client
*
client
);
#endif
/* I2C */
#endif
/* I2C */
/**
/**
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录