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>
This commit is contained in:
Dan Ehrenberg 2015-04-02 15:15:11 -07:00 • committed by Brian Norris
commit a62c24d755
2 changed files with 39 additions and 0 deletions