From patchwork Wed Nov 11 16:53:26 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roel Kluin X-Patchwork-Id: 59355 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nABGgB1q023752 for ; Wed, 11 Nov 2009 16:42:11 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757621AbZKKQlZ (ORCPT ); Wed, 11 Nov 2009 11:41:25 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757409AbZKKQlY (ORCPT ); Wed, 11 Nov 2009 11:41:24 -0500 Received: from ey-out-2122.google.com ([74.125.78.27]:32131 "EHLO ey-out-2122.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757236AbZKKQlX (ORCPT ); Wed, 11 Nov 2009 11:41:23 -0500 Received: by ey-out-2122.google.com with SMTP id 9so281321eyd.5 for ; Wed, 11 Nov 2009 08:41:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=mpb8sfpM6cf2r9xoKws4W1NhAAPgIiphtqn1URsWRsU=; b=amMH2Ek/lLojOxdMdBRpFs1NNReAn5CKs4rh8aE/2FdwmfIf1SXOOeiBtt56v9V62c PP/MisQ1hpU3pwmtKFVXFxUCMa2RE76s5ApkS7erxYKNLOFE+3m1V32jUmbM1f3dNqOL udtFHz7zpIQOxhkXMO0rRp2Yp7hwWcFBySd4Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=J/QYxOoaIx387anHi1Raqywkf4vKaain0Pk4O5jR8r2pUtQD3aiSbVCcuL1c7iVNM9 z9JPzQpnIg8INnAoGpm641Dkh4i2yUkHINdrMZYM+Ej4OcxWe/ehq3mnLH02b0mxybng 7bVF65r6w7VxQ5JJSLLmdHfxtqeyga7YrrT8o= Received: by 10.213.110.9 with SMTP id l9mr1805702ebp.14.1257957688147; Wed, 11 Nov 2009 08:41:28 -0800 (PST) Received: from zoinx.mars (d133062.upc-d.chello.nl [213.46.133.62]) by mx.google.com with ESMTPS id 28sm743499eyg.30.2009.11.11.08.41.27 (version=SSLv3 cipher=RC4-MD5); Wed, 11 Nov 2009 08:41:27 -0800 (PST) Message-ID: <4AFAEC06.3060701@gmail.com> Date: Wed, 11 Nov 2009 17:53:26 +0100 From: Roel Kluin User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20091014 Fedora/3.0-2.8.b4.fc11 Thunderbird/3.0b4 MIME-Version: 1.0 To: Mauro Carvalho Chehab , linux-media@vger.kernel.org, Andrew Morton , LKML Subject: [PATCH] sms-cards: make id unsigned in sms_get_board() Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org diff --git a/drivers/media/dvb/siano/sms-cards.c b/drivers/media/dvb/siano/sms-cards.c index 0420e28..c61f026 100644 --- a/drivers/media/dvb/siano/sms-cards.c +++ b/drivers/media/dvb/siano/sms-cards.c @@ -97,7 +97,7 @@ static struct sms_board sms_boards[] = { }, }; -struct sms_board *sms_get_board(int id) +struct sms_board *sms_get_board(unsigned id) { BUG_ON(id >= ARRAY_SIZE(sms_boards)); diff --git a/drivers/media/dvb/siano/sms-cards.h b/drivers/media/dvb/siano/sms-cards.h index 38f062f..8f19fc0 100644 --- a/drivers/media/dvb/siano/sms-cards.h +++ b/drivers/media/dvb/siano/sms-cards.h @@ -81,7 +81,7 @@ struct sms_board { int led_power, led_hi, led_lo, lna_ctrl, rf_switch; }; -struct sms_board *sms_get_board(int id); +struct sms_board *sms_get_board(unsigned id); extern struct smscore_device_t *coredev;