Skip to content

Commit 4858bfe

Browse files
andy-shevJiri Kosina
authored andcommitted
HID: i2c-hid: don't push static constants on stack for %*ph
There is no need to pass constants via stack. The width may be explicitly specified in the format. Signed-off-by: Andy Shevchenko <[email protected]> Reviewed-by: Benjamin Tissoires <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent ce73736 commit 4858bfe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/hid/i2c-hid/i2c-hid.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -824,8 +824,8 @@ static int i2c_hid_fetch_hid_descriptor(struct i2c_hid *ihid)
824824
* bytes 2-3 -> bcdVersion (has to be 1.00) */
825825
ret = i2c_hid_command(client, &hid_descr_cmd, ihid->hdesc_buffer, 4);
826826

827-
i2c_hid_dbg(ihid, "%s, ihid->hdesc_buffer: %*ph\n",
828-
__func__, 4, ihid->hdesc_buffer);
827+
i2c_hid_dbg(ihid, "%s, ihid->hdesc_buffer: %4ph\n", __func__,
828+
ihid->hdesc_buffer);
829829

830830
if (ret) {
831831
dev_err(&client->dev,

0 commit comments

Comments
 (0)