aboutsummaryrefslogtreecommitdiffstats
path: root/net/rfkill
diff options
context:
space:
mode:
Diffstat (limited to 'net/rfkill')
-rw-r--r--net/rfkill/rfkill-regulator.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/rfkill/rfkill-regulator.c b/net/rfkill/rfkill-regulator.c
index 2ebfe8d0e873..11da3018a853 100644
--- a/net/rfkill/rfkill-regulator.c
+++ b/net/rfkill/rfkill-regulator.c
@@ -36,12 +36,12 @@ static int rfkill_regulator_set_block(void *data, bool blocked)
36 if (blocked) { 36 if (blocked) {
37 if (rfkill_data->reg_enabled) { 37 if (rfkill_data->reg_enabled) {
38 regulator_disable(rfkill_data->vcc); 38 regulator_disable(rfkill_data->vcc);
39 rfkill_data->reg_enabled = 0; 39 rfkill_data->reg_enabled = false;
40 } 40 }
41 } else { 41 } else {
42 if (!rfkill_data->reg_enabled) { 42 if (!rfkill_data->reg_enabled) {
43 regulator_enable(rfkill_data->vcc); 43 regulator_enable(rfkill_data->vcc);
44 rfkill_data->reg_enabled = 1; 44 rfkill_data->reg_enabled = true;
45 } 45 }
46 } 46 }
47 47
@@ -96,7 +96,7 @@ static int __devinit rfkill_regulator_probe(struct platform_device *pdev)
96 96
97 if (regulator_is_enabled(vcc)) { 97 if (regulator_is_enabled(vcc)) {
98 dev_dbg(&pdev->dev, "Regulator already enabled\n"); 98 dev_dbg(&pdev->dev, "Regulator already enabled\n");
99 rfkill_data->reg_enabled = 1; 99 rfkill_data->reg_enabled = true;
100 } 100 }
101 rfkill_data->vcc = vcc; 101 rfkill_data->vcc = vcc;
102 rfkill_data->rf_kill = rf_kill; 102 rfkill_data->rf_kill = rf_kill;