block: sed-opal: unify retrieval of table columns
Subsystems (2)
PATCH 12/16 block: sed-opal: unify retrieval of table columns
Instead of having multiple places defining the same argument list to get a specific column of a sed-opal table, provide a generic version and call it from those functions.
Signed-off-by Jonas Rabenstein <[email protected]>
--- block/opal_proto.h | 2 + block/sed-opal.c | 132 +++++++++++++++++---------------------------- 2 files changed, 50 insertions(+), 84 deletions(-)
block/opal_proto.h +2 -0
@@ -170,6 +170,8 @@ enum opal_token {OPAL_READLOCKED =0x07 ,OPAL_WRITELOCKED =0x08 ,OPAL_ACTIVEKEY =0x0A , +/* lockingsp table */ +OPAL_LIFECYCLE =0x06 ,/* locking info table */ OPAL_MAXRANGES = 0x04,/* mbr control */
block/sed-opal.c +48 -84
176 lines not on this page · raw message
Signature · 1 line
2.20.1