ipr: Byte swapping for device_id attribute in sysfs
authorWen Xiong <wenxiong@linux.vnet.ibm.com>
Fri, 12 Jun 2015 01:45:18 +0000 (20:45 -0500)
committerJames Bottomley <JBottomley@Odin.com>
Thu, 30 Jul 2015 19:39:39 +0000 (12:39 -0700)
commitbb8647e86e769bd45d2d5e010b3af516210d5760
treeabe2f51baed5656b33d1a4fc121bef4e06286439
parent0ae80ba91f57726f31b5b5890cb7c5173e624ca4
ipr: Byte swapping for device_id attribute in sysfs

On LE system, users see the wrong device_id attribute. This patch
does necessary byte swapping for device_id attribute and works on
both of LE and BE systems.

Signed-off-by: Wen Xiong <wenxiong@linux.vnet.ibm.com>
Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
drivers/scsi/ipr.c