Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/bridge: sii902x: convert to devm_drm_bridge_alloc() API

This is the new API for allocating DRM bridges.

Acked-by: Maxime Ripard <mripard@kernel.org>
Reviewed-by: Anusha Srivatsa <asrivats@redhat.com>
Link: https://lore.kernel.org/r/20250509-drm-bridge-convert-to-alloc-api-v3-7-b8bc1f16d7aa@bootlin.com
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>

+3 -4
+3 -4
drivers/gpu/drm/bridge/sii902x.c
··· 1135 1135 if (ret) 1136 1136 goto err_unreg_audio; 1137 1137 1138 - sii902x->bridge.funcs = &sii902x_bridge_funcs; 1139 1138 sii902x->bridge.of_node = dev->of_node; 1140 1139 sii902x->bridge.timings = &default_sii902x_timings; 1141 1140 sii902x->bridge.ops = DRM_BRIDGE_OP_DETECT | DRM_BRIDGE_OP_EDID; ··· 1169 1170 return -EIO; 1170 1171 } 1171 1172 1172 - sii902x = devm_kzalloc(dev, sizeof(*sii902x), GFP_KERNEL); 1173 - if (!sii902x) 1174 - return -ENOMEM; 1173 + sii902x = devm_drm_bridge_alloc(dev, struct sii902x, bridge, &sii902x_bridge_funcs); 1174 + if (IS_ERR(sii902x)) 1175 + return PTR_ERR(sii902x); 1175 1176 1176 1177 sii902x->i2c = client; 1177 1178 sii902x->regmap = devm_regmap_init_i2c(client, &sii902x_regmap_config);