mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-04 00:15:49 -04:00
drm/bridge: lt9611uxc: convert to devm_drm_bridge_alloc() API
This is the new API for allocating DRM bridges. Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250424-drm-bridge-convert-to-alloc-api-v2-7-8f91a404d86b@bootlin.com Signed-off-by: Louis Chauvet <louis.chauvet@bootlin.com>
This commit is contained in:
committed by
Louis Chauvet
parent
4e90a3d96a
commit
6287ffd9ef
@@ -775,9 +775,9 @@ static int lt9611uxc_probe(struct i2c_client *client)
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
lt9611uxc = devm_kzalloc(dev, sizeof(*lt9611uxc), GFP_KERNEL);
|
||||
if (!lt9611uxc)
|
||||
return -ENOMEM;
|
||||
lt9611uxc = devm_drm_bridge_alloc(dev, struct lt9611uxc, bridge, <9611uxc_bridge_funcs);
|
||||
if (IS_ERR(lt9611uxc))
|
||||
return PTR_ERR(lt9611uxc);
|
||||
|
||||
lt9611uxc->dev = dev;
|
||||
lt9611uxc->client = client;
|
||||
@@ -856,7 +856,6 @@ static int lt9611uxc_probe(struct i2c_client *client)
|
||||
|
||||
i2c_set_clientdata(client, lt9611uxc);
|
||||
|
||||
lt9611uxc->bridge.funcs = <9611uxc_bridge_funcs;
|
||||
lt9611uxc->bridge.of_node = client->dev.of_node;
|
||||
lt9611uxc->bridge.ops = DRM_BRIDGE_OP_DETECT | DRM_BRIDGE_OP_EDID;
|
||||
if (lt9611uxc->hpd_supported)
|
||||
|
||||
Reference in New Issue
Block a user