Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

scsi: ufs: ufs-mediatek: Modify the return value

Be consistent with the rest of driver wrt. functions returning bool.

91: return !!(host->caps & UFS_MTK_CAP_BOOST_CRYPT_ENGINE);
98: return !!(host->caps & UFS_MTK_CAP_VA09_PWR_CTRL);
105: return !!(host->caps & UFS_MTK_CAP_BROKEN_VCC);

Signed-off-by: ChanWoo Lee <cw9316.lee@samsung.com>
Link: https://lore.kernel.org/r/20221118045242.2770-1-cw9316.lee@samsung.com
Reviewed-by: Stanley Chu <stanley.chu@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

ChanWoo Lee and committed by
Martin K. Petersen
96a2dfa1 54155528

+1 -1
+1 -1
drivers/ufs/host/ufs-mediatek.c
··· 109 109 { 110 110 struct ufs_mtk_host *host = ufshcd_get_variant(hba); 111 111 112 - return (host->caps & UFS_MTK_CAP_PMC_VIA_FASTAUTO); 112 + return !!(host->caps & UFS_MTK_CAP_PMC_VIA_FASTAUTO); 113 113 } 114 114 115 115 static void ufs_mtk_cfg_unipro_cg(struct ufs_hba *hba, bool enable)