Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756252AbcLNQsF convert rfc822-to-8bit (ORCPT ); Wed, 14 Dec 2016 11:48:05 -0500 Received: from mail-dm3nam03on0135.outbound.protection.outlook.com ([104.47.41.135]:3616 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753748AbcLNQsE (ORCPT ); Wed, 14 Dec 2016 11:48:04 -0500 From: Hartley Sweeten To: Piotr Gregor , "abbotti@mev.co.uk" CC: "gregkh@linuxfoundation.org" , "devel@driverdev.osuosl.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] drivers: staging: comedi: fix function prototypes Thread-Topic: [PATCH] drivers: staging: comedi: fix function prototypes Thread-Index: AQHSVhAoH8z0ZhSp3EuFyGZbqZlG/qEHnOcA Date: Wed, 14 Dec 2016 16:14:53 +0000 Message-ID: References: <20161214134208.GA26114@westernst> In-Reply-To: <20161214134208.GA26114@westernst> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=HartleyS@visionengravers.com; x-originating-ip: [184.183.19.121] x-ms-office365-filtering-correlation-id: b737daf2-4beb-4f7a-68f5-08d4243c56d5 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:SN1PR0101MB1566; x-microsoft-exchange-diagnostics: 1;SN1PR0101MB1566;7:QOWPZaG7qeoIkNFKnPiUJLNIsxWdfRsY2ikmIjFFY+8hsgpkHlCvWJ8pqFTHP7ylUOUm+y9k5d5fzNen8j5heihhOrGoWdREcGVNn9mdOGB+Mb00+yw3xkMt6hXyDInv9EsidQsNSihpu0efgaYR5WQqQj2vXM8G+KuLn3/kkDLmlAosbJiWI+0aYMyoHQK7Z42sg2UQyMN1zyXLCJ19jNdUZCzscsoyZww2fRI60iYCCvVMtNlogTmnWiJi5GUy9PrO/XB1A6cjsv7tzfAbSqzqQxZC8gKJY4KOLsaEKAOyLOeF+7VIQ3gm1r6tjg1krfI11zsw0M2UDRyG+1g51JTnDinJUT7lFMK9O2gWD0QZP5ijxtlNIdUYVeQpIKgIDlKwZTy0WaNt/F1xwHffg+rXrunb86hrCDHF98ED1GjL5xtK7X6pi6dx47GJygeOLvY3AhbhWRoivO/bJ5pLuA== x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(20558992708506); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040375)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6041248)(2016111802025)(20161123564025)(20161123560025)(20161123562025)(20161123558021)(20161123555025)(6072148)(6043046);SRVR:SN1PR0101MB1566;BCL:0;PCL:0;RULEID:;SRVR:SN1PR0101MB1566; x-forefront-prvs: 01565FED4C x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(7916002)(39840400002)(39450400003)(39410400002)(189002)(377454003)(199003)(24454002)(80792005)(2501003)(3660700001)(97736004)(101416001)(33656002)(4326007)(3280700002)(5001770100001)(6436002)(66066001)(81166006)(54356999)(106116001)(305945005)(105586002)(50986999)(76176999)(74316002)(2906002)(2900100001)(6116002)(8676002)(9686002)(8936002)(7736002)(3846002)(81156014)(189998001)(92566002)(106356001)(122556002)(102836003)(7696004)(86362001)(6506006)(38730400001)(77096006)(229853002)(575784001)(2950100002)(68736007)(5660300001);DIR:OUT;SFP:1102;SCL:1;SRVR:SN1PR0101MB1566;H:SN1PR0101MB1565.prod.exchangelabs.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OriginatorOrg: visionengravers.com X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Dec 2016 16:14:53.4252 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: d698601f-af92-4269-8099-fd6f11636477 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR0101MB1566 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 938 Lines: 26 On December 14, 2016 6:42 AM, Piotr Gregor wrote: > Add names of parameters to function prototypes in comedi PCI. > Checkpatch reports now no errors. > > Signed-off-by: Piotr Gregor > --- > drivers/staging/comedi/comedi_pci.h | 18 ++++++++++-------- > 1 file changed, 10 insertions(+), 8 deletions(-) > > diff --git a/drivers/staging/comedi/comedi_pci.h b/drivers/staging/comedi/comedi_pci.h > index 4005cc9..7dfd892 100644 > --- a/drivers/staging/comedi/comedi_pci.h > +++ b/drivers/staging/comedi/comedi_pci.h > @@ -34,18 +34,20 @@ > #define PCI_VENDOR_ID_RTD 0x1435 > #define PCI_VENDOR_ID_HUMUSOFT 0x186c > > -struct pci_dev *comedi_to_pci_dev(struct comedi_device *); > +struct pci_dev *comedi_to_pci_dev(struct comedi_device *dev); For the function prototypes I prefer no names for the "pointer" parameters. The "struct foo *" declaration is just as clear as "struct foo *bar". Thanks, Hartley