diff --git a/src/ddc/ddc_watch_displays_common.c b/src/ddc/ddc_watch_displays_common.c index 81840603..d7c50784 100644 --- a/src/ddc/ddc_watch_displays_common.c +++ b/src/ddc/ddc_watch_displays_common.c @@ -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); diff --git a/src/ddc/ddc_watch_displays_dref.c b/src/ddc/ddc_watch_displays_dref.c index 11508d38..a80b86c7 100644 --- a/src/ddc/ddc_watch_displays_dref.c +++ b/src/ddc/ddc_watch_displays_dref.c @@ -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); @@ -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); } diff --git a/src/ddc/ddc_watch_displays_dref.h b/src/ddc/ddc_watch_displays_dref.h index 50c2fc11..2dfe9246 100644 --- a/src/ddc/ddc_watch_displays_dref.h +++ b/src/ddc/ddc_watch_displays_dref.h @@ -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) \