aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid/i2c-hid
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2013-08-02 07:07:15 -0400
committerJiri Kosina <jkosina@suse.cz>2013-08-05 05:19:38 -0400
commit4858bfe07388afaccce0a66683df2b55d578f0a9 (patch)
tree9d71e0bd54f657fbe31621f2282f165948c596d4 /drivers/hid/i2c-hid
parentce7373685ec33b94c293d9cfdb46daecb22db261 (diff)
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>
Diffstat (limited to 'drivers/hid/i2c-hid')
-rw-r--r--drivers/hid/i2c-hid/i2c-hid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hid/i2c-hid/i2c-hid.c b/drivers/hid/i2c-hid/i2c-hid.c
index 879b0ed701a3..3cb7d966da9e 100644
--- a/drivers/hid/i2c-hid/i2c-hid.c
+++ b/drivers/hid/i2c-hid/i2c-hid.c
@@ -824,8 +824,8 @@ static int i2c_hid_fetch_hid_descriptor(struct i2c_hid *ihid)
824 * bytes 2-3 -> bcdVersion (has to be 1.00) */ 824 * bytes 2-3 -> bcdVersion (has to be 1.00) */
825 ret = i2c_hid_command(client, &hid_descr_cmd, ihid->hdesc_buffer, 4); 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", 827 i2c_hid_dbg(ihid, "%s, ihid->hdesc_buffer: %4ph\n", __func__,
828 __func__, 4, ihid->hdesc_buffer); 828 ihid->hdesc_buffer);
829 829
830 if (ret) { 830 if (ret) {
831 dev_err(&client->dev, 831 dev_err(&client->dev,