Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
87b923a2
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
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看板
提交
87b923a2
编写于
8月 13, 2020
作者:
F
Felipe Balbi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
usb: dwc3: core: fix checkpatch warnings
no functional changes Signed-off-by:
N
Felipe Balbi
<
balbi@kernel.org
>
上级
9ae0eb45
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
19 addition
and
18 deletion
+19
-18
drivers/usb/dwc3/core.h
drivers/usb/dwc3/core.h
+19
-18
未找到文件。
drivers/usb/dwc3/core.h
浏览文件 @
87b923a2
...
...
@@ -634,7 +634,7 @@ struct dwc3_trb;
struct
dwc3_event_buffer
{
void
*
buf
;
void
*
cache
;
unsigned
length
;
unsigned
int
length
;
unsigned
int
lpos
;
unsigned
int
count
;
unsigned
int
flags
;
...
...
@@ -694,7 +694,7 @@ struct dwc3_ep {
struct
dwc3
*
dwc
;
u32
saved_state
;
unsigned
flags
;
unsigned
int
flags
;
#define DWC3_EP_ENABLED BIT(0)
#define DWC3_EP_STALL BIT(1)
#define DWC3_EP_WEDGE BIT(2)
...
...
@@ -894,9 +894,9 @@ struct dwc3_request {
struct
scatterlist
*
sg
;
struct
scatterlist
*
start_sg
;
unsigned
num_pending_sgs
;
unsigned
int
num_pending_sgs
;
unsigned
int
num_queued_sgs
;
unsigned
remaining
;
unsigned
int
remaining
;
unsigned
int
status
;
#define DWC3_REQUEST_STATUS_QUEUED 0
...
...
@@ -909,11 +909,11 @@ struct dwc3_request {
struct
dwc3_trb
*
trb
;
dma_addr_t
trb_dma
;
unsigned
num_trbs
;
unsigned
int
num_trbs
;
unsigned
needs_extra_trb
:
1
;
unsigned
direction
:
1
;
unsigned
mapped
:
1
;
unsigned
int
needs_extra_trb
:
1
;
unsigned
int
direction
:
1
;
unsigned
int
mapped
:
1
;
};
/*
...
...
@@ -1011,8 +1011,8 @@ struct dwc3_scratchpad_array {
* @has_lpm_erratum: true when core was configured with LPM Erratum. Note that
* there's now way for software to detect this in runtime.
* @is_utmi_l1_suspend: the core asserts output signal
*
0 - utmi_sleep_n
*
1 - utmi_l1_suspend_n
* 0 - utmi_sleep_n
* 1 - utmi_l1_suspend_n
* @is_fpga: true when we are using the FPGA board
* @pending_events: true when we have pending IRQs to be handled
* @pullups_connected: true when Run/Stop bit is set
...
...
@@ -1048,13 +1048,13 @@ struct dwc3_scratchpad_array {
* instances in park mode.
* @tx_de_emphasis_quirk: set if we enable Tx de-emphasis quirk
* @tx_de_emphasis: Tx de-emphasis value
*
0 - -6dB de-emphasis
*
1 - -3.5dB de-emphasis
*
2 - No de-emphasis
*
3 - Reserved
* 0 - -6dB de-emphasis
* 1 - -3.5dB de-emphasis
* 2 - No de-emphasis
* 3 - Reserved
* @dis_metastability_quirk: set to disable metastability quirk.
* @imod_interval: set the interrupt moderation interval in 250ns
*
increments or 0 to disable.
*
increments or 0 to disable.
*/
struct
dwc3
{
struct
work_struct
drd_work
;
...
...
@@ -1457,9 +1457,10 @@ void dwc3_gadget_exit(struct dwc3 *dwc);
int
dwc3_gadget_set_test_mode
(
struct
dwc3
*
dwc
,
int
mode
);
int
dwc3_gadget_get_link_state
(
struct
dwc3
*
dwc
);
int
dwc3_gadget_set_link_state
(
struct
dwc3
*
dwc
,
enum
dwc3_link_state
state
);
int
dwc3_send_gadget_ep_cmd
(
struct
dwc3_ep
*
dep
,
unsigned
cmd
,
int
dwc3_send_gadget_ep_cmd
(
struct
dwc3_ep
*
dep
,
unsigned
int
cmd
,
struct
dwc3_gadget_ep_cmd_params
*
params
);
int
dwc3_send_gadget_generic_command
(
struct
dwc3
*
dwc
,
unsigned
cmd
,
u32
param
);
int
dwc3_send_gadget_generic_command
(
struct
dwc3
*
dwc
,
unsigned
int
cmd
,
u32
param
);
#else
static
inline
int
dwc3_gadget_init
(
struct
dwc3
*
dwc
)
{
return
0
;
}
...
...
@@ -1473,7 +1474,7 @@ static inline int dwc3_gadget_set_link_state(struct dwc3 *dwc,
enum
dwc3_link_state
state
)
{
return
0
;
}
static
inline
int
dwc3_send_gadget_ep_cmd
(
struct
dwc3_ep
*
dep
,
unsigned
cmd
,
static
inline
int
dwc3_send_gadget_ep_cmd
(
struct
dwc3_ep
*
dep
,
unsigned
int
cmd
,
struct
dwc3_gadget_ep_cmd_params
*
params
)
{
return
0
;
}
static
inline
int
dwc3_send_gadget_generic_command
(
struct
dwc3
*
dwc
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录