summaryrefslogtreecommitdiff
path: root/include/ufs/ufs.h
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2023-07-27 22:41:23 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2023-07-31 22:17:51 +0300
commit67a2a8973832cbeb23a5c04a1dda94da71490a0d (patch)
treecbfa8dff39f7b487a81c46f21e4e9d5e9b236928 /include/ufs/ufs.h
parente2566e0b7937f0a0b84f8b662fceebac6a1386c7 (diff)
downloadlinux-67a2a8973832cbeb23a5c04a1dda94da71490a0d.tar.xz
scsi: ufs: Simplify transfer request header initialization
Make the code that initializes UTP transfer request headers easier to read by using bitfields instead of __le32 where appropriate. Cc: "Bao D. Nguyen" <quic_nguyenb@quicinc.com> Cc: Eric Biggers <ebiggers@google.com> Cc: Avri Altman <avri.altman@wdc.com> Cc: Bean Huo <beanhuo@micron.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Signed-off-by: Bart Van Assche <bvanassche@acm.org> Link: https://lore.kernel.org/r/20230727194457.3152309-12-bvanassche@acm.org Reviewed-by: Avri Altman <avri.altman@wdc.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'include/ufs/ufs.h')
-rw-r--r--include/ufs/ufs.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/ufs/ufs.h b/include/ufs/ufs.h
index 0ee1fdf2fe83..80fae9484807 100644
--- a/include/ufs/ufs.h
+++ b/include/ufs/ufs.h
@@ -473,9 +473,6 @@ enum {
UPIU_COMMAND_SET_TYPE_QUERY = 0x2,
};
-/* UTP Transfer Request Command Offset */
-#define UPIU_COMMAND_TYPE_OFFSET 28
-
/* Offset of the response code in the UPIU header */
#define UPIU_RSP_CODE_OFFSET 8