summaryrefslogtreecommitdiff
path: root/include/fan.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/fan.h')
-rw-r--r--include/fan.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/include/fan.h b/include/fan.h
index 87c8f4b7a6..946d0607c9 100644
--- a/include/fan.h
+++ b/include/fan.h
@@ -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.
*/
@@ -17,7 +17,7 @@ enum fan_channel {
#if DT_NODE_EXISTS(DT_INST(0, cros_ec_fans))
DT_FOREACH_CHILD(DT_INST(0, cros_ec_fans), NODE_ID_AND_COMMA)
#endif /* cros_ec_fans */
- FAN_CH_COUNT
+ FAN_CH_COUNT
};
BUILD_ASSERT(FAN_CH_COUNT == CONFIG_PLATFORM_EC_NUM_FANS);
@@ -50,7 +50,7 @@ struct fan_t {
/* Values for .flags field */
/* Enable automatic RPM control using tach input */
-#define FAN_USE_RPM_MODE BIT(0)
+#define FAN_USE_RPM_MODE BIT(0)
/* Require a higher duty cycle to start up than to keep running */
#define FAN_USE_FAST_START BIT(1)
@@ -62,7 +62,7 @@ extern const struct fan_t fans[];
#endif
/* For convenience */
-#define FAN_CH(fan) fans[fan].conf->ch
+#define FAN_CH(fan) fans[fan].conf->ch
/**
* Set the amount of active cooling needed. The thermal control task will call
@@ -84,7 +84,6 @@ void fan_set_percent_needed(int fan, int pct);
*/
int fan_percent_to_rpm(int fan, int pct);
-
/**
* These functions require chip-specific implementations.
*/
@@ -143,4 +142,4 @@ void fan_set_count(int count);
int is_thermal_control_enabled(int idx);
-#endif /* __CROS_EC_FAN_H */
+#endif /* __CROS_EC_FAN_H */