scsi: ufs: ufshcd_get_max_icc_level fix endianity handling
authorTomas Winkler <tomas.winkler@intel.com>
Thu, 5 Jan 2017 08:45:11 +0000 (10:45 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 11 Jan 2017 03:59:58 +0000 (22:59 -0500)
commitd79713f911918e43576338e33396c7f889f5d272
treea7b857d6b81903a939d1a01fbbd1522c9d6fbcaf
parent8209b6d54e7e2f8b305da831c78629b65d144f91
scsi: ufs: ufshcd_get_max_icc_level fix endianity handling

Reading big endian value from a buffer requires explicit cast.
Fix sparse warning:
drivers/scsi/ufs/ufshcd.c:4825:24: warning: cast to restricted __be16

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/ufshcd.c