summaryrefslogtreecommitdiff
path: root/common/backlight_lid.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/backlight_lid.c')
-rw-r--r--common/backlight_lid.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/common/backlight_lid.c b/common/backlight_lid.c
index f0dd3b2e24..f8fd8d637f 100644
--- a/common/backlight_lid.c
+++ b/common/backlight_lid.c
@@ -1,4 +1,4 @@
-/* Copyright 2013 The Chromium OS Authors. All rights reserved.
+/* Copyright 2013 The ChromiumOS Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
@@ -11,7 +11,6 @@
#include "host_command.h"
#include "lid_switch.h"
-
/**
* Activate/Deactivate the backlight GPIO pin considering active high or low.
*/
@@ -32,7 +31,7 @@ static void update_backlight(void)
#ifdef CONFIG_BACKLIGHT_REQ_GPIO
/* Enable the backlight if lid is open AND requested by AP */
enable_backlight(lid_is_open() &&
- gpio_get_level(CONFIG_BACKLIGHT_REQ_GPIO));
+ gpio_get_level(CONFIG_BACKLIGHT_REQ_GPIO));
#else
/*
* Enable backlight if lid is open; this is AND'd with the request from
@@ -79,5 +78,4 @@ switch_command_enable_backlight(struct host_cmd_handler_args *args)
return EC_RES_SUCCESS;
}
DECLARE_HOST_COMMAND(EC_CMD_SWITCH_ENABLE_BKLIGHT,
- switch_command_enable_backlight,
- EC_VER_MASK(0));
+ switch_command_enable_backlight, EC_VER_MASK(0));