mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-14 06:35:12 +00:00
36f7e3acaa
There are no real reason to modify the data received from device. So, let's mark the arguments constant. Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com> Link: https://lore.kernel.org/r/20191217161318.31402-23-Jerome.Pouiller@silabs.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
59 lines
1.1 KiB
C
59 lines
1.1 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (c) 2019, Silicon Laboratories, Inc.
|
|
*/
|
|
#ifndef WFX_SECURE_LINK_H
|
|
#define WFX_SECURE_LINK_H
|
|
|
|
#include <linux/of.h>
|
|
|
|
#include "hif_api_general.h"
|
|
|
|
struct wfx_dev;
|
|
|
|
|
|
struct sl_context {
|
|
};
|
|
|
|
static inline bool wfx_is_secure_command(struct wfx_dev *wdev, int cmd_id)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
static inline int wfx_sl_decode(struct wfx_dev *wdev, struct hif_sl_msg *m)
|
|
{
|
|
return -EIO;
|
|
}
|
|
|
|
static inline int wfx_sl_encode(struct wfx_dev *wdev,
|
|
const struct hif_msg *input,
|
|
struct hif_sl_msg *output)
|
|
{
|
|
return -EIO;
|
|
}
|
|
|
|
static inline int wfx_sl_check_pubkey(struct wfx_dev *wdev,
|
|
const u8 *ncp_pubkey,
|
|
const u8 *ncp_pubmac)
|
|
{
|
|
return -EIO;
|
|
}
|
|
|
|
static inline void wfx_sl_fill_pdata(struct device *dev,
|
|
struct wfx_platform_data *pdata)
|
|
{
|
|
if (of_find_property(dev->of_node, "slk_key", NULL))
|
|
dev_err(dev, "secure link is not supported by this driver, ignoring provided key\n");
|
|
}
|
|
|
|
static inline int wfx_sl_init(struct wfx_dev *wdev)
|
|
{
|
|
return -EIO;
|
|
}
|
|
|
|
static inline void wfx_sl_deinit(struct wfx_dev *wdev)
|
|
{
|
|
}
|
|
|
|
|
|
#endif
|