mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-14 06:35:12 +00:00
a374ba3dc8
"Secure link" feature is not available in in-tree driver (because it depends on mbedtls). Thus, secure_link.h only empty functions. Module parameter "slk_key" and associated function wfx_fill_sl_key() had an unjustifiable place in main.c. This patch relocate them to secure_link.h. BTW, content of wfx_fill_sl_key() is now useless. Just keep a warning if user try to use "slk_key" attribute (unsupported by this driver). Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com> Link: https://lore.kernel.org/r/20191017093954.657-2-Jerome.Pouiller@silabs.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
47 lines
1.3 KiB
C
47 lines
1.3 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Device probe and register.
|
|
*
|
|
* Copyright (c) 2017-2019, Silicon Laboratories, Inc.
|
|
* Copyright (c) 2010, ST-Ericsson
|
|
* Copyright (c) 2006, Michael Wu <flamingice@sourmilk.net>
|
|
* Copyright 2004-2006 Jean-Baptiste Note <jbnote@gmail.com>, et al.
|
|
*/
|
|
#ifndef WFX_MAIN_H
|
|
#define WFX_MAIN_H
|
|
|
|
#include <linux/device.h>
|
|
#include <linux/gpio/consumer.h>
|
|
|
|
#include "bus.h"
|
|
#include "hif_api_general.h"
|
|
|
|
struct wfx_dev;
|
|
|
|
struct wfx_platform_data {
|
|
/* Keyset and ".sec" extention will appended to this string */
|
|
const char *file_fw;
|
|
const char *file_pds;
|
|
struct gpio_desc *gpio_wakeup;
|
|
/*
|
|
* if true HIF D_out is sampled on the rising edge of the clock
|
|
* (intended to be used in 50Mhz SDIO)
|
|
*/
|
|
bool use_rising_clk;
|
|
};
|
|
|
|
struct wfx_dev *wfx_init_common(struct device *dev,
|
|
const struct wfx_platform_data *pdata,
|
|
const struct hwbus_ops *hwbus_ops,
|
|
void *hwbus_priv);
|
|
void wfx_free_common(struct wfx_dev *wdev);
|
|
|
|
int wfx_probe(struct wfx_dev *wdev);
|
|
void wfx_release(struct wfx_dev *wdev);
|
|
|
|
struct gpio_desc *wfx_get_gpio(struct device *dev, int override,
|
|
const char *label);
|
|
bool wfx_api_older_than(struct wfx_dev *wdev, int major, int minor);
|
|
int wfx_send_pds(struct wfx_dev *wdev, unsigned char *buf, size_t len);
|
|
|
|
#endif
|