staging: rts5208: Remove macros scsi_lock(), scsi_unlock()
authorSoumya Negi <soumya.negi97@gmail.com>
Thu, 12 Oct 2023 23:29:06 +0000 (16:29 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 15 Oct 2023 16:20:35 +0000 (18:20 +0200)
commit84b52696b99edbc63a855b5a44d9e7f02e11fde5
tree365aa2671e073f9602f271c8258b5de500439bfb
parent5b91f876f9e31c106177ee9341412d64e51f5ebf
staging: rts5208: Remove macros scsi_lock(), scsi_unlock()

The scsi_lock() and scsi_unlock() macros protect the sm_state and the
single queue element srb for write access in the driver. As suggested,
these names are very generic. Remove the macros from header file and call
spin_lock_irq() & spin_unlock_irq() directly instead.

Suggested-by: Dan Carpenter <dan.carpenter@linaro.org>
Suggested-by: Julia Lawall <julia.lawall@inria.fr>
Signed-off-by: Soumya Negi <soumya.negi97@gmail.com>
Link: https://lore.kernel.org/r/75a5990190cf7a5d20d1c27237b90b583e68ced8.1697152251.git.soumya.negi97@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rts5208/rtsx.c
drivers/staging/rts5208/rtsx.h