]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mtd: rawnand: qcom: use FIELD_PREP and GENMASK
authorMd Sadre Alam <quic_mdalam@quicinc.com>
Wed, 20 Nov 2024 09:15:03 +0000 (14:45 +0530)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 24 Dec 2024 15:22:02 +0000 (16:22 +0100)
commit0c08080fd71cd5dd59643104b39d3c89d793ab3c
treebd4181aea2e85059cd99ae402c56c4458bdd9cd5
parentfdf3ee5c6e5278dab4f60b998b47ed2d510bf80f
mtd: rawnand: qcom: use FIELD_PREP and GENMASK

Use the bitfield macro FIELD_PREP, and GENMASK to
do the shift and mask in one go. This makes the code
more readable.

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Md Sadre Alam <quic_mdalam@quicinc.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/qcom_nandc.c
include/linux/mtd/nand-qpic-common.h