From patchwork Tue Jan 12 11:27:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julia Lawall X-Patchwork-Id: 566494 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 0E1451402EC for ; Tue, 12 Jan 2016 22:27:22 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934204AbcALL1U (ORCPT ); Tue, 12 Jan 2016 06:27:20 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:23080 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933320AbcALL1T (ORCPT ); Tue, 12 Jan 2016 06:27:19 -0500 X-IronPort-AV: E=Sophos;i="5.20,557,1444687200"; d="scan'208";a="196884663" Received: from vaio-julia.rsr.lip6.fr ([132.227.76.33]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 12 Jan 2016 12:27:18 +0100 Date: Tue, 12 Jan 2016 12:27:04 +0100 (CET) From: Julia Lawall X-X-Sender: jll@hadrien To: Laxman Dewangan cc: robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, linus.walleij@linaro.org, gnurou@gmail.com, lee.jones@linaro.org, broonie@kernel.org, a.zummo@towertech.it, alexandre.belloni@free-electrons.com, lgirdwood@gmail.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, rtc-linux@googlegroups.com, swarren@nvidia.com, treding@nvidia.com, k.kozlowski@samsung.com Subject: [PATCH] rtc: max77xxx: fix of_table.cocci warnings Message-ID: User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Make sure (of/i2c/platform)_device_id tables are NULL terminated Generated by: scripts/coccinelle/misc/of_table.cocci CC: Laxman Dewangan Signed-off-by: Fengguang Wu Signed-off-by: Julia Lawall --- Please take the patch only if it's a positive warning. Thanks! rtc-max77xxx.c | 1 + 1 file changed, 1 insertion(+) -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- a/drivers/rtc/rtc-max77xxx.c +++ b/drivers/rtc/rtc-max77xxx.c @@ -480,6 +480,7 @@ static const struct platform_device_id m { .name = "max77xxx-rtc", }, { .name = "max77620-rtc", }, { .name = "max20024-rtc", }, + {}, }; static struct platform_driver max77xxx_rtc_driver = {