mirror of
https://github.com/wessel-novacustom/clevo-keyboard.git
synced 2024-11-15 03:34:01 +01:00
Fix wrong macro call breaking compilation and add header guard
This commit is contained in:
parent
5b99255be8
commit
226a40b8fb
|
@ -16,6 +16,9 @@
|
|||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#ifndef TONGFANG_WMI_H
|
||||
#define TONGFANG_WMI_H
|
||||
|
||||
#include <linux/acpi.h>
|
||||
#include <linux/wmi.h>
|
||||
#include <linux/mutex.h>
|
||||
|
@ -327,7 +330,7 @@ static u32 uw_set_fan(u32 fan_index, u8 fan_speed)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static u32 uw_set_fan_auto()
|
||||
static u32 uw_set_fan_auto(void)
|
||||
{
|
||||
u8 reg_high = 0x18;
|
||||
u32 i;
|
||||
|
@ -351,3 +354,5 @@ static u32 uw_set_fan_auto()
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -83,6 +83,6 @@
|
|||
#define W_UW_FANSPEED2 _IOW(MAGIC_WRITE_UW, 0x11, int32_t*)
|
||||
#define W_UW_MODE _IOW(MAGIC_WRITE_UW, 0x12, int32_t*)
|
||||
#define W_UW_MODE_ENABLE _IOW(MAGIC_WRITE_UW, 0x13, int32_t*)
|
||||
#define W_UW_FANAUTO _IOW(MAGIC_WRITE_UW, 0x14) // undo all previous calls of W_UW_FANSPEED and W_UW_FANSPEED2
|
||||
#define W_UW_FANAUTO _IO(MAGIC_WRITE_UW, 0x14) // undo all previous calls of W_UW_FANSPEED and W_UW_FANSPEED2
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue