diff options
author | Daniel Golle <daniel@makrotopia.org> | 2022-12-22 19:33:04 +0000 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2023-02-13 22:23:03 +0100 |
commit | 1ecf9e390452e73a362ea7fbde8f3f0db83de856 (patch) | |
tree | 24b76263b83ca3506b3ad5406f8d3c5f3a9aa9e0 /include/linux/mtd | |
parent | 0b3bc49c936c1e6f399fcd2028ce24c3de9e7e59 (diff) | |
download | linux-1ecf9e390452e73a362ea7fbde8f3f0db83de856.tar.gz linux-1ecf9e390452e73a362ea7fbde8f3f0db83de856.tar.bz2 linux-1ecf9e390452e73a362ea7fbde8f3f0db83de856.zip |
mtd: ubi: wire-up parent MTD device
Wire up the device parent pointer of UBI devices to their lower MTD
device, typically an MTD partition or whole-chip device.
The most noticeable change is that in sysfs, previously ubi devices
would be could in /sys/devices/virtual/ubi while after this change they
would be correctly attached to their parent MTD device, e.g.
/sys/devices/platform/1100d000.spi/spi_master/spi1/spi1.0/mtd/mtd2/ubi0.
Locating UBI devices using /sys/class/ubi/ of course still works as
well.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'include/linux/mtd')
0 files changed, 0 insertions, 0 deletions