scsi: ufs: refactor device descriptor reading
authorTomas Winkler <tomas.winkler@intel.com>
Thu, 5 Jan 2017 08:45:12 +0000 (10:45 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 11 Jan 2017 04:13:48 +0000 (23:13 -0500)
commit93fdd5ac64bbe80dac6416f048405362d7ef0945
tree1b26bc752198c2f6368a624a5b352016c279540e
parentd79713f911918e43576338e33396c7f889f5d272
scsi: ufs: refactor device descriptor reading

Pull device descriptor reading out of ufs quirk so it can be used also
for other purposes.

Revamp the fixup setup:

1. Rename ufs_device_info to ufs_dev_desc as very similar name
   ufs_dev_info is already in use.

2. Make the handlers static as they are not used out of the ufshdc.c
   file.

[mkp: applied by hand]

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Reviewed-by: Subhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufs.h
drivers/scsi/ufs/ufs_quirks.h
drivers/scsi/ufs/ufshcd.c