summaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/ideapad_acpi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/platform/x86/ideapad_acpi.c')
-rw-r--r--drivers/platform/x86/ideapad_acpi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/ideapad_acpi.c b/drivers/platform/x86/ideapad_acpi.c
index 8a89902e5d5..798496353e8 100644
--- a/drivers/platform/x86/ideapad_acpi.c
+++ b/drivers/platform/x86/ideapad_acpi.c
@@ -140,7 +140,7 @@ static ssize_t store_ideapad_cam(struct device *dev,
return 0;
if (sscanf(buf, "%i", &state) != 1)
return -EINVAL;
- ret = ideapad_dev_set_state(IDEAPAD_DEV_CAMERA, state);
+ ret = ideapad_dev_set_state(IDEAPAD_DEV_CAMERA, !!state);
if (ret < 0)
return ret;
return count;