mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 09:36:22 +02:00
drm/bridge: microchip-lvds: migrate to atomic bridge ops
Replace legacy .enable and .disable callbacks with their atomic counterparts .atomic_enable and .atomic_disable. Signed-off-by: Dharma Balasubiramani <dharma.b@microchip.com> Reviewed-by: Maxime Ripard <mripard@kernel.org> Link: https://patch.msgid.link/20250625-microchip-lvds-v6-2-7ce91f89d35a@microchip.com Signed-off-by: Manikandan Muralidharan <manikandan.m@microchip.com>
This commit is contained in:
parent
ec3c887a7c
commit
c4cbe5d9e8
|
|
@ -111,7 +111,8 @@ static int mchp_lvds_attach(struct drm_bridge *bridge,
|
|||
bridge, flags);
|
||||
}
|
||||
|
||||
static void mchp_lvds_enable(struct drm_bridge *bridge)
|
||||
static void mchp_lvds_atomic_enable(struct drm_bridge *bridge,
|
||||
struct drm_atomic_state *state)
|
||||
{
|
||||
struct mchp_lvds *lvds = bridge_to_lvds(bridge);
|
||||
int ret;
|
||||
|
|
@ -131,7 +132,8 @@ static void mchp_lvds_enable(struct drm_bridge *bridge)
|
|||
lvds_serialiser_on(lvds);
|
||||
}
|
||||
|
||||
static void mchp_lvds_disable(struct drm_bridge *bridge)
|
||||
static void mchp_lvds_atomic_disable(struct drm_bridge *bridge,
|
||||
struct drm_atomic_state *state)
|
||||
{
|
||||
struct mchp_lvds *lvds = bridge_to_lvds(bridge);
|
||||
|
||||
|
|
@ -141,8 +143,8 @@ static void mchp_lvds_disable(struct drm_bridge *bridge)
|
|||
|
||||
static const struct drm_bridge_funcs mchp_lvds_bridge_funcs = {
|
||||
.attach = mchp_lvds_attach,
|
||||
.enable = mchp_lvds_enable,
|
||||
.disable = mchp_lvds_disable,
|
||||
.atomic_enable = mchp_lvds_atomic_enable,
|
||||
.atomic_disable = mchp_lvds_atomic_disable,
|
||||
};
|
||||
|
||||
static int mchp_lvds_probe(struct platform_device *pdev)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user