[PATCH v3 01/10] mtd: nand: rename the cellinfo to bits_per_cell
Brian Norris
computersforpeace at gmail.com
Tue Aug 27 23:02:43 EDT 2013
On 08/27/2013 07:53 PM, Huang Shijie wrote:
> 于 2013年08月28日 10:48, Brian Norris 写道:
>> But splitting this to 2 patches is probably helpful and reasonable.
> Split to 2 patches may cause the Bisect issue.
Not if you "first add the nand_is_slc() helper in one patch (using the
existing 'cellinfo' field), then introduce the simple patch to change
'cellinfo' to 'bits_per_cell'"
You can introduce the helper as
+static inline bool nand_is_slc(struct nand_chip *chip)
+{
+ return !(chip->cellinfo & NAND_CI_CELLTYPE_MSK);
+}
Brian
More information about the linux-mtd
mailing list