]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: expose subpage size via sysfs
authorArtem Bityutskiy <dedekind@infradead.org>
Sat, 18 Apr 2009 09:29:42 +0000 (12:29 +0300)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sun, 19 Apr 2009 08:12:49 +0000 (09:12 +0100)
commit0b4bf6d2f52074e695292cd7e1b1da7bf3b71bee
treeb44abbd408ae24e5160ced2413e44b1467d03843
parent14f003d13511ca0089b610c41ef497383abbaa45
mtd: expose subpage size via sysfs

MTD has got sysfs support in 2.6.30-rc1. But subpage size is not
exposed there - do this.

UBI utilities badly need this parameter. At the moment there is
no way to get subpage size - ioctls do not return it. And we
just got sysfs support, so we can easilly extend it with this
additional parameter.

This can be merged late in the development cycle because:
1. sysfs support has been just added - there are no users for
   it so far, even.
2. UBI utilities really need this parameter, and it is better
   not to delay this.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/mtdcore.c