mtd: get rid of direct mtd->func use
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest17 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/17 | mtd: introduce mtd_has_oob helperdrivers/ drivers/ include/ | +8 | 0 replies | |
| 2/17 | mtd: do use mtd->point directlyfs/ fs/ fs/ +1 more | +15 | 2 replies | |
| 3/17 | mtd: do not use mtd->get_unmapped_area directlydrivers/ drivers/ include/ | +14 | 0 replies | |
| 4/17 | romfs: do not use mtd->get_unmapped_area directlyfs/ | +13 | 0 replies | |
| 5/17 | mtd: mtdoops: do not use mtd->panic_write directlydrivers/ include/ | +10 | 0 replies | |
| 6/17 | mtd: do not use mtd->read_oob directlydrivers/ include/ | +6 | 0 replies | |
| 7/17 | mtd: do not use mtd->get_*_prot_info directlydrivers/ include/ | +7 | 0 replies | |
| 8/17 | mtd: do not use mtd->read_*_prot_reg directlydrivers/ include/ | +14 | 0 replies | |
| 9/17 | mtd: mtd->write_user_prot_reg directlydrivers/ include/ | +2 | 0 replies | |
| 10/17 | mtd: do not use mtd->lock_user_prot_reg directlydrivers/ include/ | +2 | 0 replies | |
| 11/17 | mtd: harmonize mtd_writev usagedrivers/ drivers/ fs/ +1 more | +27 | 0 replies | |
| 12/17 | mtd: do not use mtd->sync directlydrivers/ drivers/ drivers/ +6 more | +11 | 0 replies | |
| 13/17 | mtd: do not use mtd->lock, unlock and is_locked directlydrivers/ drivers/ drivers/ +2 more | +19 | 0 replies | |
| 14/17 | mtd: do not use mtd->suspend and mtd->resume directlydrivers/ drivers/ drivers/ +1 more | +9 | 0 replies | |
| 15/17 | mtd: introduce mtd_can_have_bb helperdrivers/ drivers/ drivers/ +9 more | +21 | 0 replies | |
| 16/17 | logfs: do not use 'mtd->block_isbad' directlyfs/ | +2 | 0 replies | |
| 17/17 | mtd: do not use mtd->block_markbad directlydrivers/ drivers/ drivers/ +3 more | +6 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/17] mtd: get rid of direct mtd->func use
Hi,
this patch-set goes on top of the "MTD API rework" patches which I sent recently:
http://lists.infradead.org/pipermail/linux-mtd/2011-December/039031.html
This patch-set further removes direct mtd function pointers accesses like:
if (mtd->block_isbad)
blah
This is a part of the big MTD API re-work we have started. The next steps will be:
1. Rename all the function pointers to make sure we catch all direct uses:
(s/mtd->func/mtd->_func/g)
2. Move common input parameters check from implementations to the wrapper function to get rid of duplication.
Artem.