* [PATCH] scsi: ufs: core: Change the variable's(check_for_bkops) type
[not found] <CGME20221111062238epcas1p3418881a8f028e97afbb498645704c9c5@epcas1p3.samsung.com>
@ 2022-11-11 6:22 ` Chanwoo Lee
2022-11-26 0:19 ` Martin K. Petersen
2022-12-01 3:45 ` Martin K. Petersen
0 siblings, 2 replies; 3+ messages in thread
From: Chanwoo Lee @ 2022-11-11 6:22 UTC (permalink / raw)
To: alim.akhtar, avri.altman, bvanassche, jejb, martin.petersen,
beanhuo, adrian.hunter, linux-scsi, linux-kernel
Cc: ChanWoo Lee
From: ChanWoo Lee <cw9316.lee@samsung.com>
It only checks true and false, so it can be used as a bool type.
Signed-off-by: ChanWoo Lee <cw9316.lee@samsung.com>
---
drivers/ufs/core/ufshcd.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c
index fdbcbcf3f9d1..a5b6d6eacf83 100644
--- a/drivers/ufs/core/ufshcd.c
+++ b/drivers/ufs/core/ufshcd.c
@@ -8825,7 +8825,7 @@ static int ufshcd_set_dev_pwr_mode(struct ufs_hba *hba,
static int ufshcd_link_state_transition(struct ufs_hba *hba,
enum uic_link_state req_link_state,
- int check_for_bkops)
+ bool check_for_bkops)
{
int ret = 0;
@@ -8976,7 +8976,7 @@ static void ufshcd_hba_vreg_set_hpm(struct ufs_hba *hba)
static int __ufshcd_wl_suspend(struct ufs_hba *hba, enum ufs_pm_op pm_op)
{
int ret = 0;
- int check_for_bkops;
+ bool check_for_bkops;
enum ufs_pm_level pm_lvl;
enum ufs_dev_pwr_mode req_dev_pwr_mode;
enum uic_link_state req_link_state;
--
2.29.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] scsi: ufs: core: Change the variable's(check_for_bkops) type
2022-11-11 6:22 ` [PATCH] scsi: ufs: core: Change the variable's(check_for_bkops) type Chanwoo Lee
@ 2022-11-26 0:19 ` Martin K. Petersen
2022-12-01 3:45 ` Martin K. Petersen
1 sibling, 0 replies; 3+ messages in thread
From: Martin K. Petersen @ 2022-11-26 0:19 UTC (permalink / raw)
To: Chanwoo Lee
Cc: alim.akhtar, avri.altman, bvanassche, jejb, martin.petersen,
beanhuo, adrian.hunter, linux-scsi, linux-kernel
Chanwoo,
> It only checks true and false, so it can be used as a bool type.
Applied to 6.2/scsi-staging, thanks!
--
Martin K. Petersen Oracle Linux Engineering
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] scsi: ufs: core: Change the variable's(check_for_bkops) type
2022-11-11 6:22 ` [PATCH] scsi: ufs: core: Change the variable's(check_for_bkops) type Chanwoo Lee
2022-11-26 0:19 ` Martin K. Petersen
@ 2022-12-01 3:45 ` Martin K. Petersen
1 sibling, 0 replies; 3+ messages in thread
From: Martin K. Petersen @ 2022-12-01 3:45 UTC (permalink / raw)
To: alim.akhtar, linux-kernel, jejb, bvanassche, avri.altman,
Chanwoo Lee, linux-scsi, adrian.hunter, beanhuo
Cc: Martin K . Petersen
On Fri, 11 Nov 2022 15:22:09 +0900, Chanwoo Lee wrote:
> From: ChanWoo Lee <cw9316.lee@samsung.com>
>
> It only checks true and false, so it can be used as a bool type.
>
>
Applied to 6.2/scsi-queue, thanks!
[1/1] scsi: ufs: core: Change the variable's(check_for_bkops) type
https://git.kernel.org/mkp/scsi/c/5277326d07fb
--
Martin K. Petersen Oracle Linux Engineering
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-12-01 3:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <CGME20221111062238epcas1p3418881a8f028e97afbb498645704c9c5@epcas1p3.samsung.com>
2022-11-11 6:22 ` [PATCH] scsi: ufs: core: Change the variable's(check_for_bkops) type Chanwoo Lee
2022-11-26 0:19 ` Martin K. Petersen
2022-12-01 3:45 ` Martin K. Petersen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).