mtd: rawnand: qcom: Add helper to check last code word
authorMd Sadre Alam <mdalam@codeaurora.org>
Tue, 23 Feb 2021 19:38:58 +0000 (01:08 +0530)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 11 Mar 2021 08:37:29 +0000 (09:37 +0100)
commitb057e498fdaff82092710b0d7c553d3375b2e314
tree55871c4a914fe5de949d33a9a96b3e33675c2c7d
parent9a7c39e23d7059ba6ef231d941dd820643bd5ce2
mtd: rawnand: qcom: Add helper to check last code word

Add the qcom_nandc_is_last_cw() helper which checks if
the input cw index is the last one or not.

Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/1614109141-7531-2-git-send-email-mdalam@codeaurora.org
drivers/mtd/nand/raw/qcom_nandc.c