From patchwork Tue Jun 25 12:24:41 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 2776281 X-Patchwork-Delegate: jikos@jikos.cz Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 5BDC1C0AB1 for ; Tue, 25 Jun 2013 12:24:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3CE602013C for ; Tue, 25 Jun 2013 12:24:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B655720131 for ; Tue, 25 Jun 2013 12:24:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750830Ab3FYMYx (ORCPT ); Tue, 25 Jun 2013 08:24:53 -0400 Received: from mga03.intel.com ([143.182.124.21]:5541 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750784Ab3FYMYw (ORCPT ); Tue, 25 Jun 2013 08:24:52 -0400 Received: from azsmga002.ch.intel.com ([10.2.17.35]) by azsmga101.ch.intel.com with ESMTP; 25 Jun 2013 05:24:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.87,936,1363158000"; d="scan'208";a="259850863" Received: from smile.fi.intel.com (HELO smile) ([10.237.72.173]) by AZSMGA002.ch.intel.com with ESMTP; 25 Jun 2013 05:24:47 -0700 Received: from andy by smile with local (Exim 4.80) (envelope-from ) id 1UrSIc-0002yS-59; Tue, 25 Jun 2013 15:24:42 +0300 From: Andy Shevchenko To: Jiri Kosina , linux-input@vger.kernel.org Cc: Andy Shevchenko Subject: [PATCH] i2c-hid: explicitly cast parametrs to follow specifiers Date: Tue, 25 Jun 2013 15:24:41 +0300 Message-Id: <1372163081-11394-1-git-send-email-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 1.8.3.1 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-8.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The vendor and product parameters are defined as __u32, but used as short int. Let's do an explicit casting for them. Signed-off-by: Andy Shevchenko --- drivers/hid/i2c-hid/i2c-hid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hid/i2c-hid/i2c-hid.c b/drivers/hid/i2c-hid/i2c-hid.c index 879b0ed..d595f2a 100644 --- a/drivers/hid/i2c-hid/i2c-hid.c +++ b/drivers/hid/i2c-hid/i2c-hid.c @@ -1009,7 +1009,7 @@ static int i2c_hid_probe(struct i2c_client *client, hid->product = le16_to_cpu(ihid->hdesc.wProductID); snprintf(hid->name, sizeof(hid->name), "%s %04hX:%04hX", - client->name, hid->vendor, hid->product); + client->name, (short int)hid->vendor, (short int)hid->product); ret = hid_add_device(hid); if (ret) {