]> git.itanic.dy.fi Git - linux-stable/commit
scsi: esas2r: Use FIELD_GET() to extract PCIe capability fields
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Wed, 13 Sep 2023 12:27:45 +0000 (15:27 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 14 Sep 2023 01:01:59 +0000 (21:01 -0400)
commit5532f24951503b55b91c4efc1d0f1e7a9e0ec567
tree7b0e7afa1ec3ee28f1d0c180490d04267c73db97
parentccc3e1363069c5955045824bb0e63c51d8873e25
scsi: esas2r: Use FIELD_GET() to extract PCIe capability fields

Use FIELD_GET() to extract PCIe capability register fields instead of
custom masking and shifting. Also remove the unnecessary cast to u8, the
value in those fields always fits to u8.

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20230913122748.29530-8-ilpo.jarvinen@linux.intel.com
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/esas2r/esas2r_ioctl.c