| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * UFS Host driver for Synopsys Designware Core |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2015-2016 Synopsys, Inc. (www.synopsys.com) |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * 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. |
|---|
| 11 | 8 | */ |
|---|
| 12 | 9 | |
|---|
| 13 | 10 | #include "ufshcd.h" |
|---|
| .. | .. |
|---|
| 50 | 47 | /** |
|---|
| 51 | 48 | * ufshcd_dwc_link_is_up() |
|---|
| 52 | 49 | * Check if link is up |
|---|
| 53 | | - * @hba: private structure poitner |
|---|
| 50 | + * @hba: private structure pointer |
|---|
| 54 | 51 | * |
|---|
| 55 | 52 | * Returns 0 on success, non-zero value on failure |
|---|
| 56 | 53 | */ |
|---|
| .. | .. |
|---|
| 83 | 80 | */ |
|---|
| 84 | 81 | static int ufshcd_dwc_connection_setup(struct ufs_hba *hba) |
|---|
| 85 | 82 | { |
|---|
| 86 | | - const struct ufshcd_dme_attr_val setup_attrs[] = { |
|---|
| 83 | + static const struct ufshcd_dme_attr_val setup_attrs[] = { |
|---|
| 87 | 84 | { UIC_ARG_MIB(T_CONNECTIONSTATE), 0, DME_LOCAL }, |
|---|
| 88 | 85 | { UIC_ARG_MIB(N_DEVICEID), 0, DME_LOCAL }, |
|---|
| 89 | 86 | { UIC_ARG_MIB(N_DEVICEID_VALID), 0, DME_LOCAL }, |
|---|
| .. | .. |
|---|
| 110 | 107 | /** |
|---|
| 111 | 108 | * ufshcd_dwc_link_startup_notify() |
|---|
| 112 | 109 | * UFS Host DWC specific link startup sequence |
|---|
| 113 | | - * @hba: private structure poitner |
|---|
| 110 | + * @hba: private structure pointer |
|---|
| 114 | 111 | * @status: Callback notify status |
|---|
| 115 | 112 | * |
|---|
| 116 | 113 | * Returns 0 on success, non-zero value on failure |
|---|