File tree Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -186,7 +186,8 @@ void drm_bridge_disable(struct drm_bridge *bridge)
186
186
187
187
drm_bridge_disable (bridge -> next );
188
188
189
- bridge -> funcs -> disable (bridge );
189
+ if (bridge -> funcs -> disable )
190
+ bridge -> funcs -> disable (bridge );
190
191
}
191
192
EXPORT_SYMBOL (drm_bridge_disable );
192
193
@@ -206,7 +207,8 @@ void drm_bridge_post_disable(struct drm_bridge *bridge)
206
207
if (!bridge )
207
208
return ;
208
209
209
- bridge -> funcs -> post_disable (bridge );
210
+ if (bridge -> funcs -> post_disable )
211
+ bridge -> funcs -> post_disable (bridge );
210
212
211
213
drm_bridge_post_disable (bridge -> next );
212
214
}
@@ -256,7 +258,8 @@ void drm_bridge_pre_enable(struct drm_bridge *bridge)
256
258
257
259
drm_bridge_pre_enable (bridge -> next );
258
260
259
- bridge -> funcs -> pre_enable (bridge );
261
+ if (bridge -> funcs -> pre_enable )
262
+ bridge -> funcs -> pre_enable (bridge );
260
263
}
261
264
EXPORT_SYMBOL (drm_bridge_pre_enable );
262
265
@@ -276,7 +279,8 @@ void drm_bridge_enable(struct drm_bridge *bridge)
276
279
if (!bridge )
277
280
return ;
278
281
279
- bridge -> funcs -> enable (bridge );
282
+ if (bridge -> funcs -> enable )
283
+ bridge -> funcs -> enable (bridge );
280
284
281
285
drm_bridge_enable (bridge -> next );
282
286
}
Original file line number Diff line number Diff line change @@ -1581,6 +1581,8 @@ struct drm_bridge_funcs {
1581
1581
*
1582
1582
* The bridge can assume that the display pipe (i.e. clocks and timing
1583
1583
* signals) feeding it is still running when this callback is called.
1584
+ *
1585
+ * The disable callback is optional.
1584
1586
*/
1585
1587
void (* disable )(struct drm_bridge * bridge );
1586
1588
@@ -1597,6 +1599,8 @@ struct drm_bridge_funcs {
1597
1599
* The bridge must assume that the display pipe (i.e. clocks and timing
1598
1600
* singals) feeding it is no longer running when this callback is
1599
1601
* called.
1602
+ *
1603
+ * The post_disable callback is optional.
1600
1604
*/
1601
1605
void (* post_disable )(struct drm_bridge * bridge );
1602
1606
@@ -1625,6 +1629,8 @@ struct drm_bridge_funcs {
1625
1629
* will not yet be running when this callback is called. The bridge must
1626
1630
* not enable the display link feeding the next bridge in the chain (if
1627
1631
* there is one) when this callback is called.
1632
+ *
1633
+ * The pre_enable callback is optional.
1628
1634
*/
1629
1635
void (* pre_enable )(struct drm_bridge * bridge );
1630
1636
@@ -1642,6 +1648,8 @@ struct drm_bridge_funcs {
1642
1648
* signals) feeding it is running when this callback is called. This
1643
1649
* callback must enable the display link feeding the next bridge in the
1644
1650
* chain if there is one.
1651
+ *
1652
+ * The enable callback is optional.
1645
1653
*/
1646
1654
void (* enable )(struct drm_bridge * bridge );
1647
1655
};
You can’t perform that action at this time.
0 commit comments