[PATCH v2 0/2] ufs: mcq: Fix and cleanup unsafe macros

From: Minwoo Im
Date: Sun May 19 2024 - 18:26:24 EST


Hello,

This patch set fixes an potential bug for further usages in ufs-mcq.c and
contains a simple clean-up converting macro to an inline function.

Please review.

Thanks,

v2:
- Fix missing argument 'hba' in MCQ_OPR_OFFSET_n by converting it to an
inline function (Bart)
- Added [2/2] patch to convert the remaining one macro in ufs-mcq.c to an
inline function along with the previous patch for the sake of consistency.

Minwoo Im (2):
ufs: mcq: Fix missing argument 'hba' in MCQ_OPR_OFFSET_n
ufs: mcq: Convert MCQ_CFG_n to a inline function

drivers/ufs/core/ufs-mcq.c | 35 ++++++++++++++---------------------
include/ufs/ufshcd.h | 13 +++++++++++++
2 files changed, 27 insertions(+), 21 deletions(-)

--
2.34.1