diff options
| author | Dmitry Fomichev <dmitry.fomichev@wdc.com> | 2020-09-28 11:35:15 +0900 |
|---|---|---|
| committer | Klaus Jensen <k.jensen@samsung.com> | 2020-10-27 11:29:25 +0100 |
| commit | b865cabf735be793789ad2c7eac97f47a1325966 (patch) | |
| tree | 84ac848c732d0a339cb3f46a86b82443f32dfff8 /include/standard-headers/linux/input-event-codes.h | |
| parent | dcd1496132704ca16fc857a40370a6b9209341ae (diff) | |
| download | focaccia-qemu-b865cabf735be793789ad2c7eac97f47a1325966.tar.gz focaccia-qemu-b865cabf735be793789ad2c7eac97f47a1325966.zip | |
hw/block/nvme: report actual LBA data shift in LBAF
Calculate the data shift value to report based on the set value of logical_block_size device property. In the process, use a local variable to calculate the LBA format index instead of the hardcoded value 0. This makes the code more readable and it will make it easier to add support for multiple LBA formats in the future. Signed-off-by: Dmitry Fomichev <dmitry.fomichev@wdc.com> Signed-off-by: Keith Busch <kbusch@kernel.org> Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Diffstat (limited to 'include/standard-headers/linux/input-event-codes.h')
0 files changed, 0 insertions, 0 deletions