wlcore/wl18xx/wl12xx: use u8 instead of bool for host_fast_wakeup_support
authorLuciano Coelho <coelho@ti.com>
Thu, 7 Jun 2012 20:39:24 +0000 (23:39 +0300)
committerLuciano Coelho <coelho@ti.com>
Fri, 8 Jun 2012 06:14:08 +0000 (09:14 +0300)
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>
drivers/net/wireless/ti/wl12xx/main.c
drivers/net/wireless/ti/wl18xx/main.c
drivers/net/wireless/ti/wlcore/conf.h

index 8338045d226f3fdc051a190a9bba759452cbcf75..85d1600ee340c20056b30ad6de91d2b799695375 100644 (file)
@@ -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,
index fd02795f830cf091637eb8d8d4c4445fd3358bc3..b6a80cd5e9ef3f7f56d3680aa42ff527da1d23f7 100644 (file)
@@ -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,
index d2c4885d0d77ef646fa11565d21ad7a580a6cb2b..2e84ae113fcec44c915ba685d7415dae72fa3207 100644 (file)
@@ -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
@@ -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 {