diff options
-rw-r--r-- | drivers/platform/x86/ideapad_acpi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/ideapad_acpi.c b/drivers/platform/x86/ideapad_acpi.c index 8a89902e5d55..798496353e8c 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, | |||
140 | return 0; | 140 | return 0; |
141 | if (sscanf(buf, "%i", &state) != 1) | 141 | if (sscanf(buf, "%i", &state) != 1) |
142 | return -EINVAL; | 142 | return -EINVAL; |
143 | ret = ideapad_dev_set_state(IDEAPAD_DEV_CAMERA, state); | 143 | ret = ideapad_dev_set_state(IDEAPAD_DEV_CAMERA, !!state); |
144 | if (ret < 0) | 144 | if (ret < 0) |
145 | return ret; | 145 | return ret; |
146 | return count; | 146 | return count; |