MLK-21120-1 input: keyboard: imx_sc_pwrkey: Fix building against fresh SCFW
authorLeonard Crestez <leonard.crestez@nxp.com>
Tue, 26 Mar 2019 18:01:07 +0000 (20:01 +0200)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
The imx_4.19.y branch has a fresh import of SCFW and there are a few
tiny changes required to build this driver.

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Acked-by: Anson Huang <Anson.Huang@nxp.com>
drivers/input/keyboard/imx_sc_pwrkey.c

index 10c0d06..f98c348 100644 (file)
@@ -27,6 +27,7 @@
 #include <linux/platform_device.h>
 #include <soc/imx8/sc/sci.h>
 #include <soc/imx8/sc/svc/irq/api.h>
+#include <soc/imx8/sc/svc/misc/api.h>
 
 #define DEBOUNCE_TIME  100
 #define REPEAT_INTERVAL        60
@@ -63,7 +64,7 @@ static int imx_sc_pwrkey_notify(struct notifier_block *nb,
 static void imx_sc_check_for_events(struct work_struct *work)
 {
        struct input_dev *input = pdata->input;
-       bool state;
+       sc_bool_t state;
 
        sc_misc_get_button_status(pdata->ipcHandle, &state);
        /*