mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
scsi: ufs: use existing macro CONTROLLER_ENABLE to test register bit
Signed-off-by: Tomohiro Kusumi <tkusumi@tuxera.com> Reviewed-by: Subhash Jadavani <subhashj@codeaurora.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
c9e6010b4e
commit
4a8eec2bac
1 changed files with 2 additions and 1 deletions
|
|
@ -836,7 +836,8 @@ static inline void ufshcd_hba_start(struct ufs_hba *hba)
|
|||
*/
|
||||
static inline bool ufshcd_is_hba_active(struct ufs_hba *hba)
|
||||
{
|
||||
return (ufshcd_readl(hba, REG_CONTROLLER_ENABLE) & 0x1) ? false : true;
|
||||
return (ufshcd_readl(hba, REG_CONTROLLER_ENABLE) & CONTROLLER_ENABLE)
|
||||
? false : true;
|
||||
}
|
||||
|
||||
static const char *ufschd_uic_link_state_to_string(
|
||||
|
|
|
|||
Loading…
Reference in a new issue