]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
mtd: spi-nor: introduce SR_BP_SHIFT define
authorJungseung Lee <js07.lee@samsung.com>
Mon, 13 Jan 2020 05:59:05 +0000 (14:59 +0900)
committerTudor Ambarus <tudor.ambarus@microchip.com>
Mon, 17 Feb 2020 00:07:24 +0000 (02:07 +0200)
commit8c79fa6c44deac8042bd747527fea06a32738158
tree6dbafa09e785efa3f9d4087e3013148c70832873
parent5b24efe7d55a4bea6992ae1ee00707d77ec22575
mtd: spi-nor: introduce SR_BP_SHIFT define

The shift variable of SR_BP is conclusive because the first bit of SR_BP
is fixed on all known flashes. Replace ffs operation with SR_BP_SHIFT.

Signed-off-by: Jungseung Lee <js07.lee@samsung.com>
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
drivers/mtd/spi-nor/spi-nor.c
include/linux/mtd/spi-nor.h