Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BFFCFC43381 for ; Mon, 25 Feb 2019 16:37:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9671020684 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 Content-Type: text/plain; charset=US-ASCII Sender: linux-hwmon-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org 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);