scsi: ufs: add support for compat ioctl

Add support for compat ioctl so that 32-bit application can
access the UFS ioctl calls on 64-bit kernel.

Change-Id: Id4793bea84405adc7d692d6cf6f2265d1e491c28
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
This commit is contained in:
Subhash Jadavani 2015-10-13 14:25:35 -07:00 committed by David Keitel
parent be361c995c
commit eefe2bc77e

View file

@ -6973,6 +6973,9 @@ static struct scsi_host_template ufshcd_driver_template = {
.eh_host_reset_handler = ufshcd_eh_host_reset_handler,
.eh_timed_out = ufshcd_eh_timed_out,
.ioctl = ufshcd_ioctl,
#ifdef CONFIG_COMPAT
.compat_ioctl = ufshcd_ioctl,
#endif
.this_id = -1,
.sg_tablesize = SG_ALL,
.cmd_per_lun = UFSHCD_CMD_PER_LUN,