Commit 8209b6d5 authored by Tomas Winkler's avatar Tomas Winkler Committed by Martin K. Petersen

scsi: ufs: unexport descritpor reading functions

Unexport ufshcd_read_device_desc and ufshcd_read_string_desc there is no
really possibility to calling them directly outside of UFS context.
Signed-off-by: default avatarTomas Winkler <tomas.winkler@intel.com>
Reviewed-by: default avatarSubhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 26cf9155
...@@ -2545,11 +2545,10 @@ static inline int ufshcd_read_power_desc(struct ufs_hba *hba, ...@@ -2545,11 +2545,10 @@ static inline int ufshcd_read_power_desc(struct ufs_hba *hba,
return err; return err;
} }
int ufshcd_read_device_desc(struct ufs_hba *hba, u8 *buf, u32 size) static int ufshcd_read_device_desc(struct ufs_hba *hba, u8 *buf, u32 size)
{ {
return ufshcd_read_desc(hba, QUERY_DESC_IDN_DEVICE, 0, buf, size); return ufshcd_read_desc(hba, QUERY_DESC_IDN_DEVICE, 0, buf, size);
} }
EXPORT_SYMBOL(ufshcd_read_device_desc);
/** /**
* ufshcd_read_string_desc - read string descriptor * ufshcd_read_string_desc - read string descriptor
...@@ -2561,8 +2560,9 @@ EXPORT_SYMBOL(ufshcd_read_device_desc); ...@@ -2561,8 +2560,9 @@ EXPORT_SYMBOL(ufshcd_read_device_desc);
* *
* Return 0 in case of success, non-zero otherwise * Return 0 in case of success, non-zero otherwise
*/ */
int ufshcd_read_string_desc(struct ufs_hba *hba, int desc_index, u8 *buf, #define ASCII_STD true
u32 size, bool ascii) static int ufshcd_read_string_desc(struct ufs_hba *hba, int desc_index,
u8 *buf, u32 size, bool ascii)
{ {
int err = 0; int err = 0;
...@@ -2618,7 +2618,6 @@ int ufshcd_read_string_desc(struct ufs_hba *hba, int desc_index, u8 *buf, ...@@ -2618,7 +2618,6 @@ int ufshcd_read_string_desc(struct ufs_hba *hba, int desc_index, u8 *buf,
out: out:
return err; return err;
} }
EXPORT_SYMBOL(ufshcd_read_string_desc);
/** /**
* ufshcd_read_unit_desc_param - read the specified unit descriptor parameter * ufshcd_read_unit_desc_param - read the specified unit descriptor parameter
......
...@@ -781,8 +781,6 @@ static inline int ufshcd_dme_peer_get(struct ufs_hba *hba, ...@@ -781,8 +781,6 @@ static inline int ufshcd_dme_peer_get(struct ufs_hba *hba,
return ufshcd_dme_get_attr(hba, attr_sel, mib_val, DME_PEER); return ufshcd_dme_get_attr(hba, attr_sel, mib_val, DME_PEER);
} }
int ufshcd_read_device_desc(struct ufs_hba *hba, u8 *buf, u32 size);
static inline bool ufshcd_is_hs_mode(struct ufs_pa_layer_attr *pwr_info) static inline bool ufshcd_is_hs_mode(struct ufs_pa_layer_attr *pwr_info)
{ {
return (pwr_info->pwr_rx == FAST_MODE || return (pwr_info->pwr_rx == FAST_MODE ||
...@@ -791,11 +789,6 @@ static inline bool ufshcd_is_hs_mode(struct ufs_pa_layer_attr *pwr_info) ...@@ -791,11 +789,6 @@ static inline bool ufshcd_is_hs_mode(struct ufs_pa_layer_attr *pwr_info)
pwr_info->pwr_tx == FASTAUTO_MODE); pwr_info->pwr_tx == FASTAUTO_MODE);
} }
#define ASCII_STD true
int ufshcd_read_string_desc(struct ufs_hba *hba, int desc_index, u8 *buf,
u32 size, bool ascii);
/* Expose Query-Request API */ /* Expose Query-Request API */
int ufshcd_query_flag(struct ufs_hba *hba, enum query_opcode opcode, int ufshcd_query_flag(struct ufs_hba *hba, enum query_opcode opcode,
enum flag_idn idn, bool *flag_res); enum flag_idn idn, bool *flag_res);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment