diff options
author | Ebru Akagunduz <ebru.akagunduz@gmail.com> | 2014-03-06 17:14:37 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-03-07 15:45:54 -0800 |
commit | 693e1cc621c17f29fef7c85550165ee61067f13e (patch) | |
tree | 794385ac838f48943a74b64cecb004ea8dc95923 /drivers/staging/ft1000 | |
parent | f10490e1b3a168968215619e8749c60b35fd8e50 (diff) |
Staging:ft1000: Fix __packed is preferred over __attribute__((packed)) in ft1000_ioctl.h
Fix checkpatch.pl issues with __packed is preferred
over __attribute__((packed)) in ft1000_ioctl.h
Signed-off-by: Ebru Akagunduz <ebru.akagunduz@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ft1000')
-rw-r--r-- | drivers/staging/ft1000/ft1000-usb/ft1000_ioctl.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/ft1000/ft1000-usb/ft1000_ioctl.h b/drivers/staging/ft1000/ft1000-usb/ft1000_ioctl.h index 24b8d77a132c..419e534874f9 100644 --- a/drivers/staging/ft1000/ft1000-usb/ft1000_ioctl.h +++ b/drivers/staging/ft1000/ft1000-usb/ft1000_ioctl.h @@ -30,7 +30,7 @@ typedef struct _IOCTL_GET_VER { unsigned long drv_ver; -} __attribute__ ((packed)) IOCTL_GET_VER, *PIOCTL_GET_VER; +} __packed IOCTL_GET_VER, *PIOCTL_GET_VER; /* Data structure for Dsp statistics */ typedef struct _IOCTL_GET_DSP_STAT { @@ -67,19 +67,19 @@ typedef struct _IOCTL_GET_DSP_STAT { unsigned long ConTm; /* Current session connection time in seconds */ unsigned char CalVer[CALVERSZ]; /* Proprietary Calibration Version */ unsigned char CalDate[CALDATESZ]; /* Proprietary Calibration Date */ -} __attribute__ ((packed)) IOCTL_GET_DSP_STAT, *PIOCTL_GET_DSP_STAT; +} __packed IOCTL_GET_DSP_STAT, *PIOCTL_GET_DSP_STAT; /* Data structure for Dual Ported RAM messaging between Host and Dsp */ typedef struct _IOCTL_DPRAM_BLK { unsigned short total_len; struct pseudo_hdr pseudohdr; unsigned char buffer[1780]; -} __attribute__ ((packed)) IOCTL_DPRAM_BLK, *PIOCTL_DPRAM_BLK; +} __packed IOCTL_DPRAM_BLK, *PIOCTL_DPRAM_BLK; typedef struct _IOCTL_DPRAM_COMMAND { unsigned short extra; IOCTL_DPRAM_BLK dpram_blk; -} __attribute__ ((packed)) IOCTL_DPRAM_COMMAND, *PIOCTL_DPRAM_COMMAND; +} __packed IOCTL_DPRAM_COMMAND, *PIOCTL_DPRAM_COMMAND; /* * Custom IOCTL command codes |