summaryrefslogtreecommitdiff
path: root/zephyr/include/drivers/cros_kb_raw.h
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/include/drivers/cros_kb_raw.h')
-rw-r--r--zephyr/include/drivers/cros_kb_raw.h42
1 files changed, 3 insertions, 39 deletions
diff --git a/zephyr/include/drivers/cros_kb_raw.h b/zephyr/include/drivers/cros_kb_raw.h
index 7b9255bb9f..d370a3bbde 100644
--- a/zephyr/include/drivers/cros_kb_raw.h
+++ b/zephyr/include/drivers/cros_kb_raw.h
@@ -22,11 +22,11 @@
#ifndef ZEPHYR_INCLUDE_DRIVERS_CROS_KB_RAW_H_
#define ZEPHYR_INCLUDE_DRIVERS_CROS_KB_RAW_H_
-#include "gpio_signal.h"
-
+#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
-#include <zephyr/kernel.h>
+
+#include "gpio_signal.h"
/*
* When CONFIG_PLATFORM_EC_KEYBOARD_COL2_INVERTED is enabled, the keyboard
@@ -60,17 +60,11 @@ typedef int (*cros_kb_raw_api_read_rows)(const struct device *dev);
typedef int (*cros_kb_raw_api_enable_interrupt)(const struct device *dev,
int enable);
-typedef int (*cros_kb_raw_api_config_alt)(const struct device *dev,
- bool enable);
-
__subsystem struct cros_kb_raw_driver_api {
cros_kb_raw_api_init init;
cros_kb_raw_api_drive_column drive_colum;
cros_kb_raw_api_read_rows read_rows;
cros_kb_raw_api_enable_interrupt enable_interrupt;
-#ifdef CONFIG_PLATFORM_EC_KEYBOARD_FACTORY_TEST
- cros_kb_raw_api_config_alt config_alt;
-#endif
};
/**
@@ -180,36 +174,6 @@ static inline int z_impl_cros_kb_raw_enable_interrupt(const struct device *dev,
}
/**
- * @brief Enable or disable keyboard alternative function.
- *
- * Enabling alternative function.
- *
- * @param dev Pointer to the device structure for the keyboard driver instance.
- * @param enable If 1, enable keyboard function. Otherwise, disable it (as
- * GPIO).
- *
- * @return 0 If successful.
- * @retval -ENOTSUP Not supported api function.
- */
-
-#ifdef CONFIG_PLATFORM_EC_KEYBOARD_FACTORY_TEST
-__syscall int cros_kb_raw_config_alt(const struct device *dev, bool enable);
-
-static inline int z_impl_cros_kb_raw_config_alt(const struct device *dev,
- bool enable)
-{
- const struct cros_kb_raw_driver_api *api =
- (const struct cros_kb_raw_driver_api *)dev->api;
-
- if (!api->config_alt) {
- return -ENOTSUP;
- }
-
- return api->config_alt(dev, enable);
-}
-#endif
-
-/**
* @brief Set the logical level of the keyboard column 2 output.
*
* When CONFIG_PLATFORM_EC_KEYBOARD_COL2_INVERTED is enabled, the column 2