Skip to content

Commit

Permalink
rename check_laptop_for_businfo() -> is_laptop_for_businfo()
Browse files Browse the repository at this point in the history
register it in the runtinme trace table
  • Loading branch information
rockowitz committed Nov 4, 2024
1 parent 2cc3c06 commit d5ed050
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/i2c/i2c_bus_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1180,8 +1180,10 @@ void set_connector_for_businfo_using_edid(I2C_Bus_Info * businfo) {
}


bool check_laptop_for_businfo(I2C_Bus_Info * businfo) {
bool is_laptop_for_businfo(I2C_Bus_Info * businfo) {
bool debug = false;
DBGTRC_STARTING(debug, TRACE_GROUP, "businfo=%p, busno=%d", businfo, businfo->busno);

bool is_laptop = false;
if (businfo->drm_connector_name) {
if ( is_laptop_drm_connector_name(businfo->drm_connector_name) ) {
Expand Down Expand Up @@ -1424,7 +1426,7 @@ void i2c_check_bus2(I2C_Bus_Info * businfo) {
// *** Check if laptop
bool is_laptop = false;
if (businfo->edid && !(businfo->flags&I2C_BUS_DISPLAYLINK)) {
is_laptop = check_laptop_for_businfo(businfo);
is_laptop = is_laptop_for_businfo(businfo);
}

// *** Check x37
Expand Down Expand Up @@ -2360,6 +2362,7 @@ static void init_i2c_bus_core_func_name_table() {
RTTI_ADD_FUNC(i2c_threaded_initial_checks_by_businfo);
RTTI_ADD_FUNC(i2c_non_async_scan);
RTTI_ADD_FUNC(i2c_async_scan);
RTTI_ADD_FUNC(is_laptop_for_businfo);
RTTI_ADD_FUNC(get_parsed_edid_for_businfo_using_sysfs);
RTTI_ADD_FUNC(is_adapter_class_display_controller);
RTTI_ADD_FUNC(get_connector_edid);
Expand Down

0 comments on commit d5ed050

Please sign in to comment.