summaryrefslogtreecommitdiff
path: root/drivers/misc/ti_dac7512.c
diff options
context:
space:
mode:
authorAllen Pais <allen.pais@oracle.com>2014-09-19 13:42:26 (GMT)
committerDavid S. Miller <davem@davemloft.net>2014-09-30 21:37:35 (GMT)
commitde5b73f08468b4fc5e2f6d1505f650262622f78b (patch)
tree816a637bb63a32c37b87b1624b25aa76c4d18d91 /drivers/misc/ti_dac7512.c
parent9bce21828d54a95143f1b74619705c2dd8e88b92 (diff)
downloadlinux-de5b73f08468b4fc5e2f6d1505f650262622f78b.tar.xz
sunvdc: compute vdisk geometry from capacity
The LDom diskserver doesn't return reliable geometry data. In addition, the types for all fields in the vio_disk_geom are u16, which were being truncated in the cast into the u8's of the Linux struct hd_geometry. Modify vdc_getgeo() to compute the geometry from the disk's capacity in a manner consistent with xen-blkfront::blkif_getgeo(). Signed-off-by: Dwight Engen <dwight.engen@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/misc/ti_dac7512.c')
0 files changed, 0 insertions, 0 deletions