diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-05 11:09:48 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-05 11:09:48 -0700 |
commit | 580a0bd9b71d8e4e63e0720e64f339c740448c98 (patch) | |
tree | 780bafcebe2e2197fef94d00a8df6525b0e8ef9e /drivers/staging/brcm80211/sys | |
parent | 562c8850786d8d1a9e3f9f076deb581962c594ab (diff) | |
download | op-kernel-dev-580a0bd9b71d8e4e63e0720e64f339c740448c98.zip op-kernel-dev-580a0bd9b71d8e4e63e0720e64f339c740448c98.tar.gz |
Staging: brcm80211: s/uchar/unsigned char/
This changes the usage everywhere in the driver, and removes
the definition as it should no longer be used anywhere.
Cc: Brett Rudley <brudley@broadcom.com>
Cc: Henry Ptasinski <henryp@broadcom.com>
Cc: Nohee Ko <noheek@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/brcm80211/sys')
-rw-r--r-- | drivers/staging/brcm80211/sys/wl_export.h | 2 | ||||
-rw-r--r-- | drivers/staging/brcm80211/sys/wlc_mac80211.c | 20 | ||||
-rw-r--r-- | drivers/staging/brcm80211/sys/wlc_pub.h | 2 |
3 files changed, 12 insertions, 12 deletions
diff --git a/drivers/staging/brcm80211/sys/wl_export.h b/drivers/staging/brcm80211/sys/wl_export.h index 69d06a3..836fb83 100644 --- a/drivers/staging/brcm80211/sys/wl_export.h +++ b/drivers/staging/brcm80211/sys/wl_export.h @@ -45,7 +45,7 @@ extern void wl_add_timer(struct wl_info *wl, struct wl_timer *timer, uint ms, int periodic); extern bool wl_del_timer(struct wl_info *wl, struct wl_timer *timer); -extern uint wl_buf_to_pktcopy(osl_t *osh, void *p, uchar *buf, int len, +extern uint wl_buf_to_pktcopy(osl_t *osh, void *p, unsigned char *buf, int len, uint offset); extern void *wl_get_pktbuffer(osl_t *osh, int len); extern int wl_set_pktlen(osl_t *osh, void *p, int len); diff --git a/drivers/staging/brcm80211/sys/wlc_mac80211.c b/drivers/staging/brcm80211/sys/wlc_mac80211.c index 9b713d3..f3d8d3a 100644 --- a/drivers/staging/brcm80211/sys/wlc_mac80211.c +++ b/drivers/staging/brcm80211/sys/wlc_mac80211.c @@ -3527,12 +3527,12 @@ _wlc_ioctl(wlc_info_t *wlc, int cmd, void *arg, int len, struct wlc_if *wlcif) if (r->size == sizeof(uint32)) r->val = R_REG(osh, - (uint32 *) ((uchar *) (uintptr) regs + + (uint32 *) ((unsigned char *) (uintptr) regs + r->byteoff)); else if (r->size == sizeof(uint16)) r->val = R_REG(osh, - (uint16 *) ((uchar *) (uintptr) regs + + (uint16 *) ((unsigned char *) (uintptr) regs + r->byteoff)); else bcmerror = BCME_BADADDR; @@ -3562,11 +3562,11 @@ _wlc_ioctl(wlc_info_t *wlc, int cmd, void *arg, int len, struct wlc_if *wlcif) } if (r->size == sizeof(uint32)) W_REG(osh, - (uint32 *) ((uchar *) (uintptr) regs + + (uint32 *) ((unsigned char *) (uintptr) regs + r->byteoff), r->val); else if (r->size == sizeof(uint16)) W_REG(osh, - (uint16 *) ((uchar *) (uintptr) regs + + (uint16 *) ((unsigned char *) (uintptr) regs + r->byteoff), r->val); else bcmerror = BCME_BADADDR; @@ -4105,7 +4105,7 @@ _wlc_ioctl(wlc_info_t *wlc, int cmd, void *arg, int len, struct wlc_if *wlcif) case WLC_GET_PHYLIST: { - uchar *cp = arg; + unsigned char *cp = arg; if (len < 3) { bcmerror = BCME_BUFTOOSHORT; break; @@ -5081,7 +5081,7 @@ void wlc_print_txdesc(d11txh_t *txh) char hexbuf[256]; /* add plcp header along with txh descriptor */ - prhex("Raw TxDesc + plcp header", (uchar *) txh, sizeof(d11txh_t) + 48); + prhex("Raw TxDesc + plcp header", (unsigned char *) txh, sizeof(d11txh_t) + 48); printf("TxCtlLow: %04x ", mtcl); printf("TxCtlHigh: %04x ", mtch); @@ -5153,7 +5153,7 @@ void wlc_print_rxh(d11rxhdr_t *rxh) {0, NULL} }; - prhex("Raw RxDesc", (uchar *) rxh, sizeof(d11rxhdr_t)); + prhex("Raw RxDesc", (unsigned char *) rxh, sizeof(d11rxhdr_t)); bcm_format_flags(macstat_flags, macstatus1, flagstr, 64); @@ -5170,7 +5170,7 @@ void wlc_print_rxh(d11rxhdr_t *rxh) #endif /* defined(BCMDBG) */ #if defined(BCMDBG) -int wlc_format_ssid(char *buf, const uchar ssid[], uint ssid_len) +int wlc_format_ssid(char *buf, const unsigned char ssid[], uint ssid_len) { uint i, c; char *p = buf; @@ -5184,7 +5184,7 @@ int wlc_format_ssid(char *buf, const uchar ssid[], uint ssid_len) if (c == '\\') { *p++ = '\\'; *p++ = '\\'; - } else if (isprint((uchar) c)) { + } else if (isprint((unsigned char) c)) { *p++ = (char)c; } else { p += snprintf(p, (endp - p), "\\x%02X", c); @@ -7051,7 +7051,7 @@ prep_mac80211_status(wlc_info_t *wlc, d11rxhdr_t *rxh, void *p, int preamble; int channel; ratespec_t rspec; - uchar *plcp; + unsigned char *plcp; wlc_read_tsf(wlc, &tsf_l, &tsf_h); /* mactime */ rx_status->mactime = tsf_h; diff --git a/drivers/staging/brcm80211/sys/wlc_pub.h b/drivers/staging/brcm80211/sys/wlc_pub.h index 6964660..46a55f1 100644 --- a/drivers/staging/brcm80211/sys/wlc_pub.h +++ b/drivers/staging/brcm80211/sys/wlc_pub.h @@ -603,7 +603,7 @@ extern void wlc_ps_off(struct wlc_info *wlc, struct scb *scb, bool discard); extern bool wlc_radio_monitor_stop(struct wlc_info *wlc); #if defined(BCMDBG) -extern int wlc_format_ssid(char *buf, const uchar ssid[], uint ssid_len); +extern int wlc_format_ssid(char *buf, const unsigned char ssid[], uint ssid_len); #endif extern void wlc_pmkid_build_cand_list(struct wlc_bsscfg *cfg, bool check_SSID); |