From patchwork Mon Feb 25 16:37:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julia Lawall X-Patchwork-Id: 10828885 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 89C7B1575 for ; Mon, 25 Feb 2019 16:37:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 789F32B566 for ; Mon, 25 Feb 2019 16:37:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6D0152B579; Mon, 25 Feb 2019 16:37:11 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI 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 BCA672B566 for ; Mon, 25 Feb 2019 16:37:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728211AbfBYQhK (ORCPT ); Mon, 25 Feb 2019 11:37:10 -0500 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:7673 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727930AbfBYQhK (ORCPT ); Mon, 25 Feb 2019 11:37:10 -0500 X-IronPort-AV: E=Sophos;i="5.58,411,1544482800"; d="scan'208";a="297277383" Received: from vaio-julia.rsr.lip6.fr ([132.227.76.33]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Feb 2019 17:37:07 +0100 Date: Mon, 25 Feb 2019 17:37:04 +0100 (CET) From: Julia Lawall X-X-Sender: jll@hadrien To: Linus Walleij cc: Guenter Roeck , kbuild-all@01.org, linux-hwmon@vger.kernel.org Subject: [PATCH] hwmon: fix of_table.cocci warnings Message-ID: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Sender: linux-hwmon-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: kbuild test robot Make sure (of/i2c/platform)_device_id tables are NULL terminated Generated by: scripts/coccinelle/misc/of_table.cocci Fixes: 08c95c6f6f95 ("hwmon: (ad7418) Add device tree probing") CC: Linus Walleij Signed-off-by: kbuild test robot Signed-off-by: Julia Lawall --- tree: https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-next head: 08c95c6f6f95a6ca6f0290429e3190fc3ab3c528 commit: 08c95c6f6f95a6ca6f0290429e3190fc3ab3c528 [88/88] hwmon: (ad7418) Add device tree probing :::::: branch date: 2 hours ago :::::: commit date: 2 hours ago ad7418.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/hwmon/ad7418.c +++ b/drivers/hwmon/ad7418.c @@ -299,6 +299,7 @@ static const struct of_device_id ad7418_ { .compatible = "adi,ad7416", .data = (void *)ad7416, }, { .compatible = "adi,ad7417", .data = (void *)ad7417, }, { .compatible = "adi,ad7418", .data = (void *)ad7418, }, + {}, }; MODULE_DEVICE_TABLE(of, ad7418_dt_ids);