summaryrefslogtreecommitdiff
path: root/include/linux/platform_data/s3c-hsudc.h
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2020-08-06 20:20:26 +0200
committerKrzysztof Kozlowski <krzk@kernel.org>2020-08-19 20:58:27 +0200
commit5f745424761a2a49762625e8616417a8e7694228 (patch)
tree1aac89c1a1244cee21c6788f545e3e7105c2420a /include/linux/platform_data/s3c-hsudc.h
parent188db4435ac64f0918def7ba0593d408700ecc4b (diff)
usb: gadget: s3c-hsudc: remove platform header dependency
There is no real phy driver, so s3c-hsudc just pokes the registers itself. Improve this a little by making it a platform data callback like we do for gpios. There is only one board using this driver, and it's unlikely that another would be added, so this is a minimal workaround. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Link: https://lore.kernel.org/r/20200806182059.2431-9-krzk@kernel.org [krzk: Include regs-s3c2443-clock.h in ifdef to fixup build on s3c6400] Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Diffstat (limited to 'include/linux/platform_data/s3c-hsudc.h')
-rw-r--r--include/linux/platform_data/s3c-hsudc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/platform_data/s3c-hsudc.h b/include/linux/platform_data/s3c-hsudc.h
index 4dc9b8760166..a170939832d5 100644
--- a/include/linux/platform_data/s3c-hsudc.h
+++ b/include/linux/platform_data/s3c-hsudc.h
@@ -26,6 +26,8 @@ struct s3c24xx_hsudc_platdata {
unsigned int epnum;
void (*gpio_init)(void);
void (*gpio_uninit)(void);
+ void (*phy_init)(void);
+ void (*phy_uninit)(void);
};
#endif /* __LINUX_USB_S3C_HSUDC_H */