aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/files/include
diff options
context:
space:
mode:
authorJohn Crispin <john@phrozen.org>2018-05-24 00:23:16 +0200
committerJohn Crispin <john@phrozen.org>2018-05-24 15:43:39 +0200
commitf7aa08595db07f4c56484b3cef961553b8c09b02 (patch)
tree53883faa1e89dd80872dfb12f2fbd423e5dff922 /target/linux/generic/files/include
parent5a6a32ad9bcf108c0d047b147fd80c0e0db75586 (diff)
downloadupstream-f7aa08595db07f4c56484b3cef961553b8c09b02.tar.gz
upstream-f7aa08595db07f4c56484b3cef961553b8c09b02.tar.bz2
upstream-f7aa08595db07f4c56484b3cef961553b8c09b02.zip
kernel: add reset control support to rtl8366 driver
Signed-off-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'target/linux/generic/files/include')
-rw-r--r--target/linux/generic/files/include/linux/rtl8366.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/target/linux/generic/files/include/linux/rtl8366.h b/target/linux/generic/files/include/linux/rtl8366.h
index 78daed2205..e3ce8f5361 100644
--- a/target/linux/generic/files/include/linux/rtl8366.h
+++ b/target/linux/generic/files/include/linux/rtl8366.h
@@ -15,6 +15,8 @@
#define RTL8366S_DRIVER_NAME "rtl8366s"
#define RTL8366RB_DRIVER_NAME "rtl8366rb"
+struct rtl8366_smi;
+
enum rtl8366_type {
RTL8366_TYPE_UNKNOWN,
RTL8366_TYPE_S,
@@ -29,7 +31,7 @@ struct rtl8366_initval {
struct rtl8366_platform_data {
unsigned gpio_sda;
unsigned gpio_sck;
- void (*hw_reset)(bool active);
+ void (*hw_reset)(struct rtl8366_smi *smi, bool active);
unsigned num_initvals;
struct rtl8366_initval *initvals;