Commit 4858bfe07388afaccce0a66683df2b55d578f0a9

Authored by Andy Shevchenko
Committed by Jiri Kosina
1 parent ce7373685e

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 <andriy.shevchenko@linux.intel.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

drivers/hid/i2c-hid/i2c-hid.c
... ... @@ -824,8 +824,8 @@
824 824 * bytes 2-3 -> bcdVersion (has to be 1.00) */
825 825 ret = i2c_hid_command(client, &hid_descr_cmd, ihid->hdesc_buffer, 4);
826 826  
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);
829 829  
830 830 if (ret) {
831 831 dev_err(&client->dev,