From patchwork Mon Aug 3 23:41:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Campello X-Patchwork-Id: 11699255 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E2F1C14E3 for ; Mon, 3 Aug 2020 23:42:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1B35F2086A for ; Mon, 3 Aug 2020 23:42:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="QmPh5nUP" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729244AbgHCXmp (ORCPT ); Mon, 3 Aug 2020 19:42:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728842AbgHCXmF (ORCPT ); Mon, 3 Aug 2020 19:42:05 -0400 Received: from mail-io1-xd41.google.com (mail-io1-xd41.google.com [IPv6:2607:f8b0:4864:20::d41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2129DC06179F for ; Mon, 3 Aug 2020 16:42:04 -0700 (PDT) Received: by mail-io1-xd41.google.com with SMTP id g14so2869792iom.0 for ; Mon, 03 Aug 2020 16:42:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/FMp7t9zJsevOEX4yhVr5KoKILCcT3l3u0rcT+JXhAY=; b=QmPh5nUPZ/EESdkkBHbazCKwv58BbTK07a7ZwJHmzagU/Bz4f/E1vxoLzaRwdM18Ec zQL+cmXrtCJyMcJDC76O4BDu8yXMjiU4vSL3q775lP2gnzPpziQXmChMp8UmXGDoc9/r ZBGwYzEmn6I2arNS/DD88D7/M+xg1ZNcCF4lY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/FMp7t9zJsevOEX4yhVr5KoKILCcT3l3u0rcT+JXhAY=; b=db1wA3din3zrM3Z1V4hVy9EQNxOFkbTM1nf5w42SlHGDVU7V4ilGY4/iT3WfR3s/1d 15Pul6u3RqPr+xY1CgYDmZIbAPL/qds7vyMy1jFaR/F3FtNju6Ol71kgY4kllyGFlyR3 gfwwzCe+fpEg5YgTxVwUpUZt6EhYhQPnOXHPgGWbPrEugH3NWHZ20oV2fN/+eKYFiHuq Otg4pgYZ1vQBK8M/mR0wVRoC4MiWGA11Wtbh3UWFVJrSSDyYvpiTtil3ruvrQW8BJKd6 wNSHPGllO167M1UD5iBQGiQmhdQ+sYIk3EVTlq7cP5ykHCVt+12LvHO4k8/EsYhKAHzP IZLA== X-Gm-Message-State: AOAM5300nFqyy2AX4/n7ajL46YcWdfGscxchXMKip6xQYrUCrPIbTFQn 7DiTaPOwSkg9NgzeB2xZPszU5w== X-Google-Smtp-Source: ABdhPJzjGK7YETFVd/XuYfzZTadZNnhp+w6G8pQCShVInAJwoMtBVMhKSEdDiv4NIJ6qjucNotgs0g== X-Received: by 2002:a02:b689:: with SMTP id i9mr2549762jam.59.1596498123575; Mon, 03 Aug 2020 16:42:03 -0700 (PDT) Received: from derch.Home (97-122-92-59.hlrn.qwest.net. [97.122.92.59]) by smtp.gmail.com with ESMTPSA id g2sm5468435ioe.4.2020.08.03.16.42.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Aug 2020 16:42:03 -0700 (PDT) From: Daniel Campello To: LKML , LKML Cc: Jonathan Cameron , Daniel Campello , kbuild test robot , Andy Shevchenko , Stephen Boyd , Douglas Anderson , Gwendal Grignou , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , linux-iio@vger.kernel.org Subject: [PATCH v4 04/15] iio: sx9310: Remove acpi and of table macros Date: Mon, 3 Aug 2020 17:41:43 -0600 Message-Id: <20200803131544.v4.4.I9bf713a86d6076b44441ef5f534f9c240271699a@changeid> X-Mailer: git-send-email 2.28.0.163.g6104cc2f0b6-goog In-Reply-To: <20200803234154.320400-1-campello@chromium.org> References: <20200803234154.320400-1-campello@chromium.org> MIME-Version: 1.0 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org Avoids unused warnings due to acpi/of table macros. Reported-by: kbuild test robot Signed-off-by: Daniel Campello Reviewed-by: Andy Shevchenko Reviewed-by: Stephen Boyd --- Changes in v4: None Changes in v3: None Changes in v2: - Added #include drivers/iio/proximity/sx9310.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/proximity/sx9310.c b/drivers/iio/proximity/sx9310.c index 3523ee5c8f0d2d..3642d23cd5e6f4 100644 --- a/drivers/iio/proximity/sx9310.c +++ b/drivers/iio/proximity/sx9310.c @@ -15,8 +15,8 @@ #include #include #include +#include #include -#include #include #include #include @@ -1048,8 +1048,8 @@ MODULE_DEVICE_TABLE(i2c, sx9310_id); static struct i2c_driver sx9310_driver = { .driver = { .name = "sx9310", - .acpi_match_table = ACPI_PTR(sx9310_acpi_match), - .of_match_table = of_match_ptr(sx9310_of_match), + .acpi_match_table = sx9310_acpi_match, + .of_match_table = sx9310_of_match, .pm = &sx9310_pm_ops, }, .probe = sx9310_probe,