Skip to content

Commit

Permalink
Merge branch 'linux_6_8' into 'master'
Browse files Browse the repository at this point in the history
Compatibility with Linux 6.8

Closes torvalds#39

See merge request ddcci-driver-linux/ddcci-driver-linux!15
  • Loading branch information
cgrenz committed May 2, 2024
2 parents 2f158fe + 7f851f5 commit 3eb20df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ddcci/ddcci.c
Original file line number Diff line number Diff line change
Expand Up @@ -1666,7 +1666,7 @@ static int ddcci_detect(struct i2c_client *client, struct i2c_board_info *info)
pr_debug("detected %d:%02x\n", client->adapter->nr, outer_addr);

/* set device type */
strlcpy(info->type, (outer_addr == DDCCI_DEFAULT_DEVICE_ADDR) ? "ddcci" : "ddcci-dependent", I2C_NAME_SIZE);
strscpy(info->type, (outer_addr == DDCCI_DEFAULT_DEVICE_ADDR) ? "ddcci" : "ddcci-dependent", I2C_NAME_SIZE);

return 0;
}
Expand Down Expand Up @@ -1824,7 +1824,7 @@ static struct i2c_driver ddcci_driver = {
#else
.remove = ddcci_remove,
#endif
.class = I2C_CLASS_DDC,
.class = I2C_CLASS_SPD,
.detect = ddcci_detect,
.address_list = I2C_ADDRS(
DDCCI_DEFAULT_DEVICE_ADDR>>1
Expand Down

0 comments on commit 3eb20df

Please sign in to comment.