bfin-otp: add writing support
authorMike Frysinger <vapier@gentoo.org>
Wed, 23 Sep 2009 22:57:16 +0000 (15:57 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Sep 2009 14:21:03 +0000 (07:21 -0700)
commit156dd635e26ab2b356be139ec4b5651afd3805e2
tree5bf47aea1c4eb9129e044402bd12be9b0ad1cb9a
parentfbd8ae106850b6a0215c2776e70a75a1b93cafc2
bfin-otp: add writing support

The on-chip OTP may be written at runtime, so enable support for it in the
driver.  However, since writing should really be done only on development
systems, don't bend over backwards to make sure the simple software lock
is per-fd -- per-device is OK.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/bfin-otp.c