]> www.infradead.org Git - mtd-utils.git/commit
flash_{un,}lock: support both lock/unlock in the same binary
authorBrian Norris <computersforpeace@gmail.com>
Thu, 27 Aug 2015 22:03:21 +0000 (15:03 -0700)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 11 Nov 2015 22:05:36 +0000 (14:05 -0800)
commit27f481e9bca1f13781eb197b7362f2ce97c0220a
treee6fe7fb22a870474e574eeec4d4dd41c19a97a18
parenta21f42860f739653deb886a46c8fb6cbb9302e83
flash_{un,}lock: support both lock/unlock in the same binary

Add new --lock/--unlock flags, so we can do either with the same binary.
This will prepare for the addition of other features, so we don't have
to keep duplicating the same binary via #include "flash_unlock.c".

The defaults still work as expected: flash_unlock will default to
REQUEST_UNLOCK, and flash_lock will default to REQUEST_LOCK.

Eventually, we might deprecate one of the two (flash_unlock, probably),
so we only have to ship one flash_{un,}lock binary.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
flash_unlock.c