mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-22 02:17:36 -04:00
phy: lynx-28g: move struct lynx_info definitions downwards
We need to be able to reference more function pointers in upcoming patches. The struct lynx_info definitions are currently placed a bit up in lynx-28g.c in order to be able to do that without function prototype forward declarations, so move them downward to avoid that situation. No functional change intended. Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Link: https://patch.msgid.link/20260610151952.2141019-9-vladimir.oltean@nxp.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
This commit is contained in:
committed by
Vinod Koul
parent
09697afa15
commit
9515c35eaa
@@ -782,49 +782,6 @@ static bool lynx_28g_compat_lane_supports_mode(int lane,
|
||||
}
|
||||
}
|
||||
|
||||
static const struct lynx_info lynx_info_compat = {
|
||||
.get_pccr = lynx_28g_get_pccr,
|
||||
.get_pcvt_offset = lynx_28g_get_pcvt_offset,
|
||||
.lane_supports_mode = lynx_28g_compat_lane_supports_mode,
|
||||
.num_lanes = LYNX_28G_NUM_LANE,
|
||||
};
|
||||
|
||||
static const struct lynx_info lynx_info_lx2160a_serdes1 = {
|
||||
.get_pccr = lynx_28g_get_pccr,
|
||||
.get_pcvt_offset = lynx_28g_get_pcvt_offset,
|
||||
.lane_supports_mode = lx2160a_serdes1_lane_supports_mode,
|
||||
.num_lanes = LYNX_28G_NUM_LANE,
|
||||
};
|
||||
|
||||
static const struct lynx_info lynx_info_lx2160a_serdes2 = {
|
||||
.get_pccr = lynx_28g_get_pccr,
|
||||
.get_pcvt_offset = lynx_28g_get_pcvt_offset,
|
||||
.lane_supports_mode = lx2160a_serdes2_lane_supports_mode,
|
||||
.num_lanes = LYNX_28G_NUM_LANE,
|
||||
};
|
||||
|
||||
static const struct lynx_info lynx_info_lx2160a_serdes3 = {
|
||||
.get_pccr = lynx_28g_get_pccr,
|
||||
.get_pcvt_offset = lynx_28g_get_pcvt_offset,
|
||||
.lane_supports_mode = lx2160a_serdes3_lane_supports_mode,
|
||||
.num_lanes = LYNX_28G_NUM_LANE,
|
||||
};
|
||||
|
||||
static const struct lynx_info lynx_info_lx2162a_serdes1 = {
|
||||
.get_pccr = lynx_28g_get_pccr,
|
||||
.get_pcvt_offset = lynx_28g_get_pcvt_offset,
|
||||
.lane_supports_mode = lx2162a_serdes1_lane_supports_mode,
|
||||
.first_lane = 4,
|
||||
.num_lanes = LYNX_28G_NUM_LANE,
|
||||
};
|
||||
|
||||
static const struct lynx_info lynx_info_lx2162a_serdes2 = {
|
||||
.get_pccr = lynx_28g_get_pccr,
|
||||
.get_pcvt_offset = lynx_28g_get_pcvt_offset,
|
||||
.lane_supports_mode = lx2162a_serdes2_lane_supports_mode,
|
||||
.num_lanes = LYNX_28G_NUM_LANE,
|
||||
};
|
||||
|
||||
static void lynx_28g_lane_remap_pll(struct lynx_lane *lane,
|
||||
enum lynx_lane_mode lane_mode)
|
||||
{
|
||||
@@ -1248,6 +1205,49 @@ static int lynx_28g_probe_lane(struct lynx_28g_priv *priv, int id,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct lynx_info lynx_info_compat = {
|
||||
.get_pccr = lynx_28g_get_pccr,
|
||||
.get_pcvt_offset = lynx_28g_get_pcvt_offset,
|
||||
.lane_supports_mode = lynx_28g_compat_lane_supports_mode,
|
||||
.num_lanes = LYNX_28G_NUM_LANE,
|
||||
};
|
||||
|
||||
static const struct lynx_info lynx_info_lx2160a_serdes1 = {
|
||||
.get_pccr = lynx_28g_get_pccr,
|
||||
.get_pcvt_offset = lynx_28g_get_pcvt_offset,
|
||||
.lane_supports_mode = lx2160a_serdes1_lane_supports_mode,
|
||||
.num_lanes = LYNX_28G_NUM_LANE,
|
||||
};
|
||||
|
||||
static const struct lynx_info lynx_info_lx2160a_serdes2 = {
|
||||
.get_pccr = lynx_28g_get_pccr,
|
||||
.get_pcvt_offset = lynx_28g_get_pcvt_offset,
|
||||
.lane_supports_mode = lx2160a_serdes2_lane_supports_mode,
|
||||
.num_lanes = LYNX_28G_NUM_LANE,
|
||||
};
|
||||
|
||||
static const struct lynx_info lynx_info_lx2160a_serdes3 = {
|
||||
.get_pccr = lynx_28g_get_pccr,
|
||||
.get_pcvt_offset = lynx_28g_get_pcvt_offset,
|
||||
.lane_supports_mode = lx2160a_serdes3_lane_supports_mode,
|
||||
.num_lanes = LYNX_28G_NUM_LANE,
|
||||
};
|
||||
|
||||
static const struct lynx_info lynx_info_lx2162a_serdes1 = {
|
||||
.get_pccr = lynx_28g_get_pccr,
|
||||
.get_pcvt_offset = lynx_28g_get_pcvt_offset,
|
||||
.lane_supports_mode = lx2162a_serdes1_lane_supports_mode,
|
||||
.first_lane = 4,
|
||||
.num_lanes = LYNX_28G_NUM_LANE,
|
||||
};
|
||||
|
||||
static const struct lynx_info lynx_info_lx2162a_serdes2 = {
|
||||
.get_pccr = lynx_28g_get_pccr,
|
||||
.get_pcvt_offset = lynx_28g_get_pcvt_offset,
|
||||
.lane_supports_mode = lx2162a_serdes2_lane_supports_mode,
|
||||
.num_lanes = LYNX_28G_NUM_LANE,
|
||||
};
|
||||
|
||||
static int lynx_28g_probe(struct platform_device *pdev)
|
||||
{
|
||||
struct device *dev = &pdev->dev;
|
||||
|
||||
Reference in New Issue
Block a user