hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/scsi/ufs/ufshcd-dwc.c
....@@ -1,13 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * UFS Host driver for Synopsys Designware Core
34 *
45 * Copyright (C) 2015-2016 Synopsys, Inc. (www.synopsys.com)
56 *
67 * Authors: Joao Pinto <jpinto@synopsys.com>
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License version 2 as
10
- * published by the Free Software Foundation.
118 */
129
1310 #include "ufshcd.h"
....@@ -50,7 +47,7 @@
5047 /**
5148 * ufshcd_dwc_link_is_up()
5249 * Check if link is up
53
- * @hba: private structure poitner
50
+ * @hba: private structure pointer
5451 *
5552 * Returns 0 on success, non-zero value on failure
5653 */
....@@ -83,7 +80,7 @@
8380 */
8481 static int ufshcd_dwc_connection_setup(struct ufs_hba *hba)
8582 {
86
- const struct ufshcd_dme_attr_val setup_attrs[] = {
83
+ static const struct ufshcd_dme_attr_val setup_attrs[] = {
8784 { UIC_ARG_MIB(T_CONNECTIONSTATE), 0, DME_LOCAL },
8885 { UIC_ARG_MIB(N_DEVICEID), 0, DME_LOCAL },
8986 { UIC_ARG_MIB(N_DEVICEID_VALID), 0, DME_LOCAL },
....@@ -110,7 +107,7 @@
110107 /**
111108 * ufshcd_dwc_link_startup_notify()
112109 * UFS Host DWC specific link startup sequence
113
- * @hba: private structure poitner
110
+ * @hba: private structure pointer
114111 * @status: Callback notify status
115112 *
116113 * Returns 0 on success, non-zero value on failure