]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: part: Add sysfs variable for offset of partition
authorDan Ehrenberg <dehrenberg@chromium.org>
Thu, 2 Apr 2015 22:15:11 +0000 (15:15 -0700)
committerBrian Norris <computersforpeace@gmail.com>
Mon, 6 Apr 2015 00:44:02 +0000 (17:44 -0700)
commit4e240f23983f93abd1f909faee0179cb3a0842c8
tree6c18ffa557b84ff94dd6dedce302a556766decf7
parent8726e0b0d5d5a279579c54f598d95569a2828b25
mtd: part: Add sysfs variable for offset of partition

This patch makes a sysfs variable called 'offset' on each partition
which contains the offset in bytes from the beginning of the master
device that the partition starts.

Signed-off-by: Dan Ehrenberg <dehrenberg@chromium.org>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Documentation/ABI/testing/sysfs-class-mtd
drivers/mtd/mtdpart.c