mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 02:39:48 +00:00
![David Lechner](/assets/img/avatar_default.png)
This converts from using a platform device for the CFGCHIP syscon regmap to using platform data to pass the regmap to consumers. A lazy getter function is used so that the regmap will only be created if it is actually used. This function will also be used in the clock init when we convert to the common clock framework. The USB PHY driver is currently the only consumer. This driver is updated to use platform data to get the CFGCHIP regmap instead of syscon_regmap_lookup_by_pdevname(). Signed-off-by: David Lechner <david@lechnology.com> Acked-by: Kishon Vijay Abraham I <kishon@ti.com> Signed-off-by: Sekhar Nori <nsekhar@ti.com>
21 lines
474 B
C
21 lines
474 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* phy-da8xx-usb - TI DaVinci DA8xx USB PHY driver
|
|
*
|
|
* Copyright (C) 2018 David Lechner <david@lechnology.com>
|
|
*/
|
|
|
|
#ifndef __LINUX_PLATFORM_DATA_PHY_DA8XX_USB_H__
|
|
#define __LINUX_PLATFORM_DATA_PHY_DA8XX_USB_H__
|
|
|
|
#include <linux/regmap.h>
|
|
|
|
/**
|
|
* da8xx_usb_phy_platform_data
|
|
* @cfgchip: CFGCHIP syscon regmap
|
|
*/
|
|
struct da8xx_usb_phy_platform_data {
|
|
struct regmap *cfgchip;
|
|
};
|
|
|
|
#endif /* __LINUX_PLATFORM_DATA_PHY_DA8XX_USB_H__ */
|