mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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]>
This commit is contained in:
parent
ce7373685e
commit
4858bfe073
1 changed files with 2 additions and 2 deletions
|
|
@ -824,8 +824,8 @@ static int i2c_hid_fetch_hid_descriptor(struct i2c_hid *ihid)
|
|||
* bytes 2-3 -> bcdVersion (has to be 1.00) */
|
||||
ret = i2c_hid_command(client, &hid_descr_cmd, ihid->hdesc_buffer, 4);
|
||||
|
||||
i2c_hid_dbg(ihid, "%s, ihid->hdesc_buffer: %*ph\n",
|
||||
__func__, 4, ihid->hdesc_buffer);
|
||||
i2c_hid_dbg(ihid, "%s, ihid->hdesc_buffer: %4ph\n", __func__,
|
||||
ihid->hdesc_buffer);
|
||||
|
||||
if (ret) {
|
||||
dev_err(&client->dev,
|
||||
|
|
|
|||
Loading…
Reference in a new issue