]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mtd: docg3: add protection areas sysfs access
authorRobert Jarzmik <robert.jarzmik@free.fr>
Sat, 19 Nov 2011 15:02:58 +0000 (16:02 +0100)
committerArtem Bityutskiy <Artem.Bityutskiy@linux.intel.com>
Thu, 8 Dec 2011 21:49:55 +0000 (23:49 +0200)
commitbf94ca5571a69bc1a53a0b964e1ee4f2e47fa424
treeba9c764d3dd20ce8c4ce10ea0006c94e34ce76d7
parentb3bfa15dc355c240d8be5235ce4f5dbf0100a51b
mtd: docg3: add protection areas sysfs access

As each docg3 chip has 2 protection areas (DPS0 and DPS1),
and because theses areas can prevent user access to the chip
data, add for each floor the sysfs entries which insert the
protection key into the right DPS.

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Reviewed-by: Ivan Djelic <ivan.djelic@parrot.com>
Reviewed-by: Mike Dunn <mikedunn@newsguy.com>
drivers/mtd/devices/docg3.c
drivers/mtd/devices/docg3.h