Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1273414
| From | Brian Norris <computersforpeace@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 01/27] mtd: nand: fix drivers abusing mtd->priv |
| Date | 2015-11-19 20:10 +0100 |
| Message-ID | <qwCKK-549-19@gated-at.bofh.it> (permalink) |
| References | <qvsaK-7Us-5@gated-at.bofh.it> <qvsks-7Yr-59@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, Nov 16, 2015 at 02:37:34PM +0100, Boris Brezillon wrote: > The ->priv field of the mtd_info object attached to a nand_chip device > should point to the nand_chip device. The pxa and cafe drivers are > assigning this field their own private structure, which works fine as long > as the nand_chip field is the first one in the driver private struct but > seems a bit fragile. > Fix that by setting mtd->priv to point the nand_chip field and assigning > chip->priv to the private structure head. > > Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com> Applied to l2-mtd.git -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 01/27] mtd: nand: fix drivers abusing mtd->priv Boris Brezillon <boris.brezillon@free-electrons.com> - 2015-11-16 14:50 +0100 Re: [PATCH 01/27] mtd: nand: fix drivers abusing mtd->priv Brian Norris <computersforpeace@gmail.com> - 2015-11-19 20:10 +0100
csiph-web