s390/dasd: Refactor dasd format functions
authorJan Höppner <hoeppner@linux.vnet.ibm.com>
Wed, 19 Aug 2015 09:16:35 +0000 (11:16 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 7 Mar 2016 12:12:00 +0000 (13:12 +0100)
commit570d237c19f8d0f1dfd214767f2d995b8291138a
treeedc7a9b752dc07604106987770fe39ba6429f2c0
parent8542885bf5338bfccf779868a5d143620e794ff9
s390/dasd: Refactor dasd format functions

Prepare for new format checking function by renaming functions and
moving reusable code to separate functions:

- Move sanity checks into a new function and make it reusable.
- Move common format code to a new function called
  dasd_eckd_format_process_data.
- Create the generic function dasd_eckd_format_build_ccw_req, which
  itself will then decide what ccw request is being built according to
  the input data. (with upcoming functionality).

Signed-off-by: Jan Höppner <hoeppner@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/block/dasd_eckd.c