diff options
Diffstat (limited to 'drivers/net/wireless/libertas')
-rw-r--r-- | drivers/net/wireless/libertas/cfg.c | 6 | ||||
-rw-r--r-- | drivers/net/wireless/libertas/debugfs.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/libertas/host.h | 6 |
3 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/wireless/libertas/cfg.c b/drivers/net/wireless/libertas/cfg.c index f36cc970ad1..7e074160885 100644 --- a/drivers/net/wireless/libertas/cfg.c +++ b/drivers/net/wireless/libertas/cfg.c @@ -891,7 +891,7 @@ struct cmd_key_material { __le16 action; struct MrvlIEtype_keyParamSet param; -} __attribute__ ((packed)); +} __packed; static int lbs_set_key_material(struct lbs_private *priv, int key_type, @@ -1395,7 +1395,7 @@ struct cmd_monitor_mode { __le16 action; __le16 mode; -} __attribute__ ((packed)); +} __packed; static int lbs_enable_monitor_mode(struct lbs_private *priv, int mode) { @@ -1450,7 +1450,7 @@ struct cmd_rssi { __le16 nf; __le16 avg_snr; __le16 avg_nf; -} __attribute__ ((packed)); +} __packed; static int lbs_get_signal(struct lbs_private *priv, s8 *signal, s8 *noise) { diff --git a/drivers/net/wireless/libertas/debugfs.c b/drivers/net/wireless/libertas/debugfs.c index acaf8116462..3db621b18a2 100644 --- a/drivers/net/wireless/libertas/debugfs.c +++ b/drivers/net/wireless/libertas/debugfs.c @@ -905,7 +905,7 @@ static ssize_t lbs_debugfs_read(struct file *file, char __user *userbuf, p = buf; - d = (struct debug_data *)file->private_data; + d = file->private_data; for (i = 0; i < num_of_items; i++) { if (d[i].size == 1) @@ -944,7 +944,7 @@ static ssize_t lbs_debugfs_write(struct file *f, const char __user *buf, char *p0; char *p1; char *p2; - struct debug_data *d = (struct debug_data *)f->private_data; + struct debug_data *d = f->private_data; pdata = kmalloc(cnt, GFP_KERNEL); if (pdata == NULL) diff --git a/drivers/net/wireless/libertas/host.h b/drivers/net/wireless/libertas/host.h index db8e209878c..43d020cd740 100644 --- a/drivers/net/wireless/libertas/host.h +++ b/drivers/net/wireless/libertas/host.h @@ -398,12 +398,12 @@ struct mrvl_ie_domain_param_set { u8 countrycode[COUNTRY_CODE_LEN]; struct ieee80211_country_ie_triplet triplet[1]; -} __attribute__ ((packed)); +} __packed; struct cmd_ds_802_11d_domain_info { __le16 action; struct mrvl_ie_domain_param_set domain; -} __attribute__ ((packed)); +} __packed; struct lbs_802_11d_domain_reg { /** Country code*/ @@ -411,7 +411,7 @@ struct lbs_802_11d_domain_reg { /** No. of triplet*/ u8 no_triplet; struct ieee80211_country_ie_triplet triplet[MRVDRV_MAX_TRIPLET_802_11D]; -} __attribute__ ((packed)); +} __packed; /* * Define data structure for CMD_GET_HW_SPEC |