Skip to content

Commit

Permalink
wlcore/wl18xx/wl12xx: use u8 instead of bool for host_fast_wakeup_sup…
Browse files Browse the repository at this point in the history
…port

The conf structure is going to be exported to a file, so we should use
only well defined types.  bool is not well defined and may vary from
platform to platform, so change the host_fast_wakeup_support type to
u8 instead.

Signed-off-by: Luciano Coelho <coelho@ti.com>
  • Loading branch information
Luciano Coelho committed Jun 8, 2012
1 parent 9c6ead5 commit 648f6ed
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion drivers/net/wireless/ti/wl12xx/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ static struct wlcore_conf wl12xx_conf = {
},
.pm_config = {
.host_clk_settling_time = 5000,
.host_fast_wakeup_support = false
.host_fast_wakeup_support = CONF_FAST_WAKEUP_DISABLE,
},
.roam_trigger = {
.trigger_pacing = 1,
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/wireless/ti/wl18xx/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ static struct wlcore_conf wl18xx_conf = {
},
.pm_config = {
.host_clk_settling_time = 5000,
.host_fast_wakeup_support = false
.host_fast_wakeup_support = CONF_FAST_WAKEUP_DISABLE,
},
.roam_trigger = {
.trigger_pacing = 1,
Expand Down
9 changes: 7 additions & 2 deletions drivers/net/wireless/ti/wlcore/conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -981,6 +981,11 @@ struct conf_itrim_settings {
u32 timeout;
};

enum conf_fast_wakeup {
CONF_FAST_WAKEUP_ENABLE,
CONF_FAST_WAKEUP_DISABLE,
};

struct conf_pm_config_settings {
/*
* Host clock settling time
Expand All @@ -992,9 +997,9 @@ struct conf_pm_config_settings {
/*
* Host fast wakeup support
*
* Range: true, false
* Range: enum conf_fast_wakeup
*/
bool host_fast_wakeup_support;
u8 host_fast_wakeup_support;
};

struct conf_roam_trigger_settings {
Expand Down

0 comments on commit 648f6ed

Please sign in to comment.