Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752872AbdLHINe (ORCPT ); Fri, 8 Dec 2017 03:13:34 -0500 Received: from mail-ma1ind01on0127.outbound.protection.outlook.com ([104.47.100.127]:31269 "EHLO IND01-MA1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752806AbdLHIN3 (ORCPT ); Fri, 8 Dec 2017 03:13:29 -0500 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=dhaval.shah@softnautics.com; From: Dhaval Shah To: arnd@arndb.de, gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Dhaval Shah Subject: [PATCH 3/3] misc: ad525x_dpot: macros should not use a trailing semicolon Date: Fri, 8 Dec 2017 13:43:05 +0530 Message-Id: <20171208081305.15153-4-dhaval.shah@softnautics.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171208081305.15153-1-dhaval.shah@softnautics.com> References: <20171208081305.15153-1-dhaval.shah@softnautics.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [219.65.63.222] X-ClientProxiedBy: BM1PR01CA0102.INDPRD01.PROD.OUTLOOK.COM (10.174.208.18) To PN1PR0101MB1454.INDPRD01.PROD.OUTLOOK.COM (52.134.162.10) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b5b046e3-1d9f-4514-d413-08d53e138f14 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(4534020)(4602075)(4603075)(4627115)(201702281549075)(5600026)(4604075)(2017052603307);SRVR:PN1PR0101MB1454; X-Microsoft-Exchange-Diagnostics: 1;PN1PR0101MB1454;3:5aagPPLoNBHXO36uW3Z6rMykjHY/PY01OmmYeUjNOoK0AabLWokzYkk3CuLEnEZcYygDT8ab7RVBGNfdJ7lWalC+HYKfgFNh6UgjVirX3tRp8wLZvd6R/Qk9klt+TVvOxS+zeDJvq/YWasI837+B7RYkgrjpQTp0E4f/EFDI1yyl5khdZPFy80wlhXuy3Go4VWMhSAWo3iOtsZHyZPDbmGQc+L2VffL/UqtfgXOm0GwGvAB7Nht3UH3bVAFDaORV;25:zBV3UELGkWMsoJk8s8IYiz37IJFeUh7ZuyPeYyiBnaGaeNXsbInTdT2XJMO73MdvItiZSwLcO5XLDuW+G8PnTPJHkKDxFKytweD8tABc1dievWitlfkELGBi/DoLbFo8pGvG/BNmsFo8QkNl/SmdB35aAXLqzY6zleddgvZQY+zlRjdgK15ztsAMBEF6UvpxoR7S9KXTKkFv6wlmaBLQc+OsPs9B3ARfVCeqQ6pBsg8lT0lKGsOLkC45rUqI9mXLhw3WHHmmj34RmDZ7NK+mnkMfw2UslzH3aAeA4ICXGtYCNdxg9WG4nfsXGk+7YtmMTJEH/8AjqtDHHLVWjidNOA==;31:8Phx36Uk+HU/iYHD66EbkmJhg+Kza9CrZDj4Eb6JtXUsP2GjKTSktO+T3ziNRIN4AwuaggIKgOPKKTEprGHMEn+9zJFkgv/bqR71yxVlj0sJe4eU1ZS2QnmuvxrRYHgfI9ILTJ8mSWQvDA6qMb/xYfVWKZ5Bk7IP8Eijs3oQQ89jKBbcRExrIvDHn3sfMAl1wfJjGh2pxJ9oaybMqlnsdVDo5D6ove3SvF0tbTf1AtU= X-MS-TrafficTypeDiagnostic: PN1PR0101MB1454: X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040450)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(3231022)(6041248)(20161123560025)(20161123555025)(2016111802025)(20161123564025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(6043046)(6072148)(201708071742011);SRVR:PN1PR0101MB1454;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:PN1PR0101MB1454; X-Microsoft-Exchange-Diagnostics: 1;PN1PR0101MB1454;4:efGd4BoV0f5dnLmjBw5bWqfJVChm0mXlBCE39rjx599avBgm2d3sH2RcRuM8mJOpVLgWx4cnAUi86F3gY0mrZdJfHlo5dem20nbhY8EUaZJp4mFS7KKyThYCxn42SFoCgH+ckNXdKkIgZWoYlzjprr0JniF8/TFDKYmF7kF9frDiUaGsk6fnBNT+kat8MsuBhq8+e7PzzZ2GpmDU4pm5fOshPLLPe6m3oRMFdYysPLc5eYArSEXiOqCMhxfbRwOzDBm/cJIr104IPvRKoA8NPg== X-Forefront-PRVS: 0515208626 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(376002)(366004)(39830400002)(346002)(199004)(189003)(66066001)(51416003)(47776003)(3846002)(1076002)(6116002)(68736007)(53416004)(2906002)(86362001)(8936002)(76176011)(305945005)(69596002)(50226002)(7736002)(25786009)(53936002)(4326008)(48376002)(107886003)(33646002)(50466002)(5660300001)(81166006)(8676002)(81156014)(478600001)(52116002)(106356001)(36756003)(97736004)(105586002)(316002)(6512007)(16586007)(16526018)(6486002)(6666003)(6506006)(2950100002);DIR:OUT;SFP:1102;SCL:1;SRVR:PN1PR0101MB1454;H:piyush.sibshivalik.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;PN1PR0101MB1454;23:iE9fqBBwQWyVqYsCIu3wXdoW4L33r/hsJoswLy6?= =?us-ascii?Q?/PvpO4kU6SFdvNtjomspMXhckx5VqYx9vBp0BDtLn+3srcO8oByPa76s+D8B?= =?us-ascii?Q?ABVC/L4JVGmKEs91mmPSXpX2qxeN+SgTzxo6EDowJWmVG/mDgtRRhr+1Jwqa?= =?us-ascii?Q?8q5AYB5kwVFzOEBmGgUgLDF+pxMS6Bk9X6jwFAUHDSe/m783k31K2x+qKs2T?= =?us-ascii?Q?6j3fw6mUIUUyh+bIxrBurezNzHpLMa0YNPdy08VCharEe46j/zrG0SSCl6L1?= =?us-ascii?Q?6VgWcGbWfB2sKD53MDnQtRgpztK3eH6I3bES5ZO0d8Zo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VGmyPchOT82shGm+pwF8hMRii2luiVAtVood/PyroUVXzZ569iSkMC34cTJqL6iqISQ9xJFkvczzVJpqFiMax9Uwp4pFwRsaNuPbN0Nl1tijGywg9OPTUexgVKtZsrVwX/X+0pwVZRXp7Rn+q2dztznOOKueIUBf4ie1q/SJ95lvkWSjUXf+HpsvwFtm3apLhZ/qMs/XeXEh8qeDFZZi6JphFg/MI5iF15UKvJEGWQqs6AgVZqKQMF/ed7mAYdlnN/gsTxugZgOQSsI+2u0iiNA+6/4gBzjhQ5taamai3hGLzv2TnTXD4=;5:UNsTtdZ3PXOGVp4su1NXCUtFhq5Ms4Y9/lDAQhIxpnOLcLeiblFB9k1ZSRs1aAC4RI4oqjcDwW9K4m+kOzv10mWoAqeDUTUhuXps6+glOHqdPyfcg9AAnq1zGRoTGGuVhsgQ6SzDglaODJiMTUbZycYbDH26wqQ2YzgIXwGVoHs=;24:5B50qBq4lvs0g7VKlhj97Ybupw5smRs8Vm4mp13Kjdg+CBrbcxsxyZehm3vMiXeiTbDPMGLxkeW0CO4W7lC/HYFiO9wwjxWeNinYWbgvYTM=;7:0TVjE4oRxopZTLe4YEinR3S0VjEMsQWrb4xjSaGDh7IEr+L7I7Z3XqzrhMv87I1AxSWpZI6JG+y+xuAQt0J0UR91CORJirJ5vINqzIBBlJ5uYV20BXpeDRwFXyKjHz6OL+PqLTaHSiAGjlMBQSBPEW7VxA2nXnI88g2eXJ1Nunkt9HOP0ct0SVgblU2CgzkfVX5IvKShryHjrByfnnAy+lovEtWNOPY2XYGl/LuPixz5YRjL/cC17lI+kOMRg+R6 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: softnautics.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Dec 2017 08:13:26.7663 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b5b046e3-1d9f-4514-d413-08d53e138f14 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 17b76cff-50c6-4f7a-9198-dd4afc5f8bea X-MS-Exchange-Transport-CrossTenantHeadersStamped: PN1PR0101MB1454 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1415 Lines: 37 Resolved all the macros should not use a trailing semicolon checkpatch warnings. Issue found by checkpatch. Signed-off-by: Dhaval Shah --- drivers/misc/ad525x_dpot.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/misc/ad525x_dpot.c b/drivers/misc/ad525x_dpot.c index 577f5e76c8a8..bc591b7168db 100644 --- a/drivers/misc/ad525x_dpot.c +++ b/drivers/misc/ad525x_dpot.c @@ -515,11 +515,11 @@ set_##_name(struct device *dev, \ #define DPOT_DEVICE_SHOW_SET(name, reg) \ DPOT_DEVICE_SHOW(name, reg) \ DPOT_DEVICE_SET(name, reg) \ -static DEVICE_ATTR(name, S_IWUSR | S_IRUGO, show_##name, set_##name); +static DEVICE_ATTR(name, S_IWUSR | S_IRUGO, show_##name, set_##name) #define DPOT_DEVICE_SHOW_ONLY(name, reg) \ DPOT_DEVICE_SHOW(name, reg) \ -static DEVICE_ATTR(name, S_IWUSR | S_IRUGO, show_##name, NULL); +static DEVICE_ATTR(name, S_IWUSR | S_IRUGO, show_##name, NULL) DPOT_DEVICE_SHOW_SET(rdac0, DPOT_ADDR_RDAC | DPOT_RDAC0); DPOT_DEVICE_SHOW_SET(eeprom0, DPOT_ADDR_EEPROM | DPOT_RDAC0); @@ -616,7 +616,7 @@ set_##_name(struct device *dev, \ { \ return sysfs_do_cmd(dev, attr, buf, count, _cmd); \ } \ -static DEVICE_ATTR(_name, S_IWUSR | S_IRUGO, NULL, set_##_name); +static DEVICE_ATTR(_name, S_IWUSR | S_IRUGO, NULL, set_##_name) DPOT_DEVICE_DO_CMD(inc_all, DPOT_INC_ALL); DPOT_DEVICE_DO_CMD(dec_all, DPOT_DEC_ALL); -- 2.11.0