qcacmn: Fix gpio direction conversion wrong issue

Since in wmi_gpio_config_cmd_fixed_param, the input
0 mean output, and 1 mean input, which is different
from host side enum gpio_direction. So add this fix
to do the right conversion.

Change-Id: Id60a9327e853440fd58a45c7c839109cf1f22c22
CRs-Fixed: 2856833
This commit is contained in:
Chaoli Zhou
2020-12-23 14:27:03 +08:00
committed by snandini
parent 0d4a8a6781
commit c87b5d218f
2 changed files with 14 additions and 4 deletions

View File

@@ -3342,6 +3342,16 @@ enum gpio_direction {
WMI_HOST_GPIO_DIR_MAX,
};
/**
* enum fw_gpio_direction - GPIO Direction
* @WMI_FW_GPIO_OUTPUT: set gpio as output mode
* @WMI_FW_GPIO_INPUT: set gpio as input mode
*/
enum fw_gpio_direction {
WMI_FW_GPIO_OUTPUT = 0,
WMI_FW_GPIO_INPUT = 1,
};
/**
* enum qca_gpio_value - GPIO Value
* @WLAN_GPIO_LEVEL_LOW: set gpio output level low