diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/ks7010/ks_hostif.c | 7 | ||||
-rw-r--r-- | drivers/staging/ks7010/ks_hostif.h | 8 |
2 files changed, 9 insertions, 6 deletions
diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_hostif.c index 3f2fd6cde4eb..81419227ea54 100644 --- a/drivers/staging/ks7010/ks_hostif.c +++ b/drivers/staging/ks7010/ks_hostif.c @@ -1665,11 +1665,12 @@ void hostif_power_mngmt_request(struct ks_wlan_private *priv, } static -void hostif_sleep_request(struct ks_wlan_private *priv, unsigned long mode) +void hostif_sleep_request(struct ks_wlan_private *priv, + enum sleep_mode_type mode) { struct hostif_sleep_request_t *pp; - DPRINTK(3, "mode=%lu\n", mode); + DPRINTK(3, "mode=%lu\n", (long)mode); if (mode == SLP_SLEEP) { pp = hostif_generic_request(sizeof(*pp), HIF_SLEEP_REQ); @@ -1684,7 +1685,7 @@ void hostif_sleep_request(struct ks_wlan_private *priv, unsigned long mode) atomic_set(&priv->sleepstatus.wakeup_request, 1); queue_delayed_work(priv->wq, &priv->rw_dwork, 1); } else { - DPRINTK(3, "invalid mode %ld\n", mode); + DPRINTK(3, "invalid mode %ld\n", (long)mode); return; } } diff --git a/drivers/staging/ks7010/ks_hostif.h b/drivers/staging/ks7010/ks_hostif.h index d773432b1be3..97f01925257f 100644 --- a/drivers/staging/ks7010/ks_hostif.h +++ b/drivers/staging/ks7010/ks_hostif.h @@ -542,9 +542,11 @@ struct hostif_phy_information_confirm_t { u32 rx_error; } __packed; -/* sleep mode */ -#define SLP_ACTIVE 0 -#define SLP_SLEEP 1 +enum sleep_mode_type { + SLP_ACTIVE, + SLP_SLEEP +}; + struct hostif_sleep_request_t { struct hostif_hdr header; } __packed; |