Skip to content

Commit

Permalink
rename ddc_remove_display_by_businfo2() -> ddc_remove_display_by_busi…
Browse files Browse the repository at this point in the history
…nfo()
  • Loading branch information
rockowitz committed Jan 6, 2025
1 parent 2dce3ee commit 3033cbf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/ddc/ddc_watch_displays_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ bool ddc_i2c_hotplug_change_handler(
break;
DBGTRC_NOPREFIX(debug, DDCA_TRC_NONE, "Removing bus %d", busno);
I2C_Bus_Info * businfo = i2c_find_bus_info_by_busno(busno);
Display_Ref* dref = ddc_remove_display_by_businfo2(businfo);
Display_Ref* dref = ddc_remove_display_by_businfo(businfo);
if (dref) {
ddc_emit_or_queue_display_status_event(DDCA_EVENT_DISPLAY_DISCONNECTED,
dref->drm_connector, dref, dref->io_path, events_queue);
Expand Down
4 changes: 2 additions & 2 deletions src/ddc/ddc_watch_displays_dref.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ Display_Ref * ddc_add_display_by_businfo(I2C_Bus_Info * businfo) {
* @param businfo
* @return Display_Ref
*/
Display_Ref * ddc_remove_display_by_businfo2(I2C_Bus_Info * businfo) {
Display_Ref * ddc_remove_display_by_businfo(I2C_Bus_Info * businfo) {
bool debug = false;
DBGTRC_STARTING(debug, TRACE_GROUP, "businfo=%p, busno=%d", businfo, businfo->busno);

Expand Down Expand Up @@ -366,5 +366,5 @@ void init_ddc_watch_displays_dref() {
RTTI_ADD_FUNC(ddc_get_dref_by_busno_or_connector);
RTTI_ADD_FUNC(ddc_mark_display_ref_removed);
RTTI_ADD_FUNC(ddc_recheck_dref);
RTTI_ADD_FUNC(ddc_remove_display_by_businfo2);
RTTI_ADD_FUNC(ddc_remove_display_by_businfo);
}
2 changes: 1 addition & 1 deletion src/ddc/ddc_watch_displays_dref.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ void ddc_add_display_ref(Display_Ref * dref);
void ddc_mark_display_ref_removed(Display_Ref* dref);

Display_Ref* ddc_add_display_by_businfo(I2C_Bus_Info * businfo);
Display_Ref* ddc_remove_display_by_businfo2(I2C_Bus_Info * businfo);
Display_Ref* ddc_remove_display_by_businfo(I2C_Bus_Info * businfo);

Display_Ref* ddc_get_dref_by_busno_or_connector(int busno, const char * connector, bool ignore_invalid);
#define DDC_GET_DREF_BY_BUSNO(_busno, _ignore) \
Expand Down

0 comments on commit 3033cbf

Please sign in to comment.