mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
firmware: xilinx: Remove zynqmp_pm_pinctrl_get_function()
There is no user for this interface that's why remove it. Signed-off-by: Michal Simek <michal.simek@amd.com> Link: https://lore.kernel.org/r/e52a415a004e28a43e6d08e9e22d9e8fef3737df.1702565618.git.michal.simek@amd.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8d6608e4f8
commit
b9ae996210
2 changed files with 0 additions and 31 deletions
|
@ -1060,30 +1060,6 @@ int zynqmp_pm_pinctrl_release(const u32 pin)
|
|||
}
|
||||
EXPORT_SYMBOL_GPL(zynqmp_pm_pinctrl_release);
|
||||
|
||||
/**
|
||||
* zynqmp_pm_pinctrl_get_function - Read function id set for the given pin
|
||||
* @pin: Pin number
|
||||
* @id: Buffer to store function ID
|
||||
*
|
||||
* This function provides the function currently set for the given pin.
|
||||
*
|
||||
* Return: Returns status, either success or error+reason
|
||||
*/
|
||||
int zynqmp_pm_pinctrl_get_function(const u32 pin, u32 *id)
|
||||
{
|
||||
u32 ret_payload[PAYLOAD_ARG_CNT];
|
||||
int ret;
|
||||
|
||||
if (!id)
|
||||
return -EINVAL;
|
||||
|
||||
ret = zynqmp_pm_invoke_fn(PM_PINCTRL_GET_FUNCTION, ret_payload, 1, pin);
|
||||
*id = ret_payload[1];
|
||||
|
||||
return ret;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(zynqmp_pm_pinctrl_get_function);
|
||||
|
||||
/**
|
||||
* zynqmp_pm_pinctrl_set_function - Set requested function for the pin
|
||||
* @pin: Pin number
|
||||
|
|
|
@ -149,7 +149,6 @@ enum pm_api_id {
|
|||
PM_SECURE_SHA = 26,
|
||||
PM_PINCTRL_REQUEST = 28,
|
||||
PM_PINCTRL_RELEASE = 29,
|
||||
PM_PINCTRL_GET_FUNCTION = 30,
|
||||
PM_PINCTRL_SET_FUNCTION = 31,
|
||||
PM_PINCTRL_CONFIG_PARAM_GET = 32,
|
||||
PM_PINCTRL_CONFIG_PARAM_SET = 33,
|
||||
|
@ -567,7 +566,6 @@ int zynqmp_pm_system_shutdown(const u32 type, const u32 subtype);
|
|||
int zynqmp_pm_set_boot_health_status(u32 value);
|
||||
int zynqmp_pm_pinctrl_request(const u32 pin);
|
||||
int zynqmp_pm_pinctrl_release(const u32 pin);
|
||||
int zynqmp_pm_pinctrl_get_function(const u32 pin, u32 *id);
|
||||
int zynqmp_pm_pinctrl_set_function(const u32 pin, const u32 id);
|
||||
int zynqmp_pm_pinctrl_get_config(const u32 pin, const u32 param,
|
||||
u32 *value);
|
||||
|
@ -804,11 +802,6 @@ static inline int zynqmp_pm_pinctrl_release(const u32 pin)
|
|||
return -ENODEV;
|
||||
}
|
||||
|
||||
static inline int zynqmp_pm_pinctrl_get_function(const u32 pin, u32 *id)
|
||||
{
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
static inline int zynqmp_pm_is_function_supported(const u32 api_id, const u32 id)
|
||||
{
|
||||
return -ENODEV;
|
||||
|
|
Loading…
Add table
Reference in a new issue