aboutsummaryrefslogtreecommitdiff
path: root/flash_unlock.c
diff options
context:
space:
mode:
authorMika Westerberg <ext-mika.1.westerberg@nokia.com>2010-02-01 10:03:47 +0100
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2010-02-18 15:42:50 +0200
commita341ac7d0d5c23dd859136018ea6f7ecdc5f65e8 (patch)
tree77109fbb3de946d5c507f29688af50a8aba6c1af /flash_unlock.c
parentacabf7fcea06b7a2926837523561861ed14cab31 (diff)
libubi: add support to attach/detach by MTD device path
struct ubi_attach_request now has additional field 'dev' that can contain path to the MTD device node in the filesystem. Also there are two new functions that are able to handle path to the MTD device node: ubi_attach() - attach MTD device by number or by path ubi_detach() - detach MTD device by path ubi_attach() works like ubi_attach_mtd() when it is passed empty req->dev, otherwise it looks up correct MTD device number based on the given device node path. Signed-off-by: Mika Westerberg <ext-mika.1.westerberg@nokia.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'flash_unlock.c')
0 files changed, 0 insertions, 0 deletions