]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
scsi: ufs: core: Fix spelling of a sysfs attribute name
authorBart Van Assche <bvanassche@acm.org>
Mon, 7 Jul 2025 17:26:05 +0000 (13:26 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jul 2025 16:24:58 +0000 (18:24 +0200)
[ Upstream commit 021f243627ead17eb6500170256d3d9be787dad8 ]

Change "resourse" into "resource" in the name of a sysfs attribute.

Fixes: d829fc8a1058 ("scsi: ufs: sysfs: unit descriptor")
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20250624181658.336035-1-bvanassche@acm.org
Reviewed-by: Avri Altman <avri.altman@sandisk.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Documentation/ABI/testing/sysfs-driver-ufs
drivers/scsi/ufs/ufs-sysfs.c

index 016724ec26d5a08c971eb981e2e9ded35af378f1..7318565d68f5856c2fd33e6b1292bbc3a91ec567 100644 (file)
@@ -589,7 +589,7 @@ Description:        This file shows the thin provisioning type. This is one of
                about the descriptor could be found at UFS specifications 2.1.
                The file is read only.
 
-What:          /sys/class/scsi_device/*/device/unit_descriptor/physical_memory_resourse_count
+What:          /sys/class/scsi_device/*/device/unit_descriptor/physical_memory_resource_count
 Date:          February 2018
 Contact:       Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
 Description:   This file shows the total physical memory resources. This is
index ad2abc96c0f19cc36008632d0adf0606f6b6c429..97e3857bda32ab01a503c048fba15ca30c373ed9 100644 (file)
@@ -753,7 +753,7 @@ UFS_UNIT_DESC_PARAM(logical_block_size, _LOGICAL_BLK_SIZE, 1);
 UFS_UNIT_DESC_PARAM(logical_block_count, _LOGICAL_BLK_COUNT, 8);
 UFS_UNIT_DESC_PARAM(erase_block_size, _ERASE_BLK_SIZE, 4);
 UFS_UNIT_DESC_PARAM(provisioning_type, _PROVISIONING_TYPE, 1);
-UFS_UNIT_DESC_PARAM(physical_memory_resourse_count, _PHY_MEM_RSRC_CNT, 8);
+UFS_UNIT_DESC_PARAM(physical_memory_resource_count, _PHY_MEM_RSRC_CNT, 8);
 UFS_UNIT_DESC_PARAM(context_capabilities, _CTX_CAPABILITIES, 2);
 UFS_UNIT_DESC_PARAM(large_unit_granularity, _LARGE_UNIT_SIZE_M1, 1);
 
@@ -768,7 +768,7 @@ static struct attribute *ufs_sysfs_unit_descriptor[] = {
        &dev_attr_logical_block_count.attr,
        &dev_attr_erase_block_size.attr,
        &dev_attr_provisioning_type.attr,
-       &dev_attr_physical_memory_resourse_count.attr,
+       &dev_attr_physical_memory_resource_count.attr,
        &dev_attr_context_capabilities.attr,
        &dev_attr_large_unit_granularity.attr,
        NULL,