From patchwork Thu Mar 8 09:47:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Veenstra X-Patchwork-Id: 10267375 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4631660364 for ; Thu, 8 Mar 2018 09:47:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 355FB29378 for ; Thu, 8 Mar 2018 09:47:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2A2BB29753; Thu, 8 Mar 2018 09:47:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 431E229378 for ; Thu, 8 Mar 2018 09:47:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755259AbeCHJre (ORCPT ); Thu, 8 Mar 2018 04:47:34 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:40453 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751025AbeCHJrd (ORCPT ); Thu, 8 Mar 2018 04:47:33 -0500 Received: by mail-wm0-f67.google.com with SMTP id t6so9834820wmt.5 for ; Thu, 08 Mar 2018 01:47:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=n0rThtT+n4UZFrI/HLefuft/tbFSFC/11tcQSURJVOs=; b=q7VkYg3JLQr/2PTzMXivK5NTAQ8Obwy2tfnP/lroebinRtP6Iv2rYq/Xch0tHpcze/ 90E0qpl+gr2OaxKZX1zig1uwBnrSJdFRw4rLzWc1PoS9WLH32fwpaA8B4G4GvXyjEv1d HEQM8FRpxKQ7ooeCmHk6XyxuNe9sZ58inK4g4MZW1sXUPy4/r8YzeSDT5qScfUgIUWLy bl5CxrqafHRSvA5dw3bCKumW45zDxrtXtvCTbdUl/rv+ztk+qEFpScM/sPphG2XbZqWy CFPUP77YtMHwF4ikYtPfqAFhcr+KoFOM7rwaoAYK6KtPVDDfoxyXZJbc6tUc/wsZRQue OqIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=n0rThtT+n4UZFrI/HLefuft/tbFSFC/11tcQSURJVOs=; b=ArUFg/zNmh9x2J5k7BqfaLjEg+DtsgZx1hx6OZK7CPzJUXQvAUqcklQ+sNMLwFJZrf kMikvDRS6U3AmDC6jJtuwkMs++GEJwf+0aRWWWv9LnlTXIfcNAasnkzlL8dRD6WzHi8r 6xQXXzSvCIEYKjKGtE8xq97ihANLwVG0UVET19cI+n5eAA+r+CtiEjXMPxiF5jzK+ndK QEuiXOcaevfs8R2ixj/gATqsofXGrakU4hIrsR5HkriVPUkJKtkRx/ZunhGBdAuoq9Mn dkV9D0Lx0xuIBb8jJB5n7R1GwRUiIV0K4tQoW4cmGWOQPiMPv5MSAIVLxoOq6c+pgkfM npRQ== X-Gm-Message-State: APf1xPDYNJOaSRfciyzc2X7A+ca8fMopuijCWYGQ1NybY3uXJkhLFg+v Y5JnPYQKDx2yhz9k67S4iQZZFw== X-Google-Smtp-Source: AG47ELs8A5naF6/eVp0UbPeQyBaQC354UexMBFmkDZXARq5PtTHa5ZipSc3m97rAHjx7RyrnYVoodA== X-Received: by 10.80.131.67 with SMTP id 61mr31263783edh.16.1520502452629; Thu, 08 Mar 2018 01:47:32 -0800 (PST) Received: from zenbook-arch (wcw-stud-145-109-42-179.wireless.uva.nl. [145.109.42.179]) by smtp.gmail.com with ESMTPSA id l91sm988713ede.50.2018.03.08.01.47.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 08 Mar 2018 01:47:31 -0800 (PST) Date: Thu, 8 Mar 2018 10:47:29 +0100 From: David Veenstra To: lars@metafoo.de Cc: linux-iio@vger.kernel.org Subject: [PATCH] Staging: iio: adt7316: Move symbol export to definition Message-ID: <20180308094729.GA11441@zenbook-arch> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch clears the following checkpatch.pl warning: WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable +EXPORT_SYMBOL_GPL(adt7316_pm_ops); Signed-off-by: David Veenstra --- drivers/staging/iio/addac/adt7316.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/iio/addac/adt7316.c b/drivers/staging/iio/addac/adt7316.c index 2d33632c00e8..3f22d1088713 100644 --- a/drivers/staging/iio/addac/adt7316.c +++ b/drivers/staging/iio/addac/adt7316.c @@ -2079,9 +2079,8 @@ static int adt7316_enable(struct device *dev) return _adt7316_store_enabled(chip, 1); } - -SIMPLE_DEV_PM_OPS(adt7316_pm_ops, adt7316_disable, adt7316_enable); EXPORT_SYMBOL_GPL(adt7316_pm_ops); +SIMPLE_DEV_PM_OPS(adt7316_pm_ops, adt7316_disable, adt7316_enable); #endif static const struct iio_info adt7316_info = {